make style smarter

This commit is contained in:
lucy 2026-10-11 00:42:58 +02:00
commit aebb29a028
6 changed files with 24 additions and 32 deletions

View file

@ -4,11 +4,9 @@ import qs
import qs.settings
Rectangle {
property color accent: Colors.c.base02
property color base: Qt.rgba(Colors.accent.r, Colors.accent.g, Colors.accent.b, active ? 0.5 : 0.19)
property bool active: false
color: active ? Colors.c.base03 : Colors.c.base02
color: base
implicitHeight: Config.cfg.bar.height - 8
radius: Config.cfg.appearance.rounding - 4
border.width: 1
border.color: Colors.c.base03
}