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

label: add support for pango markup and justification #4

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

bvr-yr
Copy link
Contributor

@bvr-yr bvr-yr commented Mar 2, 2024

this adds ability to use Pango markup in label text

also adds justify config key, defaulting to center
it aligns multi-line text in label container, the label itself still aligned with width and height

other options are:

  • fill
  • right
  • left

font icons are rendered much better than PNG or SVG, besides, it is possible to add some css stuff to text like shadows

wleave.mp4

@AMNatty
Copy link
Owner

AMNatty commented Mar 5, 2024

The changes look good and don't break default behavior, so I'll merge it, thank you

@AMNatty AMNatty force-pushed the main branch 2 times, most recently from 31adc4a to ea9f6c5 Compare March 5, 2024 13:11
@AMNatty AMNatty force-pushed the main branch 2 times, most recently from 43d085d to b20a707 Compare March 5, 2024 13:20
@AMNatty AMNatty merged commit d63b0e7 into AMNatty:main Mar 5, 2024
@bvr-yr
Copy link
Contributor Author

bvr-yr commented Mar 5, 2024

:D battle with the COMMA

@AMNatty
Copy link
Owner

AMNatty commented Mar 5, 2024

Battle with GitHub not considering it merged 😅

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

Successfully merging this pull request may close these issues.

2 participants