From 2e0214ddb81e3857ac863438c6f522cd5caaea26 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Sat, 20 Sep 2025 23:51:49 -0400 Subject: [PATCH] Workspaces: Fix scaling #328 --- Modules/Bar/Widgets/Workspace.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/Widgets/Workspace.qml b/Modules/Bar/Widgets/Workspace.qml index f79aac15..628b17e9 100644 --- a/Modules/Bar/Widgets/Workspace.qml +++ b/Modules/Bar/Widgets/Workspace.qml @@ -64,13 +64,13 @@ Item { function getWorkspaceWidth(ws) { const d = Style.capsuleHeight * root.baseDimensionRatio const factor = ws.isFocused ? 2.2 : 1 - return d * factor + return d * factor * scaling } function getWorkspaceHeight(ws) { const d = Style.capsuleHeight * root.baseDimensionRatio const factor = ws.isFocused ? 2.2 : 1 - return d * factor + return d * factor * scaling } function computeWidth() { @@ -199,7 +199,7 @@ Item { Item { id: workspacePillContainer width: root.getWorkspaceWidth(model) - height: Style.capsuleHeight * root.baseDimensionRatio + height: Style.capsuleHeight * root.baseDimensionRatio * scaling Rectangle { id: pill @@ -342,7 +342,7 @@ Item { model: localWorkspaces Item { id: workspacePillContainerVertical - width: Style.capsuleHeight * root.baseDimensionRatio + width: Style.capsuleHeight * root.baseDimensionRatio * scaling height: root.getWorkspaceHeight(model) Rectangle {