summaryrefslogtreecommitdiff
path: root/modules/bar/components/Tray.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 13:31:36 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 13:31:36 +0800
commit01b38be6afbe660e3b9f9e136870a76afb69bf31 (patch)
treea18c46b9d8fb0261addeadb89ca2a8ebd22f0ccc /modules/bar/components/Tray.qml
parentdashboard: default weather (diff)
downloadcaelestia-shell-01b38be6afbe660e3b9f9e136870a76afb69bf31.tar.gz
caelestia-shell-01b38be6afbe660e3b9f9e136870a76afb69bf31.tar.bz2
caelestia-shell-01b38be6afbe660e3b9f9e136870a76afb69bf31.zip
internal: fix binding loops
Diffstat (limited to 'modules/bar/components/Tray.qml')
-rw-r--r--modules/bar/components/Tray.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml
index ccebe1f..8ccd48a 100644
--- a/modules/bar/components/Tray.qml
+++ b/modules/bar/components/Tray.qml
@@ -4,15 +4,21 @@ import "root:/config"
import Quickshell.Services.SystemTray
import QtQuick
-StyledRect {
+Item {
id: root
+ readonly property bool vertical: parent?.vertical ?? false
property color colour: Colours.palette.lavender
clip: true
visible: width > 0 && height > 0 // To avoid warnings about being visible with no size
+ implicitWidth: layout.implicitWidth
+ implicitHeight: layout.implicitHeight
+
BoxLayout {
+ id: layout
+
Repeater {
model: SystemTray.items