summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Bar.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-08-31 21:57:00 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-08-31 21:57:00 +0200
commit466ce70f96f8bdde32260f6951c5cbb62cfc02a7 (patch)
tree3d3120f6a1ace487d2db5a024411a467d55b9632 /accounts/gkleen@sif/shell/quickshell/Bar.qml
parent828893e930886872fcf612bc8958d33fee73b5df (diff)
downloadnixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.gz
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.bz2
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.xz
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Bar.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Bar.qml10
1 files changed, 7 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml
index accad2a9..aab1607f 100644
--- a/accounts/gkleen@sif/shell/quickshell/Bar.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml
@@ -5,7 +5,9 @@ import QtQuick
5PanelWindow { 5PanelWindow {
6 id: bar 6 id: bar
7 7
8 property var modelData 8 required property var screen
9
10 property var calendarMouseArea: clock.calendarMouseArea
9 11
10 anchors { 12 anchors {
11 top: true 13 top: true
@@ -17,7 +19,6 @@ PanelWindow {
17 right: 26 + 8 19 right: 26 + 8
18 } 20 }
19 21
20 screen: modelData
21 implicitHeight: 21 22 implicitHeight: 21
22 color: "transparent" 23 color: "transparent"
23 24
@@ -50,6 +51,7 @@ PanelWindow {
50 spacing: 5 51 spacing: 5
51 52
52 ActiveWindowDisplay { 53 ActiveWindowDisplay {
54 screen: bar.screen
53 maxWidth: bar.width - 2*Math.max(left.width, right.width) - 2*8 55 maxWidth: bar.width - 2*Math.max(left.width, right.width) - 2*8
54 } 56 }
55 } 57 }
@@ -78,6 +80,8 @@ PanelWindow {
78 width: 4 80 width: 4
79 } 81 }
80 82
81 Clock {} 83 Clock {
84 id: clock
85 }
82 } 86 }
83} \ No newline at end of file 87} \ No newline at end of file