Skip to content

Commit c820aae

Browse files
committed
vivid: replace theme content from yaml with json
This should fix missinterpretation of hex colors (which should be a string) as numbers in scientific notation. For example: 1e2030.
1 parent 8f67e7d commit c820aae

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

modules/programs/vivid.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ in
138138
// (lib.mapAttrs' (
139139
name: value:
140140
lib.nameValuePair "vivid/themes/${name}.yml" {
141-
source = if lib.isAttrs value then yamlFormat.generate "${name}.yml" value else value;
141+
source = if lib.isAttrs value then pkgs.writeText "${name}.json" (builtins.toJSON value) else value;
142142
}
143143
) cfg.themes);
144144

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
colors:
2-
primary: 00aaff
3-
secondary: ff00aa
4-
core:
5-
directory:
6-
foreground: primary
7-
executable-file:
8-
font-style: bold
9-
foreground: secondary
1+
{"colors":{"primary":"00aaff","secondary":"ff00aa"},"core":{"directory":{"foreground":"primary"},"executable-file":{"font-style":"bold","foreground":"secondary"}}}

0 commit comments

Comments
 (0)