diff options
Diffstat (limited to 'modules/bar/components')
| -rw-r--r-- | modules/bar/components/ActiveWindow.qml | 12 | ||||
| -rw-r--r-- | modules/bar/components/Clock.qml | 4 | ||||
| -rw-r--r-- | modules/bar/components/OsIcon.qml | 2 | ||||
| -rw-r--r-- | modules/bar/components/workspaces/OccupiedBg.qml | 2 | ||||
| -rw-r--r-- | modules/bar/components/workspaces/Workspace.qml | 4 | ||||
| -rw-r--r-- | modules/bar/components/workspaces/Workspaces.qml | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 596c368..24edb9e 100644 --- a/modules/bar/components/ActiveWindow.qml +++ b/modules/bar/components/ActiveWindow.qml @@ -5,7 +5,7 @@ import "root:/config" import QtQuick import QtQuick.Layouts -BoxLayout { +Box { id: root readonly property color colour: Appearance.colours.pink @@ -15,20 +15,20 @@ BoxLayout { clip: true MaterialIcon { + id: icon + text: Icons.getAppCategoryIcon(Hyprland.activeClient?.class) ?? "desktop_windows" color: root.colour - - Layout.alignment: Layout.Center } - Label { + StyledText { text: Hyprland.activeClient?.title ?? "Desktop" font.pointSize: Appearance.font.size.smaller font.family: Appearance.font.family.mono color: root.colour rotation: root.vertical ? 90 : 0 - Layout.alignment: Layout.Center - Layout.maximumWidth: root.vertical ? this.implicitHeight : this.implicitWidth + anchors.left: icon.right + anchors.leftMargin: Appearance.padding.smaller } } diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index a34cc2c..49ef103 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -18,8 +18,8 @@ BoxLayout { Layout.alignment: Layout.Center } - Label { - horizontalAlignment: Label.AlignHCenter + StyledText { + horizontalAlignment: StyledText.AlignHCenter text: root.vertical ? Time.format("hh\nmm") : Time.format("dd/MM/yy hh:mm") font.pointSize: Appearance.font.size.smaller font.family: Appearance.font.family.mono diff --git a/modules/bar/components/OsIcon.qml b/modules/bar/components/OsIcon.qml index 2b99de3..5f2a103 100644 --- a/modules/bar/components/OsIcon.qml +++ b/modules/bar/components/OsIcon.qml @@ -8,7 +8,7 @@ import QtQuick.Layouts Box { padding: [Appearance.padding.smaller, 0] - Label { + StyledText { text: Icons.osIcon font.pointSize: Appearance.font.size.smaller font.family: Appearance.font.family.mono diff --git a/modules/bar/components/workspaces/OccupiedBg.qml b/modules/bar/components/workspaces/OccupiedBg.qml index 97a27a0..f6998c5 100644 --- a/modules/bar/components/workspaces/OccupiedBg.qml +++ b/modules/bar/components/workspaces/OccupiedBg.qml @@ -9,7 +9,7 @@ BoxLayout { id: root required property bool vertical - required property list<Label> workspaces + required property list<StyledText> workspaces required property var occupied required property BoxLayout layout 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 diff --git a/modules/bar/components/workspaces/Workspaces.qml b/modules/bar/components/workspaces/Workspaces.qml index 62f22d7..26dc23a 100644 --- a/modules/bar/components/workspaces/Workspaces.qml +++ b/modules/bar/components/workspaces/Workspaces.qml @@ -16,7 +16,7 @@ Item { property bool occupiedBg: false property bool showWindows: false - readonly property list<Label> workspaces: layout.children.filter(c => c.isWorkspace) + readonly property list<StyledText> workspaces: layout.children.filter(c => c.isWorkspace) readonly property var occupied: Hyprland.workspaces.values.reduce((acc, curr) => { acc[curr.id] = curr.lastIpcObject.windows > 0; return acc; |