summaryrefslogtreecommitdiff
path: root/components/SimpleResource.qml
blob: 2d8a91fc86a5aa13a6d4df0650b40a6346a5a5ef (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
import QtQuick
import Quickshell
import QtQuick.Layouts
import qs.config as Config
import qs.components

RowLayout {
    id: root
    required property string text
    required property string icon
    Item {
        Layout.fillWidth: true
    }
    anchors.fill: parent
    spacing: Config.Bar.resourceIconTextSpacing

    Icons {
        text: root.icon
    }
    Text {
        text: root.text
    }

    Item {
        Layout.fillWidth: true
    }
}