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

config: add sizex using CLayoutXValueData for reproducible layouting of image and label #591

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PaideiaDilemma
Copy link
Collaborator

Closes #555
Closes #261

BREAKING: removed image:size in favour of image:sizex.

Image:

Image is now dimensioned via sizex which allows you to specify the x dimension in px or %. The y dimension is inferred from the ratio of the image.

Label:

Label keeps the font_size option and sizex will be 0 per default. As long as sizex stays 0, labels behave the same as currently.
However, you can now set the absolute size of a label with sizex (y is inferred from the texture). In combination with font_size this allows to configure the sharpness in a way.

…of image and label

BREAKING: removed image:size in favour of image:sizex
@PaideiaDilemma
Copy link
Collaborator Author

Not sure about the breaking change for images.
I don't like that it is currently called size, since that option is 2D everywhere else and you also don't really specify the size currently. Its more like a scaling option.

@PaideiaDilemma
Copy link
Collaborator Author

Wiki mr: hyprwm/hyprland-wiki#912

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