fix menus
Menu windows have the .popup class for some reason, so change name
This commit is contained in:
parent
751ad07e15
commit
c56e136359
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ label.icon {
|
|||
@include font.icon;
|
||||
}
|
||||
|
||||
window.popup {
|
||||
.popup-window {
|
||||
transition: opacity 300ms linear;
|
||||
opacity: 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export const convertPopupWindowProps = (props: Widget.WindowProps): Widget.Windo
|
|||
? overrideProp(props.name, n => (n && props.monitor ? n + props.monitor : undefined))
|
||||
: props.name,
|
||||
namespace: overrideProp(props.name, n => `caelestia-${n}`),
|
||||
className: overrideProp(props.className, c => `popup ${c}`),
|
||||
className: overrideProp(props.className, c => `popup-window ${c}`),
|
||||
onKeyPressEvent: (self, event) => {
|
||||
// Close window on escape
|
||||
if (event.get_keyval()[1] === Gdk.KEY_Escape) self.hide();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue