From 01d9c318593e1bf4eb81dc6e71dc4c20e8c9fa6a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 10:53:54 +1000 Subject: bar: fix alignment Also refactor box -> styledrect + paddedrect --- modules/bar/components/ActiveWindow.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/bar/components/ActiveWindow.qml') diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 24edb9e..40f7a64 100644 --- a/modules/bar/components/ActiveWindow.qml +++ b/modules/bar/components/ActiveWindow.qml @@ -5,12 +5,11 @@ import "root:/config" import QtQuick import QtQuick.Layouts -Box { +StyledRect { id: root readonly property color colour: Appearance.colours.pink - padding: [Appearance.padding.smaller, 0] animated: true clip: true @@ -21,14 +20,14 @@ Box { color: root.colour } - StyledText { + AnchorText { + prevAnchor: icon + vertical: root.vertical + 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 - - anchors.left: icon.right - anchors.leftMargin: Appearance.padding.smaller } } -- cgit v1.2.3-freya