blob: 4cb1a08467ebf3d21357ef7aae1e075276fd5df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Wayland
import Quickshell.Widgets
import qs.utils
import qs.config
Item {
id: root
property var toplevel: ToplevelManager.activeToplevel
property var icon: Quickshell.iconPath(AppSearch.guessIcon(toplevel?.appId), "image-missing")
anchors.verticalCenter: parent.verticalCenter
Rectangle {
anchors.fill: parent
color: "blue"
}
RowLayout {
anchors.fill: parent
anchors.verticalCenter: parent.verticalCenter
IconImage {
source: root.icon
implicitWidth: Bar.appIconSize
implicitHeight: Bar.appIconSize
Layout.fillHeight: true
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
Text {
text: root.toplevel?.title
}
}
}
|