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
28
29
30
31
32
33
34
35
|
// Date and time. The one pair that stays text: an icon cannot say 14:32.
// The icon sits before the text as a CSS background, which is what makes
// these two match the icon-only pills around them.
{
"clock#date": {
"format": "{:%a %d/%m}",
"min-length": 9,
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
// Colours here are Pango markup inside a tooltip, which CSS
// cannot reach, so they are the only colours in this repo that
// do not come from the palette.
"format": {
"months": "<span color='#7dc4e4'><b>{}</b></span>",
"days": "<span color='#8aadf4'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#b7bdf8'><b>{}</b></span>",
"today": "<span color='#f0c6c6'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click": "mode"
}
},
"clock#time": {
"format": "{:%H:%M}",
"min-length": 5,
"tooltip-format": "Standard Time: {:%I:%M %p}"
}
}
|