nosignal-shell/modules/bar/ActiveWindow.qml
2 * r + 2 * t cba440bcfc feat: anims + box padding
box provide padding and animate size and colour
provide box and boxlayout for with/without layout
provide clippingbox
provide label for anim + rendertype
configure QtQuick controls
2025-04-28 00:21:53 +10:00

31 lines
802 B
QML

import "root:/widgets"
import "root:/services"
import "root:/utils"
import "root:/config"
import QtQuick
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
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.maximumWidth: root.vertical ? this.implicitHeight : this.implicitWidth
}
}