From 5fd8d0f6da23030cbe043c5fd59284393781e23a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 10:29:30 +1000 Subject: refactor: use anchors instead of layouts --- modules/bar/components/workspaces/Workspace.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bar/components/workspaces/Workspace.qml') diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index 4f53e73..d8d0f4d 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -3,7 +3,7 @@ import "root:/services" import "root:/config" import QtQuick.Layouts -Label { +StyledText { required property int index required property BoxLayout layout required property var occupied @@ -11,7 +11,7 @@ Label { text: index + 1 color: BarConfig.workspaces.occupiedBg || occupied[index + 1] ? Appearance.colours.text : Appearance.colours.subtext0 - horizontalAlignment: Label.AlignHCenter + horizontalAlignment: StyledText.AlignHCenter Layout.preferredWidth: layout.homogenous && !layout.vertical ? layout.height : -1 Layout.preferredHeight: layout.homogenous && layout.vertical ? layout.width : -1 -- cgit v1.2.3-freya