summaryrefslogtreecommitdiff
path: root/modules/bar/ActiveWindow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/ActiveWindow.qml')
-rw-r--r--modules/bar/ActiveWindow.qml9
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
}
}