summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspace.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 10:29:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 10:29:30 +1000
commit5fd8d0f6da23030cbe043c5fd59284393781e23a (patch)
tree718c188d60eeb2de460d6fd7d15e17814d67014b /modules/bar/components/workspaces/Workspace.qml
parentrefactor: move bar components into folder (diff)
downloadcaelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.tar.gz
caelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.tar.bz2
caelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.zip
refactor: use anchors instead of layouts
Diffstat (limited to 'modules/bar/components/workspaces/Workspace.qml')
-rw-r--r--modules/bar/components/workspaces/Workspace.qml4
1 files changed, 2 insertions, 2 deletions
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