diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-11 21:49:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-11 21:49:53 +0800 |
| commit | 0e4bdc7ed815ef389d9ca95fc4865f46701b1aaf (patch) | |
| tree | 09c5e1609a4e3526416ae6bd294fb003d58ec70a /bar/ActiveWindow.qml | |
| parent | bf44811dced54246317c51183b2c77b551fafb79 (diff) | |
activewindow
Diffstat (limited to 'bar/ActiveWindow.qml')
| -rw-r--r-- | bar/ActiveWindow.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml new file mode 100644 index 0000000..efdbfd9 --- /dev/null +++ b/bar/ActiveWindow.qml @@ -0,0 +1,23 @@ +import QtQuick +import Quickshell +import Quickshell.Wayland +import Quickshell.Widgets +import qs.utils + +Item { + id: root + property var toplevel: ToplevelManager.activeToplevel + property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.appId), "image-missing") + + IconImage { + source: root.icon + implicitWidth: 32 + implicitHeight: 32 + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 8 + } + Text { + text: root.toplevel?.title + } +} |
