chore: compile styles via gresources, gicon support

started using gicon in application for custom icons support
This commit is contained in:
retrozinndev
2025-08-10 20:35:55 -03:00
parent 00be9787f8
commit 8bea6e1fab
7 changed files with 177 additions and 71 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import { FloatingNotifications } from "./window/FloatingNotifications";
import { CenterWindow } from "./window/CenterWindow";
import { LogoutMenu } from "./window/LogoutMenu";
import { AppsWindow } from "./window/AppsWindow";
import { createRoot, getScope, onCleanup, Scope } from "/usr/share/ags/js/gnim/src/jsx/scope";
import { createRoot, getScope, onCleanup } from "ags";
import { Shell } from "./app";
import GObject, { getter, register, signal } from "ags/gobject";
@@ -182,7 +182,7 @@ class Windows extends GObject.Object {
* @returns a function that when called, returns Array<Astal.Window>
* @throws Error if there are no monitors connected
*/
public createWindowForMonitors(create: (mon: number, scope: Scope) => GObject.Object|Astal.Window): (() => Array<Astal.Window>) {
public createWindowForMonitors(create: (mon: number, scope: ReturnType<typeof getScope>) => GObject.Object|Astal.Window): (() => Array<Astal.Window>) {
const monitors = AstalHyprland.get_default().get_monitors();
if(monitors.length < 1)
@@ -213,7 +213,7 @@ class Windows extends GObject.Object {
* @returns a function that when called, returns a Astal.Window instance
* @throws Error if no focused monitor is found
*/
public createWindowForFocusedMonitor(create: (mon: number, scope: Scope) => GObject.Object|Astal.Window): (() => Astal.Window) {
public createWindowForFocusedMonitor(create: (mon: number, scope: ReturnType<typeof getScope>) => GObject.Object|Astal.Window): (() => Astal.Window) {
const focusedMonitor = this.getFocusedMonitorId();
if(focusedMonitor == null)