From 345d206c6f5b9602900176d57a89eee5fa489152 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:53:15 +1100 Subject: scheme: success and error colours --- data/schemes/frappe.txt | 2 ++ data/schemes/latte.txt | 2 ++ data/schemes/macchiato.txt | 2 ++ data/schemes/mocha.txt | 2 ++ data/schemes/onedark.txt | 2 ++ scheme/autoadjust.py | 6 +++++- scheme/gen-scheme.fish | 2 +- 7 files changed, 16 insertions(+), 2 deletions(-) diff --git a/data/schemes/frappe.txt b/data/schemes/frappe.txt index 8a9c80a..b572562 100644 --- a/data/schemes/frappe.txt +++ b/data/schemes/frappe.txt @@ -24,4 +24,6 @@ surface0 414559 base 303446 mantle 292c3c crust 232634 +success a6d189 +error e78284 accent 99d1db \ No newline at end of file diff --git a/data/schemes/latte.txt b/data/schemes/latte.txt index b2dbdb3..ec3b601 100644 --- a/data/schemes/latte.txt +++ b/data/schemes/latte.txt @@ -24,4 +24,6 @@ surface0 ccd0da base eff1f5 mantle e6e9ef crust dce0e8 +success 40a02b +error d20f39 accent 1e66f5 \ No newline at end of file diff --git a/data/schemes/macchiato.txt b/data/schemes/macchiato.txt index 2ffa1e5..ad234a2 100644 --- a/data/schemes/macchiato.txt +++ b/data/schemes/macchiato.txt @@ -24,4 +24,6 @@ surface0 363a4f base 24273a mantle 1e2030 crust 181926 +success a6da95 +error ed8796 accent b7bdf8 \ No newline at end of file diff --git a/data/schemes/mocha.txt b/data/schemes/mocha.txt index 7865bd8..77e96eb 100644 --- a/data/schemes/mocha.txt +++ b/data/schemes/mocha.txt @@ -24,4 +24,6 @@ surface0 313244 base 1e1e2e mantle 181825 crust 11111b +success a6e3a1 +error f38ba8 accent cba6f7 \ No newline at end of file diff --git a/data/schemes/onedark.txt b/data/schemes/onedark.txt index 1fc3631..6485f5e 100644 --- a/data/schemes/onedark.txt +++ b/data/schemes/onedark.txt @@ -24,4 +24,6 @@ surface0 30343e base 282c34 mantle 21242b crust 1e2126 +success 98c379 +error be5046 accent d19a66 \ No newline at end of file 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)) -- cgit v1.2.3-freya