From c323985f0372c0b2aaa4ce8247f8543398f14c03 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Tue, 26 Aug 2025 18:33:28 +0200 Subject: [PATCH] Small workspace indicator fix --- Modules/Bar/Widgets/Workspace.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/Widgets/Workspace.qml b/Modules/Bar/Widgets/Workspace.qml index 48af024..ee86463 100644 --- a/Modules/Bar/Widgets/Workspace.qml +++ b/Modules/Bar/Widgets/Workspace.qml @@ -152,7 +152,7 @@ Item { model: localWorkspaces Item { id: workspacePillContainer - height: Math.round(18 * scaling) + height: Math.round(19 * scaling) width: root.calculatedWsWidth(model) Rectangle { @@ -161,11 +161,17 @@ Item { Loader { anchors.centerIn: parent - active: Settings.data.bar.showWorkspacesNames + active: true sourceComponent: Component { Text { - text: model.name.substring(0, 2) - font.pointSize: Style.fontSizeXS * scaling + text: { + if (Settings.data.bar.showWorkspacesNames && model.name && model.name.length > 0) { + return model.name.substring(0, 2).toUpperCase() + } else { + return model.idx.toString() + } + } + font.pointSize: model.isFocused ? Style.fontSizeXS * scaling : Style.fontSizeXXS * scaling horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter wrapMode: Text.Wrap