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

StyledRect {
    id: root

    property color colour: Colours.palette.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
            }
        }
    }
}