summaryrefslogtreecommitdiff
path: root/bar/Workspace.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-28 19:33:35 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-28 19:33:35 +0800
commitaa61a728976a53129df138e7e64431833a4fccba (patch)
tree1bb6743d23a075344fc890529e0cf3c3d3633ffa /bar/Workspace.qml
parent1d921b13ff9bf20bc76ea5c8275360c6708a249c (diff)
refactor(colors): use background2 instead of d2, and use a proper config for transparency
Diffstat (limited to 'bar/Workspace.qml')
-rw-r--r--bar/Workspace.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml
index f78cf1d..cd80db2 100644
--- a/bar/Workspace.qml
+++ b/bar/Workspace.qml
@@ -45,7 +45,7 @@ Item {
source: activeRect
radius: 8
cached: true
- color: root.activeOccupied ? Colors.d2 : Colors.foreground1
+ color: root.activeOccupied ? Colors.background2 : Colors.foreground1
opacity: root.activeOccupied ? Bar.wsActiveOpacity : Bar.wsEmptyOpacity / 3
Behavior on color {
@@ -68,7 +68,7 @@ Item {
implicitWidth: Bar.wsActiveIconSize
implicitHeight: Bar.wsIconSize - Bar.wsHorizontalSpacing
radius: Bar.wsRounding
- color: root.activeOccupied ? Colors.d2 : Colors.foreground1
+ color: root.activeOccupied ? Colors.background2 : Colors.foreground1
opacity: root.activeOccupied ? Bar.wsActiveOpacity : Bar.wsEmptyOpacity / 3
Behavior on x {
ISpringAnimation {}
@@ -110,7 +110,7 @@ Item {
implicitWidth: active ? Bar.wsActiveIconSize : Bar.wsIconSize
implicitHeight: Bar.wsIconSize - Bar.wsHorizontalSpacing
radius: Bar.wsRounding
- color: st.isOccupied ? Colors.d2 : Colors.foreground1
+ color: st.isOccupied ? Colors.background2 : Colors.foreground1
opacity: active && st.isOccupied ? Bar.wsActiveOpacity : st.isOccupied ? Bar.wsOpacity : Bar.wsEmptyOpacity
Icon {