Skip to content

Commit

Permalink
made contrast configurable in nix module
Browse files Browse the repository at this point in the history
  • Loading branch information
Talia-12 committed Aug 29, 2024
1 parent ac4a36b commit 80a7816
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ matugen: {
--mode ${cfg.variant} \
--type ${cfg.type} \
--json ${cfg.jsonFormat} \
--contrast ${lib.strings.floatToString cfg.contrast} \
--quiet \
> $out/theme.json
'');
Expand Down Expand Up @@ -182,6 +183,13 @@ in {
example = "light";
};

contrast = lib.mkOption {
description = "Value from -1 to 1. -1 represents minimum contrast, 0 represents standard (i.e. the design as spec'd), and 1 represents maximum contrast.";
type = lib.types.numbers.between (-1) 1;
default = 0;
example = "0.2";
};

config = lib.mkOption {
description = "Add things to the config not covered by other options.";
type = lib.types.attrs;
Expand Down

0 comments on commit 80a7816

Please sign in to comment.