-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
label: add relative values for font_size #674
base: main
Are you sure you want to change the base?
Conversation
Looks exactly like what I initially intended for label size to be output relative. However, there is also #591, That pr makes you configure I will test this later. |
@Memoraike, since you commented on the other PR, which solution would you prefer? |
I prefer #591, it's more flexible and perfectly solves the problem I faced when developing complex |
Didn't realize that MR implemented ~ the same thing. Name is kinda not obvious.
|
Also |
Sorry for not responding earlier. Actually like you said in point 3, you are right that this is not really the same as I would propose to get the PR for Afterwards, we can adapt this PR and make font size and all size/position args support
Yes that is 100% correct and an additional reason why we might want to have @NotLebedev does that work for you? |
Yeah. That is exactly what I wanted to accomplish. I will update this PR when the other one is ready |
This adds ability to use relative sizing for
font_size
of label widget. It's really useful to use%
to position and size widgets across displays with different resolutions, however such functionality is lacking infont_size
. Addedvh
andvw
suffixes to size text proportionally to viewport height and width respectively. This functions the same as in css. Also I pickedvw
andvh
instead of%
because in css it is defined as "relative to parent objects" font size and in hyprlock there is no parent object font size, so this would be just confusing whichever way it is implemented.Examples in action (sorry for photos of screen, didn't figure out how to screenshot):

4K screen before (config was created for it):
4K screen after (changed all values in config to

vh
):1080p screen before:

1080p screen after:

P.S. thanks for this awesome piece of software. Works like a charm!