diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
| commit | f7b0e4665b223d86045110ff3d4704c1a7760a4d (patch) | |
| tree | 5e71541184bf7b736b99d689e4920dda44eeefd8 /modules/bar/ActiveWindow.qml | |
| parent | feat: anims + box padding (diff) | |
| download | caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.gz caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.bz2 caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.zip | |
format: conform to qml coding conventions
Diffstat (limited to 'modules/bar/ActiveWindow.qml')
| -rw-r--r-- | modules/bar/ActiveWindow.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/bar/ActiveWindow.qml b/modules/bar/ActiveWindow.qml index f351534..5c75944 100644 --- a/modules/bar/ActiveWindow.qml +++ b/modules/bar/ActiveWindow.qml @@ -7,25 +7,26 @@ import QtQuick.Layouts ClippingBoxLayout { id: root + readonly property color colour: Appearance.colours.pink animated: true MaterialIcon { - Layout.alignment: Qt.AlignCenter text: Icons.getAppCategoryIcon(Hyprland.activeClient?.class) ?? "desktop_windows" color: root.colour - } - Label { Layout.alignment: Qt.AlignCenter + } + Label { 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: Qt.AlignCenter Layout.maximumWidth: root.vertical ? this.implicitHeight : this.implicitWidth } } |