qutebrowser: use correct fonts.web.size.default type (#239)

* fix(modules/qutebrowser): use correct 'fonts.web.size.default' type

Use the correct 'fonts.web.size.default' type to avoid the following
error:

> Errors occurred while reading config.py:
>   While setting 'fonts.web.size.default': Invalid value '10pt' -
>   expected a value of type int but got str.

Reference: https://qutebrowser.org/doc/help/settings.html#fonts.web.size.default
Follows: https://github.com/danth/stylix/pull/221

* fix(modules/qutebrowser): convert 'point' unit to 'pixel' unit

Addresses: https://github.com/danth/stylix/pull/239#issuecomment-1931788095
Requires: https://github.com/danth/stylix/issues/251
This commit is contained in:
NAHO 2024-02-07 14:08:31 +01:00 committed by GitHub
parent a2d8d6b460
commit 9942fca870
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -215,7 +215,8 @@ in {
serif = serif.name;
standard = sansSerif.name;
};
web.size.default = "${toString sizes.applications}pt";
# TODO: Use the pixel unit: https://github.com/danth/stylix/issues/251.
web.size.default = builtins.floor (sizes.applications * 4 / 3 + 0.5);
};
};
};