nosignal-shell/modules/bar/ActiveWindow.qml
2 * r + 2 * t 65e0928670 refactor: no need for clippingbox
Just use clip property of Item
2025-04-28 12:05:59 +10:00

33 lines
810 B
QML

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