ags(bar/apps): change style on apps-window state changed

This commit is contained in:
retrozinndev
2025-04-15 17:28:13 -03:00
parent 9e4f65aedc
commit b5db51119e
2 changed files with 8 additions and 7 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
import { Gtk, Widget } from "astal/gtk3";
import { tr } from "../../i18n/intl";
import { Windows } from "../../windows";
import { bind } from "astal";
export function Apps(): Gtk.Widget {
return new Widget.EventBox({
onClickRelease: () => Windows.open("apps-window"),
className: "apps",
className: bind(Windows, "openWindows").as((openWindows) =>
Object.hasOwn(openWindows, "apps-window") ? "apps open" : "apps"),
child: new Widget.Box({
child: new Widget.Icon({
tooltipText: tr("bar.apps.tooltip"),