diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 10:29:30 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 10:29:30 +1000 |
| commit | 5fd8d0f6da23030cbe043c5fd59284393781e23a (patch) | |
| tree | 718c188d60eeb2de460d6fd7d15e17814d67014b /modules/bar/components/ActiveWindow.qml | |
| parent | refactor: move bar components into folder (diff) | |
| download | caelestia-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/ActiveWindow.qml')
| -rw-r--r-- | modules/bar/components/ActiveWindow.qml | 12 |
1 files changed, 6 insertions, 6 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 } } |