forked from Shinonome/dots-hyprland
getting ready for more apis...
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"strict mode";
|
||||
// Import
|
||||
import { App, Utils } from './imports.js';
|
||||
import { firstRunWelcome } from './services/messages.js';
|
||||
// Widgets
|
||||
import Bar from './widgets/bar/main.js';
|
||||
import Cheatsheet from './widgets/cheatsheet/main.js';
|
||||
@@ -15,18 +14,20 @@ import Session from './widgets/session/main.js';
|
||||
import SideLeft from './widgets/sideleft/main.js';
|
||||
import SideRight from './widgets/sideright/main.js';
|
||||
|
||||
// Longer than actual anim time (see styles) to make sure widgets animate fully
|
||||
const CLOSE_ANIM_TIME = 210;
|
||||
const CLOSE_ANIM_TIME = 210; // Longer than actual anim time (see styles) to make sure widgets animate fully
|
||||
|
||||
// Init cache and check first run
|
||||
Utils.exec(`bash -c 'mkdir -p ~/.cache/ags/user/colorschemes'`);
|
||||
|
||||
// SCSS compilation
|
||||
Utils.exec(`bash -c 'echo "" > ${App.configDir}/scss/_musicwal.scss'`); // reset music styles
|
||||
Utils.exec(`bash -c 'echo "" > ${App.configDir}/scss/_musicmaterial.scss'`); // reset music styles
|
||||
Utils.exec(`sassc ${App.configDir}/scss/main.scss ${App.configDir}/style.css`);
|
||||
App.resetCss();
|
||||
App.applyCss(`${App.configDir}/style.css`);
|
||||
function applyStyle() {
|
||||
Utils.exec(`sassc ${App.configDir}/scss/main.scss ${App.configDir}/style.css`);
|
||||
App.resetCss();
|
||||
App.applyCss(`${App.configDir}/style.css`);
|
||||
console.log('[LOG] Styles loaded')
|
||||
}
|
||||
applyStyle();
|
||||
|
||||
// Config object
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user