summaryrefslogtreecommitdiff
path: root/scheme/gen-scheme.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-28 23:04:44 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-28 23:04:44 +1100
commit9a9fdb39a4a4a382e8021b589238c2e08619879f (patch)
treed803d526b2195a0ec8d8126933803f724406726f /scheme/gen-scheme.fish
parentinstall: foot exec -> foot (diff)
downloadcaelestia-cli-9a9fdb39a4a4a382e8021b589238c2e08619879f.tar.gz
caelestia-cli-9a9fdb39a4a4a382e8021b589238c2e08619879f.tar.bz2
caelestia-cli-9a9fdb39a4a4a382e8021b589238c2e08619879f.zip
scheme: better colour generation
Pass okolors colours through material and use primary (except for mono scheme) Mono is the same
Diffstat (limited to 'scheme/gen-scheme.fish')
-rwxr-xr-xscheme/gen-scheme.fish9
1 files changed, 2 insertions, 7 deletions
diff --git a/scheme/gen-scheme.fish b/scheme/gen-scheme.fish
index 4e82882..22751fa 100755
--- a/scheme/gen-scheme.fish
+++ b/scheme/gen-scheme.fish
@@ -7,19 +7,14 @@ set -l src (dirname (status filename))
test -f "$argv[1]" && set -l img (realpath "$argv[1]") || set -l img $C_STATE/wallpaper/thumbnail.jpg
contains -- "$argv[2]" light dark && set -l theme $argv[2] || set -l theme dark
-set -l variants vibrant tonalspot expressive fidelity fruitsalad rainbow neutral content
+set -l variants vibrant tonalspot expressive fidelity fruitsalad rainbow neutral content monochrome
# Generate colours
-test $theme = light && set -l lightness 50 || set -l lightness 70
-set -l colours (okolors $img -k 14 -w 0 -l $lightness)
+set -l colours (okolors $img -k 14)
for variant in $variants
mkdir -p $src/../data/schemes/dynamic/$variant
$src/autoadjust.py $theme $variant $colours > $src/../data/schemes/dynamic/$variant/$theme.txt
end
-mkdir -p $src/../data/schemes/dynamic/monochrome
-$src/autoadjust.py $theme monochrome (okolors $img -k 14) > $src/../data/schemes/dynamic/monochrome/$theme.txt
-
-set -la variants monochrome
# Generate layers and accents
set -l tmp (mktemp)