summaryrefslogtreecommitdiff
path: root/modules/bar/ActiveWindow.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
commitc2e78cc11c02db05a8d0a4680e715de8691b516a (patch)
tree5571d22dc11d9f5cf2de4932c822d368eebc2fb1 /modules/bar/ActiveWindow.qml
parentclean (diff)
downloadcaelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.gz
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.bz2
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.zip
feat: basic quickshell bar
Diffstat (limited to 'modules/bar/ActiveWindow.qml')
-rw-r--r--modules/bar/ActiveWindow.qml29
1 files changed, 29 insertions, 0 deletions
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
+ }
+}