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