aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop/eww/widgets/stat.yuck
blob: 1ef76f2856dd494faae3f6121f6b245747f1b0c5 (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
(defwidget stat [key value ?class]
    (overlay
        (box :class {class}
            :orientation "h"
            :spacing 45
            
            (label
                :text {key}
                :halign "start"
                :hexpand true
            )
            
            (label
                :text {value}
                :halign "end"
                :hexpand true
            )
        )

        (label :class "faint"
            :text "..."
        )
    )
)