From f5462c3274d008c1bb509cfac4eab8492d822cf5 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 14:55:59 +0800 Subject: finish bar workspace style --- config/Bar.qml | 16 ++++++++++++++-- config/Colors.qml | 21 +++++++++++++++++++++ config/Icons.qml | 1 + config/WallustColors.qml | 26 ++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 config/Colors.qml create mode 100644 config/WallustColors.qml (limited to 'config') diff --git a/config/Bar.qml b/config/Bar.qml index d3e72a4..58629be 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -5,16 +5,28 @@ import Quickshell Singleton { id: root - readonly property int height: 45 + readonly property int height: 35 readonly property int borderRadius: Style.rounding.small readonly property int topMargin: Style.spacing.small readonly property int leftMargin: Style.spacing.larger readonly property int rightMargin: Style.spacing.larger + readonly property int innerLeftMargin: Style.spacing.small - readonly property int workspaceIconSize: 32 readonly property int workspaces: 10 + readonly property int workspaceIconSize: 32 + readonly property int workspaceSpacing: 2 + readonly property int workspaceHorizontalSpacing: Style.spacing.small + readonly property int workspaceActiveIconSize: workspaceIconSize * 1.5 + readonly property int workspaceRounding: Style.rounding.small + readonly property double workspaceOpacity: 0.8 + readonly property int workspaceActiveOpacity: 1 + readonly property double workspaceEmptyOpacity: 0.2 readonly property int appIconSize: 32 readonly property int resourceIconTextSpacing: Style.spacing.small + + readonly property int moduleRadius: Style.rounding.small + + readonly property double bgTransparency: 0.25 } diff --git a/config/Colors.qml b/config/Colors.qml new file mode 100644 index 0000000..1ba73f2 --- /dev/null +++ b/config/Colors.qml @@ -0,0 +1,21 @@ +pragma Singleton +import Quickshell +import QtQuick + +Singleton { + property color background: WallustColors.background + property color foreground: WallustColors.foreground + property color surface: WallustColors.color0 + property color primary: WallustColors.color3 + property color alt: WallustColors.color4 + property color accent: WallustColors.color1 + property color success: WallustColors.color2 + property color warning: WallustColors.color3 + property color error: WallustColors.color1 + property color info: WallustColors.color4 + property color textSecondary: WallustColors.color7 + property color border: WallustColors.color8 + property color highlight: WallustColors.color5 + property color disabled: WallustColors.color6 + property color muted: WallustColors.color2 +} diff --git a/config/Icons.qml b/config/Icons.qml index d628b43..9720463 100644 --- a/config/Icons.qml +++ b/config/Icons.qml @@ -15,6 +15,7 @@ Singleton { 7: "", 8: "", 9: "", + 10: "", urgent: "", active: "", default: " " diff --git a/config/WallustColors.qml b/config/WallustColors.qml new file mode 100644 index 0000000..3419969 --- /dev/null +++ b/config/WallustColors.qml @@ -0,0 +1,26 @@ +pragma Singleton + +import Quickshell +import QtQuick + +Singleton { + property color foreground: "#FBF7DA" + property color background: "#110E17" + property color cursor: "#AFAC98" + property color color0: "#39373F" + property color color1: "#93350C" + property color color2: "#646156" + property color color3: Qt.rgba(148,125,188,0.25) + property color color4: Qt.rgba(209,168,183,0.25) + property color color5: "#D0D4C3" + property color color6: "#F4E994" + property color color7: "#F1ECC1" + property color color8: "#A9A587" + property color color9: "#93350C" + property color color10: "#646156" + property color color11: "#947DBC" + property color color12: "#D1A8B7" + property color color13: "#D0D4C3" + property color color14: "#F4E994" + property color color15: "#F1ECC1" +} -- cgit v1.2.3