blob: 44c2540a819575698e4f7f283648546ada338366 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { clock } from "lib/variables"
import PanelButton from "../PanelButton"
import options from "options"
const { format, action } = options.bar.date
const time = Utils.derive([clock, format], (c, f) => c.format(f) || "")
export default () => PanelButton({
window: "datemenu",
on_clicked: action.bind(),
child: Widget.Label({
justification: "center",
label: time.bind(),
}),
})
|