diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 09:38:23 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 09:38:23 +1000 |
| commit | 46e1127b66a435dc4ba4b8e3ce57715da24b7743 (patch) | |
| tree | f0451a122d6234240e5688110f1b03133423352f /modules/bar/components/ActiveWindow.qml | |
| parent | refactor: appearance fix typing (diff) | |
| download | caelestia-shell-46e1127b66a435dc4ba4b8e3ce57715da24b7743.tar.gz caelestia-shell-46e1127b66a435dc4ba4b8e3ce57715da24b7743.tar.bz2 caelestia-shell-46e1127b66a435dc4ba4b8e3ce57715da24b7743.zip | |
refactor: move bar components into folder
Diffstat (limited to 'modules/bar/components/ActiveWindow.qml')
| -rw-r--r-- | modules/bar/components/ActiveWindow.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml new file mode 100644 index 0000000..596c368 --- /dev/null +++ b/modules/bar/components/ActiveWindow.qml @@ -0,0 +1,34 @@ +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 + + padding: [Appearance.padding.smaller, 0] + animated: true + clip: true + + MaterialIcon { + text: Icons.getAppCategoryIcon(Hyprland.activeClient?.class) ?? "desktop_windows" + color: root.colour + + Layout.alignment: Layout.Center + } + + 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: Layout.Center + Layout.maximumWidth: root.vertical ? this.implicitHeight : this.implicitWidth + } +} |