diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-05-05 00:12:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-05 00:12:26 +0900 |
| commit | 962a09dd0088cd01cbf3e678c4c500ff5087e4e4 (patch) | |
| tree | 92f8977ed345ba8a39141ff7d36f423efd46f43a /config/ags/config.js | |
| parent | e27bc1e75280f02a0798e7150d7e7c775ee1aff6 (diff) | |
| parent | e29068df76f763a999b9013ece32c8adb299b29f (diff) | |
Merge branch 'experimental-ags' into main
Diffstat (limited to 'config/ags/config.js')
| -rw-r--r-- | config/ags/config.js | 31 |
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), +}); + |
