nosignal-shell/modules/bar/components/ActiveWindow.qml
2 * r + 2 * t 01d9c31859 bar: fix alignment
Also refactor box -> styledrect + paddedrect
2025-04-29 10:53:54 +10:00

33 lines
722 B
QML

import "root:/widgets"
import "root:/services"
import "root:/utils"
import "root:/config"
import QtQuick
import QtQuick.Layouts
StyledRect {
id: root
readonly property color colour: Appearance.colours.pink
animated: true
clip: true
MaterialIcon {
id: icon
text: Icons.getAppCategoryIcon(Hyprland.activeClient?.class) ?? "desktop_windows"
color: root.colour
}
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
}
}