From 0da59954cd3241a9e5e8222a7941d910bbb002e0 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Tue, 16 Sep 2025 08:55:36 -0400 Subject: [PATCH] Workspace: less chunky when no numbers --- Commons/Style.qml | 2 +- Modules/Bar/Widgets/Workspace.qml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Commons/Style.qml b/Commons/Style.qml index 9e58ba7..fe8a919 100644 --- a/Commons/Style.qml +++ b/Commons/Style.qml @@ -91,7 +91,7 @@ Singleton { return barHeight * 0.95 } if (Settings.data.bar.density === "default") { - return barHeight * 0.85 + return barHeight * 0.82 } if (Settings.data.bar.density === "comfortable") { return barHeight * 0.73 diff --git a/Modules/Bar/Widgets/Workspace.qml b/Modules/Bar/Widgets/Workspace.qml index d16d374..1aff33d 100644 --- a/Modules/Bar/Widgets/Workspace.qml +++ b/Modules/Bar/Widgets/Workspace.qml @@ -34,7 +34,13 @@ Item { readonly property string barPosition: Settings.data.bar.position readonly property bool isVertical: barPosition === "left" || barPosition === "right" readonly property bool compact: (Settings.data.bar.density === "compact") - readonly property real baseDimensionRatio: compact ? 0.85 : 0.65 + readonly property real baseDimensionRatio: { + const b = compact ? 0.85 : 0.65 + if (widgetSettings.labelMode === "none") { + return b * 0.75 + } + return b + } readonly property string labelMode: (widgetSettings.labelMode !== undefined) ? widgetSettings.labelMode : widgetMetadata.labelMode readonly property bool hideUnoccupied: (widgetSettings.hideUnoccupied !== undefined) ? widgetSettings.hideUnoccupied : widgetMetadata.hideUnoccupied