Styled power menu
This commit is contained in:
@@ -127,7 +127,7 @@ export default ({
|
||||
name,
|
||||
class_names: [name, "popup-window"],
|
||||
setup: w => w.keybind("Escape", () => App.closeWindow(name)),
|
||||
visible: true,
|
||||
visible: false,
|
||||
keymode: "on-demand",
|
||||
exclusivity,
|
||||
layer: "top",
|
||||
|
||||
@@ -30,14 +30,12 @@ export default () =>
|
||||
homogeneous: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
class_name: "verification-button bar-verification_no",
|
||||
child: Widget.Label("No"),
|
||||
on_clicked: () => App.toggleWindow("verification"),
|
||||
setup: (self) =>
|
||||
self.hook(App, (_, name, visible) => {
|
||||
if (name === "verification" && visible) self.grab_focus();
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
class_name: "verification-button bar-verification_yes",
|
||||
child: Widget.Label("Yes"),
|
||||
on_clicked: powermenu.exec,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user