anki: fix UI scale configuration
Use `numbers.between 1.0 2.0` for the UI scale type to match Anki's actual behavior where ProfileManager.uiScale clamps values below 1.0 to 1.0.
This commit is contained in:
parent
2f06b72606
commit
18f9d668aa
2 changed files with 5 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ section is therefore not final.
|
|||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The [](#opt-programs.anki.uiScale) option now expects a value in the
|
||||
range 1.0–2.0, previously it erroneously expected values in the
|
||||
range `0.0–1.0`.
|
||||
|
||||
## State Version Changes {#sec-release-26.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
|
|
@ -18,4 +22,3 @@ changes are only active if the `home.stateVersion` option is set to
|
|||
|
||||
- The `programs.zsh.dotDir` option now defaults to the XDG configuration
|
||||
directory (usually `~/.config/zsh`) when `xdg.enable` is true.
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ in
|
|||
};
|
||||
|
||||
uiScale = lib.mkOption {
|
||||
type = with lib.types; nullOr (numbers.between 0.0 1.0);
|
||||
type = with lib.types; nullOr (numbers.between 1.0 2.0);
|
||||
default = null;
|
||||
example = 1.0;
|
||||
description = "User interface scale.";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue