firefox: improve option descriptions for extensions (#998)

- Made the descriptions of `colorTheme.enable` and
  `firefoxGnomeTheme.enable` specify which Firefox derivative they apply
  to, to clarify that these options are specific to each derivative.

- Switched from `mkEnableTarget` to `mkEnableOption`, as these options
  are not strictly targets: they enable additional programs. This also
  changes the option description slightly.

- Removed the multi-line string as this was adding whitespace where it's
  not needed, due to the trailing newline.

Link: https://github.com/danth/stylix/pull/998

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Daniel Thwaites 2025-03-19 17:10:24 +00:00 committed by GitHub
parent cca176fce1
commit 0c4ec73df6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,14 +61,9 @@ in
default = [ ];
};
colorTheme.enable = config.lib.stylix.mkEnableTarget ''
[Firefox Color](https://color.firefox.com/) theme
'' false;
colorTheme.enable = lib.mkEnableOption "[Firefox Color](https://color.firefox.com/) on ${target.name}";
firefoxGnomeTheme.enable = config.lib.stylix.mkEnableTarget ''
[Firefox GNOME
theme](https://github.com/rafaelmardojai/firefox-gnome-theme)
'' false;
firefoxGnomeTheme.enable = lib.mkEnableOption "[Firefox GNOME theme](https://github.com/rafaelmardojai/firefox-gnome-theme) on ${target.name}";
}
) targets
);