From aa61a728976a53129df138e7e64431833a4fccba Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 28 Jul 2025 19:33:35 +0800 Subject: refactor(colors): use background2 instead of d2, and use a proper config for transparency --- bar/Workspace.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bar/Workspace.qml') 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 { -- cgit v1.2.3