diff --git a/devices/wim/config/ags/js/bar/systray.js b/devices/wim/config/ags/js/bar/systray.js index 565e6d9..bd4da87 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 00966f7..f52c017 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 2f2e3f9..f83b83f 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; - } - } }