fix rgb themeing
This commit is contained in:
parent
63137c2f6f
commit
1d317b21fb
2 changed files with 18 additions and 30 deletions
|
@ -7,13 +7,6 @@ inputs: {
|
|||
with lib; let
|
||||
cfg = config.ezcolors;
|
||||
|
||||
pow = n: i:
|
||||
if i == 1
|
||||
then n
|
||||
else if i == 0
|
||||
then 1
|
||||
else n * pow n (i - 1);
|
||||
|
||||
alf = ["0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "a" "b" "c" "d" "e" "f"];
|
||||
fil = c:
|
||||
lib.imap0 (n: x:
|
||||
|
@ -22,12 +15,7 @@ with lib; let
|
|||
else null)
|
||||
alf;
|
||||
fin = c: builtins.elemAt (builtins.filter (x: x != null) (fil c)) 0;
|
||||
add = l:
|
||||
lib.foldr ({
|
||||
n,
|
||||
x,
|
||||
}: c: (x * (pow 16 n)) + c)
|
||||
0 (lib.imap0 (n: x: {inherit n x;}) l);
|
||||
add = l: lib.foldl (acc: n: acc * 16 + n) 0 l;
|
||||
calc = s: add (builtins.map fin (builtins.filter (x: builtins.isString x && builtins.stringLength x == 1) (builtins.split "" s)));
|
||||
|
||||
splitHex = c: let
|
||||
|
@ -324,7 +312,7 @@ in {
|
|||
* {
|
||||
background-color: @background;
|
||||
border-color: @border-color;
|
||||
text-color: @foreground;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
#window {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue