summaryrefslogtreecommitdiff
path: root/modules/bar/components/Tray.qml
blob: 98a7dfed03dddcda2090472e416e367f3ab4a122 (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
import "root:/widgets"
import "root:/config"
import Quickshell.Services.SystemTray
import QtQuick

StyledRect {
    id: root

    property color colour: Appearance.colours.lavender

    animate: true
    clip: true
    visible: width > 0 && height > 0 // To avoid warnings about being visible with no size

    BoxLayout {
        Repeater {
            model: SystemTray.items

            TrayItem {
                colour: root.colour
            }
        }
    }
}