From c2e78cc11c02db05a8d0a4680e715de8691b516a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 26 Apr 2025 22:36:46 +1000 Subject: feat: basic quickshell bar --- modules/bar/ActiveWindow.qml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 modules/bar/ActiveWindow.qml (limited to 'modules/bar/ActiveWindow.qml') diff --git a/modules/bar/ActiveWindow.qml b/modules/bar/ActiveWindow.qml new file mode 100644 index 0000000..f65a83f --- /dev/null +++ b/modules/bar/ActiveWindow.qml @@ -0,0 +1,29 @@ +import "root:/widgets" +import "root:/services" +import "root:/utils" +import "root:/config" +import QtQuick +import QtQuick.Layouts + +Box { + id: root + property color colour: Appearance.colours.pink + + MaterialIcon { + Layout.alignment: Qt.AlignCenter + text: Icons.getAppCategoryIcon(Hyprland.activeClient?.wmClass) ?? "desktop_windows" + color: root.colour + } + + Text { + 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 + } +} -- cgit v1.2.3-freya