fix(ags powermenu): make the eventbox the right size
This commit is contained in:
parent
f065d595a1
commit
6ab95385ee
2 changed files with 4 additions and 5 deletions
|
@ -7,14 +7,13 @@ import PopupWindow from './misc/popup.js';
|
||||||
import CursorBox from './misc/cursorbox.js';
|
import CursorBox from './misc/cursorbox.js';
|
||||||
|
|
||||||
|
|
||||||
// FIXME: eventboxes are the wrong size
|
|
||||||
const PowermenuWidget = () => CenterBox({
|
const PowermenuWidget = () => CenterBox({
|
||||||
class_name: 'powermenu',
|
class_name: 'powermenu',
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
vertical: false,
|
vertical: false,
|
||||||
|
|
||||||
start_widget: CursorBox({
|
start_widget: CursorBox({
|
||||||
class_name: 'shutdown',
|
class_name: 'shutdown button',
|
||||||
on_primary_click_release: () => execAsync(['systemctl', 'poweroff'])
|
on_primary_click_release: () => execAsync(['systemctl', 'poweroff'])
|
||||||
.catch(print),
|
.catch(print),
|
||||||
|
|
||||||
|
@ -24,7 +23,7 @@ const PowermenuWidget = () => CenterBox({
|
||||||
}),
|
}),
|
||||||
|
|
||||||
center_widget: CursorBox({
|
center_widget: CursorBox({
|
||||||
class_name: 'reboot',
|
class_name: 'reboot button',
|
||||||
on_primary_click_release: () => execAsync(['systemctl', 'reboot'])
|
on_primary_click_release: () => execAsync(['systemctl', 'reboot'])
|
||||||
.catch(print),
|
.catch(print),
|
||||||
|
|
||||||
|
@ -34,7 +33,7 @@ const PowermenuWidget = () => CenterBox({
|
||||||
}),
|
}),
|
||||||
|
|
||||||
end_widget: CursorBox({
|
end_widget: CursorBox({
|
||||||
class_name: 'logout',
|
class_name: 'logout button',
|
||||||
on_primary_click_release: () => Hyprland.sendMessage('dispatch exit')
|
on_primary_click_release: () => Hyprland.sendMessage('dispatch exit')
|
||||||
.catch(print),
|
.catch(print),
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
min-height: 130px;
|
min-height: 130px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
.button {
|
||||||
margin: 5px 10px;
|
margin: 5px 10px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
|
|
Loading…
Reference in a new issue