From bffa8689dc45a264258044314d2d118df1d170c8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Jul 2025 18:34:21 +0800 Subject: colors: directly use color. --- 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 5fb5faf..977abe1 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -36,7 +36,7 @@ Item { implicitWidth: Bar.workspaceActiveIconSize implicitHeight: Bar.workspaceIconSize - Bar.workspaceHorizontalSpacing radius: Bar.workspaceRounding - color: root.activeOccupied ? Colors.alt : Colors.foreground + color: root.activeOccupied ? WallustColors.color4 : WallustColors.foreground opacity: root.activeOccupied ? Bar.workspaceActiveOpacity : Bar.workspaceEmptyOpacity / 3 Behavior on x { ISpringAnimation {} @@ -72,14 +72,14 @@ Item { implicitWidth: active ? Bar.workspaceActiveIconSize : Bar.workspaceIconSize implicitHeight: Bar.workspaceIconSize - Bar.workspaceHorizontalSpacing radius: Bar.workspaceRounding - color: st.isOccupied ? Colors.alt : Colors.foreground + color: st.isOccupied ? WallustColors.color4 : WallustColors.foreground opacity: active && st.isOccupied ? Bar.workspaceActiveOpacity : st.isOccupied ? Bar.workspaceOpacity : Bar.workspaceEmptyOpacity Icon { anchors.centerIn: parent text: !st.isUrgent ? Icons.ws[index + 1] : Icons.ws['urgent'] font.pixelSize: !active ? Bar.workspaceIconSize / 2 : Bar.workspaceActiveIconSize / 2.5 - color: Colors.foreground + color: WallustColors.foreground opacity: !st.isOccupied ? 0 : 1 Behavior on font.pixelSize { ISpringAnimation {} -- cgit v1.2.3