ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
15
home/ags/widget/bar/buttons/PowerMenu.ts
Normal file
15
home/ags/widget/bar/buttons/PowerMenu.ts
Normal file
|
|
@ -0,0 +1,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")
|
||||
}),
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue