aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags/config.js
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-05-04 15:42:48 +0900
committerGitHub <noreply@github.com>2024-05-04 15:42:48 +0900
commit1127bae8815e1b60b637d0c88832bddae7cc5a1a (patch)
tree2501119e4914f79535e5bd1e12d64fc6754337c6 /config/ags/config.js
parent5e304d31a220a64338e5cb84e397d1a102855260 (diff)
parentdc9f0cd58454b4cb33a704b11e4cc8a7c6594e67 (diff)
Merge pull request #231 from SherLock707/dev_overview
Added ags overview widget
Diffstat (limited to 'config/ags/config.js')
-rw-r--r--config/ags/config.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/config/ags/config.js b/config/ags/config.js
new file mode 100644
index 00000000..278bf351
--- /dev/null
+++ b/config/ags/config.js
@@ -0,0 +1,31 @@
+"use strict";
+import GLib from 'gi://GLib';
+import App from 'resource:///com/github/Aylur/ags/app.js'
+import userOptions from './modules/.configuration/user_options.js';
+import Overview from './modules/overview/main.js';
+
+const COMPILED_STYLE_DIR = `${GLib.get_user_config_dir()}/ags/user/`
+
+async function applyStyle() {
+
+ App.resetCss();
+ App.applyCss(`${COMPILED_STYLE_DIR}/style.css`);
+ console.log('[LOG] Styles loaded')
+}
+applyStyle().catch(print);
+
+const Windows = () => [
+ Overview()
+];
+const CLOSE_ANIM_TIME = 210;
+App.config({
+ css: `${COMPILED_STYLE_DIR}/style.css`,
+ stackTraceOnError: true,
+ closeWindowDelay: {
+ 'sideright': CLOSE_ANIM_TIME,
+ 'sideleft': CLOSE_ANIM_TIME,
+ 'osk': CLOSE_ANIM_TIME,
+ },
+ windows: Windows().flat(1),
+});
+
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage