From 0e00bc978bd1c42a9593dfb76f4b0970ad343603 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 31 Oct 2023 09:31:12 -0400 Subject: [PATCH] refactor(ags): remove all Utils and some scss correction --- devices/wim/config/ags/js/bar/systray.js | 1 - devices/wim/config/ags/js/overview/clients.js | 4 ++-- devices/wim/config/ags/scss/widgets/systray.scss | 11 +---------- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/devices/wim/config/ags/js/bar/systray.js b/devices/wim/config/ags/js/bar/systray.js index 565e6d91..bd4da87a 100644 --- a/devices/wim/config/ags/js/bar/systray.js +++ b/devices/wim/config/ags/js/bar/systray.js @@ -8,7 +8,6 @@ import Separator from '../misc/separator.js'; const SysTrayItem = item => MenuItem({ - className: 'tray-item', child: Revealer({ transition: 'slide_right', child: Icon({ diff --git a/devices/wim/config/ags/js/overview/clients.js b/devices/wim/config/ags/js/overview/clients.js index 00966f7a..f52c017f 100644 --- a/devices/wim/config/ags/js/overview/clients.js +++ b/devices/wim/config/ags/js/overview/clients.js @@ -1,7 +1,7 @@ import App from 'resource:///com/github/Aylur/ags/app.js'; import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js'; import { Icon, Revealer } from 'resource:///com/github/Aylur/ags/widget.js'; -import { execAsync } from 'resource:///com/github/Aylur/ags/utils.js'; +import { execAsync, timeout } from 'resource:///com/github/Aylur/ags/utils.js'; import { WindowButton } from './dragndrop.js'; import * as VARS from './variables.js'; @@ -130,7 +130,7 @@ export function updateClients(box) { } // Set a timeout here to have an animation when the icon first appears - Utils.timeout(1, () => { + timeout(1, () => { newClient[0].child.child.className = `window ${active}`; newClient[0].child.child.style = IconStyle(client); }); diff --git a/devices/wim/config/ags/scss/widgets/systray.scss b/devices/wim/config/ags/scss/widgets/systray.scss index 2f2e3f95..f83b83f4 100644 --- a/devices/wim/config/ags/scss/widgets/systray.scss +++ b/devices/wim/config/ags/scss/widgets/systray.scss @@ -6,7 +6,7 @@ transition: background-color 0.5s ease-in-out, border 0.5s ease-in-out; - .tray-item { + menuitem { image { color: #CBA6F7; } background-color: transparent; padding: 0 2px; @@ -27,13 +27,4 @@ menubar { background-color: transparent; } - - menuitem:not(.tray-item) { - padding: 5px; - transition: all 0.2s ease-in-out; - - &:hover { - background: #1b1b1b; - } - } }