stylix: use floats for font sizes

This commit is contained in:
musjj 2024-12-22 18:59:32 +07:00
parent 4f489c6393
commit 75f38f9edf

View file

@ -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;
};
};