stylix: support float font sizes (#692)
Link: https://github.com/danth/stylix/pull/692 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
commit
4d87b96cec
2 changed files with 9 additions and 9 deletions
|
|
@ -7,7 +7,7 @@
|
|||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.xresources.enable) {
|
||||
xresources.properties = with config.lib.stylix.colors.withHashtag; with config.stylix.fonts; {
|
||||
"*.faceName" = monospace.name;
|
||||
"*.faceSize" = sizes.terminal;
|
||||
"*.faceSize" = toString sizes.terminal;
|
||||
"*.renderFont" = true;
|
||||
"*foreground" = base05;
|
||||
"*background" = base00;
|
||||
|
|
|
|||
|
|
@ -58,35 +58,35 @@ in {
|
|||
sizes = {
|
||||
desktop = lib.mkOption {
|
||||
description = ''
|
||||
The font size used in window titles/bars/widgets elements of
|
||||
The font size (in pt) used in window titles/bars/widgets elements of
|
||||
the desktop.
|
||||
'';
|
||||
type = lib.types.ints.unsigned;
|
||||
type = with lib.types; (either ints.unsigned float);
|
||||
default = 10;
|
||||
};
|
||||
|
||||
applications = lib.mkOption {
|
||||
description = ''
|
||||
The font size used by applications.
|
||||
The font size (in pt) used by applications.
|
||||
'';
|
||||
type = lib.types.ints.unsigned;
|
||||
type = with lib.types; (either ints.unsigned float);
|
||||
default = 12;
|
||||
};
|
||||
|
||||
terminal = lib.mkOption {
|
||||
description = ''
|
||||
The font size for terminals/text editors.
|
||||
The font size (in pt) for terminals/text editors.
|
||||
'';
|
||||
type = lib.types.ints.unsigned;
|
||||
type = with lib.types; (either ints.unsigned float);
|
||||
default = cfg.sizes.applications;
|
||||
};
|
||||
|
||||
popups = lib.mkOption {
|
||||
description = ''
|
||||
The font size for notifications/popups and in general overlay
|
||||
The font size (in pt) for notifications/popups and in general overlay
|
||||
elements of the desktop.
|
||||
'';
|
||||
type = lib.types.ints.unsigned;
|
||||
type = with lib.types; (either ints.unsigned float);
|
||||
default = cfg.sizes.desktop;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue