chore: update flake.lock

This commit is contained in:
matt1432 2023-10-17 23:21:24 -04:00
parent fb668e14ed
commit 5701873625
5 changed files with 17 additions and 11 deletions

View file

@ -8,6 +8,12 @@ import { RoundedCorner } from '../screen-corners.js';
import Gesture from './gesture.js'; import Gesture from './gesture.js';
// TODO: add fullscreen status in hyprland.ts
// TODO: when fullscreen changes, keep current workspace in memory.
// if it changes while still in fullscreen, check directly
// with hyprctl if in fullscreen or not until fullscreen
// status changes again
export default (props) => Overlay({ export default (props) => Overlay({
overlays: [ overlays: [
RoundedCorner('topleft', { className: 'corner' }), RoundedCorner('topleft', { className: 'corner' }),

View file

@ -14,7 +14,7 @@ export default ({
let gesture = Gtk.GestureSwipe.new(widget); let gesture = Gtk.GestureSwipe.new(widget);
widget.child = CenterBox({ widget.add(CenterBox({
children: [ child ], children: [ child ],
connections: [[gesture, () => { connections: [[gesture, () => {
const velocity = gesture.get_velocity()[1]; const velocity = gesture.get_velocity()[1];
@ -22,7 +22,7 @@ export default ({
App.openWindow('quick-settings'); App.openWindow('quick-settings');
}, 'update']], }, 'update']],
}); }));
return widget; return widget;
}; };

View file

@ -9,10 +9,10 @@ const TRANSITION = 'transition: margin 0.5s ease, opacity 3s ease;';
export default ({ properties, connections, props } = {}) => { export default ({ properties, connections, props } = {}) => {
let widget = EventBox(); let widget = EventBox({});
let gesture = Gtk.GestureDrag.new(widget) let gesture = Gtk.GestureDrag.new(widget)
widget.child = Overlay({ widget.add(Overlay({
...props, ...props,
properties: [ properties: [
...properties, ...properties,
@ -80,7 +80,7 @@ export default ({ properties, connections, props } = {}) => {
}, 'drag-end'], }, 'drag-end'],
], ],
}); }));
widget.child.list = () => widget.child.get_children().filter(ch => ch._bgStyle !== undefined); widget.child.list = () => widget.child.get_children().filter(ch => ch._bgStyle !== undefined);
return widget; return widget;

View file

@ -38,17 +38,17 @@ const Center = player => Box({
], ],
}), }),
Label(), null,
Label(), null,
], ],
}), }),
CenterBox({ CenterBox({
vertical: true, vertical: true,
children: [ children: [
Label(), null,
mpris.PlayPauseButton(player), mpris.PlayPauseButton(player),
Label(), null,
], ],
}), }),

View file

@ -56,7 +56,7 @@ export default ({
margin-right: -${Number(maxOffset + endMargin)}px; margin-right: -${Number(maxOffset + endMargin)}px;
margin-bottom: -70px; margin-top: -70px; opacity: 0;`; margin-bottom: -70px; margin-top: -70px; opacity: 0;`;
widget.child = Box({ widget.add(Box({
properties: [ properties: [
['leftAnim1', leftAnim1], ['leftAnim1', leftAnim1],
['leftAnim2', leftAnim2], ['leftAnim2', leftAnim2],
@ -136,7 +136,7 @@ export default ({
}, 'drag-end'], }, 'drag-end'],
], ],
}); }));
return widget; return widget;
}; };