summaryrefslogtreecommitdiff
path: root/scheme
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-25 17:53:15 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-25 17:53:15 +1100
commit345d206c6f5b9602900176d57a89eee5fa489152 (patch)
tree5d10bb917dfe32d7e2cf405e8404644dc97c68d0 /scheme
parentgen-scheme: fix arg parsing (diff)
downloadcaelestia-cli-345d206c6f5b9602900176d57a89eee5fa489152.tar.gz
caelestia-cli-345d206c6f5b9602900176d57a89eee5fa489152.tar.bz2
caelestia-cli-345d206c6f5b9602900176d57a89eee5fa489152.zip
scheme: success and error colours
Diffstat (limited to 'scheme')
-rwxr-xr-xscheme/autoadjust.py6
-rwxr-xr-xscheme/gen-scheme.fish2
2 files changed, 6 insertions, 2 deletions
diff --git a/scheme/autoadjust.py b/scheme/autoadjust.py
index db70138..6da0cf9 100755
--- a/scheme/autoadjust.py
+++ b/scheme/autoadjust.py
@@ -106,10 +106,14 @@ if __name__ == "__main__":
colours = smart_sort(colours, base) # TODO: optional smart sort
- mix_colours(colours, base, 0.5) # TODO: customize mixing from config
+ mix_colours(colours, base, 0) # TODO: customize mixing from config
for colour in colours:
print(colour)
for layer in sys.argv[4:]:
print(layer.split(" ")[0])
+
+ # Success and error colours # TODO: customize mixing
+ print(mix(colours[8], base[8], 0.9)) # Success (green)
+ print(mix(colours[4], base[4], 0.9)) # Error (red)
diff --git a/scheme/gen-scheme.fish b/scheme/gen-scheme.fish
index eee83e7..bf4ed95 100755
--- a/scheme/gen-scheme.fish
+++ b/scheme/gen-scheme.fish
@@ -41,7 +41,7 @@ echo -n $colour_scheme > $C_STATE/scheme/dynamic-mode.txt
# 2nd line except first element is the palette
# The first element in lines 3+ are the layers
-set -l names rosewater flamingo pink mauve red maroon peach yellow green teal sky sapphire blue lavender text subtext1 subtext0 overlay2 overlay1 overlay0 surface2 surface1 surface0 base mantle crust
+set -l names rosewater flamingo pink mauve red maroon peach yellow green teal sky sapphire blue lavender text subtext1 subtext0 overlay2 overlay1 overlay0 surface2 surface1 surface0 base mantle crust success error
set -l colours ($src/autoadjust.py $colour_scheme (okolors $img -k 15 -w 0 -l $light_vals))
for i in (seq 1 (count $colours))