From f52d54175a9499f405e1cef4b7aec06ef6363d81 Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 14 Feb 2026 01:33:18 +0100 Subject: [PATCH] ws style change --- modules/bar/Bar.qml | 2 +- modules/bar/Workspaces.qml | 6 +++--- reusables/CustomIcon.qml | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 11fbda5..d34c224 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -35,7 +35,7 @@ Variants { RowLayout { id: leftStuff - anchors.margins: Settings.config.barHeight / 4 + anchors.margins: Settings.config.floating ? 0 : Settings.config.barHeight / 4 spacing: 10 anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter diff --git a/modules/bar/Workspaces.qml b/modules/bar/Workspaces.qml index 47a0542..3754146 100644 --- a/modules/bar/Workspaces.qml +++ b/modules/bar/Workspaces.qml @@ -17,7 +17,7 @@ Rectangle { Row { id: workspaceRow anchors.centerIn: parent - spacing: 5 // Slightly increase spacing between workspace buttons + spacing: 0 // Slightly increase spacing between workspace buttons Repeater { id: wsRepeater @@ -38,8 +38,8 @@ Rectangle { } required property var modelData - width: !modelData.focused ? 20 : 40 - height: isOnMon ? Settings.config.barHeight - Settings.config.barHeight / 2 : 0 + width: Settings.config.barHeight - 5 + height: Settings.config.barHeight - 10 color: modelData.focused ? Colors.primaryContainer : "transparent" Behavior on width { NumberAnimation { diff --git a/reusables/CustomIcon.qml b/reusables/CustomIcon.qml index 8809f2f..ba9760b 100644 --- a/reusables/CustomIcon.qml +++ b/reusables/CustomIcon.qml @@ -1,9 +1,10 @@ import QtQuick import qs +import qs.settings Text { - color: Colors.onSurfaceColor id: root + color: Colors.onSurfaceColor property real iconSize: 16 property real fill: 1 property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping @@ -11,7 +12,7 @@ Text { font { hintingPreference: Font.PreferNoHinting family: "Material Symbols Rounded" - pixelSize: iconSize + pixelSize: Settings.config.fontSize weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill variableAxes: { "FILL": truncatedFill,