refactor(ags): remove all Utils and some scss correction

This commit is contained in:
matt1432 2023-10-31 09:31:12 -04:00
parent 4ff3dbbc1c
commit 0e00bc978b
3 changed files with 3 additions and 13 deletions

View file

@ -8,7 +8,6 @@ import Separator from '../misc/separator.js';
const SysTrayItem = item => MenuItem({
className: 'tray-item',
child: Revealer({
transition: 'slide_right',
child: Icon({

View file

@ -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);
});

View file

@ -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;
}
}
}