Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow floats for font sizes #692

Merged
merged 2 commits into from
Dec 22, 2024
Merged

Allow floats for font sizes #692

merged 2 commits into from
Dec 22, 2024

Conversation

musjj
Copy link
Contributor

@musjj musjj commented Dec 22, 2024

Font sizes are currently treated as pt, so they should allow floating point values in addition to integer values. The documentation is also updated to make this clear.

I've done my best to check and adjust affected modules, but I may have missed some so extra eyes would be appreciated.

@musjj musjj changed the title Use floats for font sizes Allow floats for font sizes Dec 22, 2024
Copy link
Collaborator

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider squashing and rewording the following two commits:

Subject: [PATCH 1/3] stylix: use floats for font sizes
Subject: [PATCH 3/3] stylix: revert font size defaults to integers

The current patchset successfully builds in my setup:

Tested-by: NAHO <[email protected]>

modules/xresources/hm.nix Outdated Show resolved Hide resolved
A hack necessary because of a home-manager limitation. It works because
numbers and strings are serialized the same way for .Xresources. It
should be reverted after this issue is addressed upstream.
@trueNAHO trueNAHO merged commit 4d87b96 into danth:master Dec 22, 2024
12 checks passed
@stylix-automation
Copy link

Successfully created backport PR for release-24.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants