blob: 4432adeac1c1554357df3b0b17a5c79c235a9b65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import icons from "lib/icons"
import PanelButton from "../PanelButton"
import options from "options"
const { monochrome, action } = options.bar.powermenu
export default () => PanelButton({
window: "powermenu",
on_clicked: action.bind(),
child: Widget.Icon(icons.powermenu.shutdown),
setup: self => self.hook(monochrome, () => {
self.toggleClassName("colored", !monochrome.value)
self.toggleClassName("box")
}),
})
|