From 80a781659f626adf40febdca2c339c200a92b556 Mon Sep 17 00:00:00 2001 From: Talia-12 Date: Thu, 29 Aug 2024 01:34:30 +1000 Subject: [PATCH] made contrast configurable in nix module --- module.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module.nix b/module.nix index f5f145e..4397c34 100644 --- a/module.nix +++ b/module.nix @@ -76,6 +76,7 @@ matugen: { --mode ${cfg.variant} \ --type ${cfg.type} \ --json ${cfg.jsonFormat} \ + --contrast ${lib.strings.floatToString cfg.contrast} \ --quiet \ > $out/theme.json ''); @@ -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;