move to snowfall
This commit is contained in:
parent
9d7ad7c973
commit
769d4b0df5
188 changed files with 2203 additions and 3041 deletions
29
modules/home/apps/helpers/ags/cfg/config.js
Normal file
29
modules/home/apps/helpers/ags/cfg/config.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { Utils, App } from "./imports.js";
|
||||
|
||||
// Windows
|
||||
import { Bar } from "./modules/bar/bar.js";
|
||||
import { Dashboard } from "./modules/dashboard/dashboard.js";
|
||||
|
||||
// Apply css
|
||||
const applyScss = () => {
|
||||
// Compile scss
|
||||
Utils.exec(
|
||||
`sassc ${App.configDir}/scss/main.scss ${App.configDir}/style.css`,
|
||||
);
|
||||
console.log("Scss compiled");
|
||||
|
||||
// Apply compiled css
|
||||
App.resetCss();
|
||||
App.applyCss(`${App.configDir}/style.css`);
|
||||
console.log("Compiled css applied");
|
||||
};
|
||||
|
||||
// Apply css then check for changes
|
||||
applyScss();
|
||||
|
||||
|
||||
// Main config
|
||||
export default {
|
||||
style: `${App.configDir}/style.css`,
|
||||
windows: [Bar(), Dashboard() ],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue