label: add relative values for font_size#674
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 |
|
It's sad that this PR didn't make it into the recent release. |
|
Fell out of the loop, but I'm back. Sorry for the delay. I see that #591 was closed. I think this PR and what I may do in this direction needs to be reealuated. @PaideiaDilemma what's your current idea? |
|
Sorry I am also not really in the loop on this one currently. I closed #591, because I wasn't happy with the approach. Check out #555 (comment), where I described my alternative plan. If you have some time on your hand, feel free to pick up what I wrote in the comment I linked if you want (I also linked a commit). Otherwise I am afraid it will take a bit longer to do what was planed here. |
|
Just a gentle ping, would be nice to have this feature as I'm using the same hyprlock config across multiple machines. What you described in #555 comment looks usable at least. |
|
I ran into a roadblock in terms of the configuration format. |
|
Tracking: related to #261 |

This adds ability to use relative sizing for
font_sizeof 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. Addedvhandvwsuffixes to size text proportionally to viewport height and width respectively. This functions the same as in css. Also I pickedvwandvhinstead 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!