From 4f8c553306de486f91f571b263a7111fcf530714 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 26 Aug 2026 19:58:25 +0200 Subject: [PATCH 1/2] make workspaces prettier --- modules/bar/Ws.qml | 62 ++++++++++++++++++++++++++----------------- settings/settings.ini | 2 +- 2 files changed, 38 insertions(+), 26 deletions(-) diff --git a/modules/bar/Ws.qml b/modules/bar/Ws.qml index 489e1d7..8a6ee57 100644 --- a/modules/bar/Ws.qml +++ b/modules/bar/Ws.qml @@ -4,35 +4,47 @@ import QtQuick import QtQuick.Layouts import qs import qs.widgets +import qs.settings BarComponent { id: root required property ShellScreen barScreen - implicitWidth: wsLayout.implicitWidth + wsLayout.spacing * 2 + implicitWidth: wsLayout.implicitWidth + 4 RowLayout { - id: wsLayout - spacing: 15 - anchors.centerIn: parent - Repeater { - model: WindowManager.screenProjection(root.barScreen).windowsets - delegate: Rectangle { - id: wsContainer - required property var modelData - visible: modelData.shouldDisplay - StyledText { - id: wsText - anchors.centerIn: parent - text: parent.modelData.name - color: parent.modelData.active ? Colors.base0D: Colors.base03 - MouseArea { - id: clickHandler - anchors.fill: parent - cursorShape: Qt.PointingHandCursor - acceptedButtons: Qt.LeftButton - onClicked: parent.parent.modelData.activate() - } - } - } - } + id: wsLayout + anchors.centerIn: parent + spacing: 8 + Repeater { + model: WindowManager.screenProjection(root.barScreen).windowsets + delegate: Rectangle { + id: wsContainer + required property var modelData + visible: modelData.shouldDisplay + implicitWidth: modelData.active ? 50 : 20 + implicitHeight: Config.moduleHeight - 4 + color: modelData.active ? Colors.base0D : Colors.activeModuleBg + radius: Config.rounding + Behavior on implicitWidth { + PropertyAnimation { + duration: 350 + easing.type: Easing.InOutBack + easing.overshoot: 1.2 + } + } + MouseArea { + id: clickHandler + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + acceptedButtons: Qt.LeftButton + onClicked: wsContainer.modelData.activate() + } + StyledText { + id: wsText + anchors.centerIn: parent + text: parent.modelData.name + color: parent.modelData.active ? Colors.base00 : Colors.base0D + } + } + } } } diff --git a/settings/settings.ini b/settings/settings.ini index b0de28c..329554b 100644 --- a/settings/settings.ini +++ b/settings/settings.ini @@ -3,7 +3,7 @@ barHeight=30 floating=false font=Iosevka fontSize=16 -iconSize=12 +iconSize=18 opacity=1 primaryMon=eDP-1 rounding=16 From 16e63481ac039a0a8a6c146a898b07225aecf95e Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 26 Aug 2026 20:18:22 +0200 Subject: [PATCH 2/2] fixup ws colors --- Colors.js | 32 ++++++++++++++++---------------- modules/bar/Ws.qml | 2 +- settings/settings.ini | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Colors.js b/Colors.js index 122fb62..56bd1fb 100644 --- a/Colors.js +++ b/Colors.js @@ -1,18 +1,18 @@ const colors = { - base00: "#191724", - base01: "#1f1d2e", - base02: "#26233a", - base03: "#6e6a86", - base04: "#908caa", - base05: "#e0def4", - base06: "#e0def4", - base07: "#524f67", - base08: "#eb6f92", - base09: "#f6c177", - base0A: "#ebbcba", - base0B: "#31748f", - base0C: "#9ccfd8", - base0D: "#c4a7e7", - base0E: "#f6c177", - base0F: "#524f67", + base00: "#282828", + base01: "#3c3836", + base02: "#504945", + base03: "#665c54", + base04: "#928374", + base05: "#ebdbb2", + base06: "#fbf1c7", + base07: "#f9f5d7", + base08: "#cc241d", + base09: "#d65d0e", + base0A: "#d79921", + base0B: "#98971a", + base0C: "#689d6a", + base0D: "#458588", + base0E: "#b16286", + base0F: "#9d0006", } diff --git a/modules/bar/Ws.qml b/modules/bar/Ws.qml index 8a6ee57..e6ebacc 100644 --- a/modules/bar/Ws.qml +++ b/modules/bar/Ws.qml @@ -42,7 +42,7 @@ BarComponent { id: wsText anchors.centerIn: parent text: parent.modelData.name - color: parent.modelData.active ? Colors.base00 : Colors.base0D + color: parent.modelData.active ? Colors.base00 : Colors.text } } } diff --git a/settings/settings.ini b/settings/settings.ini index 329554b..46cdedb 100644 --- a/settings/settings.ini +++ b/settings/settings.ini @@ -9,4 +9,4 @@ primaryMon=eDP-1 rounding=16 showCorners=true wallDir=file:///home/lucy/.walls -wallpaper=@Variant(\0\0\0\x11\0\0\0\x1f/home/lucy/.walls/lain_blue.png) +wallpaper=@Variant(\0\0\0\x11\0\0\0\x1b/home/lucy/.walls/faris.png)