From 570187362562d0dd24a4ffb0dcbef9418f1c9cd9 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 17 Oct 2023 23:21:24 -0400 Subject: [PATCH] chore: update flake.lock --- hosts/wim/config/ags/js/bar/fullscreen.js | 6 ++++++ hosts/wim/config/ags/js/bar/gesture.js | 4 ++-- hosts/wim/config/ags/js/media-player/gesture.js | 6 +++--- hosts/wim/config/ags/js/media-player/player.js | 8 ++++---- hosts/wim/config/ags/js/notifications/gesture.js | 4 ++-- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/hosts/wim/config/ags/js/bar/fullscreen.js b/hosts/wim/config/ags/js/bar/fullscreen.js index 528546ae..5a43a0d1 100644 --- a/hosts/wim/config/ags/js/bar/fullscreen.js +++ b/hosts/wim/config/ags/js/bar/fullscreen.js @@ -8,6 +8,12 @@ import { RoundedCorner } from '../screen-corners.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({ overlays: [ RoundedCorner('topleft', { className: 'corner' }), diff --git a/hosts/wim/config/ags/js/bar/gesture.js b/hosts/wim/config/ags/js/bar/gesture.js index 474e6d75..8fe6fd09 100644 --- a/hosts/wim/config/ags/js/bar/gesture.js +++ b/hosts/wim/config/ags/js/bar/gesture.js @@ -14,7 +14,7 @@ export default ({ let gesture = Gtk.GestureSwipe.new(widget); - widget.child = CenterBox({ + widget.add(CenterBox({ children: [ child ], connections: [[gesture, () => { const velocity = gesture.get_velocity()[1]; @@ -22,7 +22,7 @@ export default ({ App.openWindow('quick-settings'); }, 'update']], - }); + })); return widget; }; diff --git a/hosts/wim/config/ags/js/media-player/gesture.js b/hosts/wim/config/ags/js/media-player/gesture.js index 8cdc344a..76906f9c 100644 --- a/hosts/wim/config/ags/js/media-player/gesture.js +++ b/hosts/wim/config/ags/js/media-player/gesture.js @@ -9,10 +9,10 @@ const TRANSITION = 'transition: margin 0.5s ease, opacity 3s ease;'; export default ({ properties, connections, props } = {}) => { - let widget = EventBox(); + let widget = EventBox({}); let gesture = Gtk.GestureDrag.new(widget) - widget.child = Overlay({ + widget.add(Overlay({ ...props, properties: [ ...properties, @@ -80,7 +80,7 @@ export default ({ properties, connections, props } = {}) => { }, 'drag-end'], ], - }); + })); widget.child.list = () => widget.child.get_children().filter(ch => ch._bgStyle !== undefined); return widget; diff --git a/hosts/wim/config/ags/js/media-player/player.js b/hosts/wim/config/ags/js/media-player/player.js index c78e7153..c1704d5a 100644 --- a/hosts/wim/config/ags/js/media-player/player.js +++ b/hosts/wim/config/ags/js/media-player/player.js @@ -38,17 +38,17 @@ const Center = player => Box({ ], }), - Label(), - Label(), + null, + null, ], }), CenterBox({ vertical: true, children: [ - Label(), + null, mpris.PlayPauseButton(player), - Label(), + null, ], }), diff --git a/hosts/wim/config/ags/js/notifications/gesture.js b/hosts/wim/config/ags/js/notifications/gesture.js index 45b957be..10f802d0 100644 --- a/hosts/wim/config/ags/js/notifications/gesture.js +++ b/hosts/wim/config/ags/js/notifications/gesture.js @@ -56,7 +56,7 @@ export default ({ margin-right: -${Number(maxOffset + endMargin)}px; margin-bottom: -70px; margin-top: -70px; opacity: 0;`; - widget.child = Box({ + widget.add(Box({ properties: [ ['leftAnim1', leftAnim1], ['leftAnim2', leftAnim2], @@ -136,7 +136,7 @@ export default ({ }, 'drag-end'], ], - }); + })); return widget; };