fix(ags): adjust to new service getters

This commit is contained in:
matt1432 2023-09-10 15:49:37 -04:00
parent 56ea245a9b
commit 0ac782cd8e
4 changed files with 6 additions and 7 deletions

View file

@ -1,7 +1,7 @@
import { exec } from 'resource:///com/github/Aylur/ags/utils.js';
import { Powermenu } from './js/powermenu.js';
import { Bar } from './js/bar/bar.js';
import { DragTest } from './js/test/drag.js';
//import { DragTest } from './js/test/drag.js';
import { Closer } from './js/common.js';
const scss = ags.App.configDir + '/scss/main.scss';
@ -18,6 +18,6 @@ export default {
Powermenu,
Bar,
Closer,
DragTest,
//DragTest,
]
}

View file

@ -14,9 +14,8 @@ Revealer({
child: Label(`${i}`),
connections: [
[Hyprland, btn => {
const { workspaces, active } = Hyprland;
const occupied = workspaces.has(i) && workspaces.get(i).windows > 0;
btn.toggleClassName('active', active.workspace.id === i);
const occupied = Hyprland.getWorkspace(i)?.windows > 0;
btn.toggleClassName('active', Hyprland.active.workspace.id === i);
btn.toggleClassName('occupied', occupied);
btn.toggleClassName('empty', !occupied);
}]

View file

@ -96,7 +96,7 @@
margin-top: -30px;
border-radius: 80px;
min-height: 37px;
background: rgba(#8466ae, 0.8);
background: rgba(#5e497c, 0.8);
}
}
}

View file

@ -110,7 +110,7 @@
margin-top: -30px;
border-radius: 80px;
min-height: 37px;
background: rgba(132, 102, 174, 0.8); }
background: rgba(94, 73, 124, 0.8); }
tooltip {
background: rgba(0, 0, 0, 0.6);