mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
feat: update system
This commit is contained in:
@@ -13,7 +13,7 @@ class Asusctl extends Service {
|
||||
);
|
||||
}
|
||||
|
||||
profiles = Object.freeze(["Performance", "Balanced", "Quiet"]);
|
||||
profiles = /** @type {const} */ (["Performance", "Balanced", "Quiet"]);
|
||||
#profile = "Balanced";
|
||||
#mode = "Hyprid";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import Notifications from "resource:///com/github/Aylur/ags/service/notifications.js";
|
||||
import { Variable } from "resource:///com/github/Aylur/ags/variable.js";
|
||||
import * as Utils from "resource:///com/github/Aylur/ags/utils.js";
|
||||
import Service from "resource:///com/github/Aylur/ags/service.js";
|
||||
import { dependencies } from "../utils.js";
|
||||
import icons from "../icons.js";
|
||||
|
||||
const COLORS_CACHE = Utils.CACHE_DIR + "/colorpicker.json";
|
||||
|
||||
@@ -58,15 +58,15 @@ class Colors extends Service {
|
||||
);
|
||||
}
|
||||
|
||||
this.#notifID = Notifications.Notify(
|
||||
"Color Picker",
|
||||
this.#notifID,
|
||||
"color-select-symbolic",
|
||||
color,
|
||||
"",
|
||||
[],
|
||||
{},
|
||||
);
|
||||
const n = await Utils.notify({
|
||||
id: this.#notifID,
|
||||
iconName: icons.ui.colorpicker,
|
||||
summary: color,
|
||||
actions: {
|
||||
Copy: () => this.wlCopy(color),
|
||||
},
|
||||
});
|
||||
this.#notifID = n.id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user