mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 22:00:38 -04:00
updates
This commit is contained in:
parent
1f8cb3c145
commit
610604e80f
253 changed files with 27055 additions and 44 deletions
70
.config/ags/old/modules/powermenu/Verification.js
Normal file
70
.config/ags/old/modules/powermenu/Verification.js
Normal file
|
@ -0,0 +1,70 @@
|
|||
|
||||
import PopupWindow from '../PopupWindow.js';
|
||||
import powermenu from '../../services/powermenu.js';
|
||||
|
||||
export default () => PopupWindow({
|
||||
name: "verification",
|
||||
transition: "crossfade",
|
||||
layout: 'center',
|
||||
child: Widget.Box({
|
||||
class_name: "verification",
|
||||
vertical: true,
|
||||
homogeneous: false,
|
||||
children: [
|
||||
Widget.Box({
|
||||
class_name: "verification-label",
|
||||
vertical: true,
|
||||
children: [
|
||||
Widget.Label({
|
||||
class_name: "desc",
|
||||
label: powermenu.bind("title"),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
Widget.Box({
|
||||
vexpand: true,
|
||||
vpack: "end",
|
||||
spacing: 20,
|
||||
homogeneous: false,
|
||||
children: [
|
||||
Widget.Button({
|
||||
class_name: "verification-buttonBox verification-buttonBoxFirst",
|
||||
child: Widget.Label({
|
||||
label: "No",
|
||||
hpack: "center",
|
||||
vpack: "center",
|
||||
}),
|
||||
on_clicked: () => App.toggleWindow("verification"),
|
||||
setup: self => self.hook(App, (_, name, visible) => {
|
||||
if (name === "verification" && visible)
|
||||
self.grab_focus()
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
class_name: "verification-buttonBox verification-buttonBoxLast",
|
||||
child: Widget.Label({
|
||||
label: "Yes",
|
||||
hpack: "center",
|
||||
vpack: "center",
|
||||
}),
|
||||
on_clicked: () => Utils.exec(powermenu.cmd),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
],
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
// export default () => Widget.Window({
|
||||
// name: 'verification',
|
||||
// // transition: 'crossfade',
|
||||
// anchor: ['top', 'left', 'right', 'bottom'],
|
||||
// exclusivity: 'normal',
|
||||
// keymode: 'exclusive',
|
||||
// layer: 'top',
|
||||
// popup: true,
|
||||
// // monitor: 0,
|
||||
// visible: false,
|
||||
// child: Verification(),
|
||||
// })
|
Loading…
Add table
Add a link
Reference in a new issue