diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 14:23:01 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-26 14:23:01 +1100 |
| commit | 4d63001a92dc9c609982ed6fc3a34b6e862ad046 (patch) | |
| tree | 6b30b3ea786873ab4f1eb9f3b203b8703cdde226 | |
| parent | scheme: dynamic scheme (diff) | |
| download | caelestia-cli-4d63001a92dc9c609982ed6fc3a34b6e862ad046.tar.gz caelestia-cli-4d63001a92dc9c609982ed6fc3a34b6e862ad046.tar.bz2 caelestia-cli-4d63001a92dc9c609982ed6fc3a34b6e862ad046.zip | |
scheme: dynamic scheme for discord
| -rwxr-xr-x | scheme/apply-scheme.fish | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scheme/apply-scheme.fish b/scheme/apply-scheme.fish index df5bcba..cf15156 100755 --- a/scheme/apply-scheme.fish +++ b/scheme/apply-scheme.fish @@ -14,6 +14,15 @@ function gen-scss end end +function gen-scss-palette + echo '$palette: (' + for colour in $argv + set -l split (string split ' ' $colour) + echo " \"$split[1]\": #$split[2]," + end + echo ');' +end + function gen-foot cp (dirname (status filename))/../data/foot.template $CONFIG/../foot/schemes/dynamic.ini for colour in $argv @@ -42,6 +51,13 @@ if test -d $CONFIG/safeeyes/scheme gen-scss $colours > $CONFIG/safeeyes/scheme/_dynamic.scss end +if test -d $CONFIG/discord/dynamic && test -d $CONFIG/discord/themes + log 'Generating discord scheme' + gen-scss $colours > $CONFIG/discord/dynamic/_variables.scss + gen-scss-palette $colours >> $CONFIG/discord/dynamic/_variables.scss + sass -q --no-charset --no-source-map $CONFIG/discord/dynamic/dynamic.scss $CONFIG/discord/themes/dynamic.theme.css +end + if test -d $CONFIG/../foot/schemes log 'Generating foot scheme' gen-foot $colours |