Skip to content

label: add support for pango markup and justification#4

Merged
AMNatty merged 2 commits intoAMNatty:mainfrom
bvr-yr:markup
Mar 5, 2024
Merged

label: add support for pango markup and justification#4
AMNatty merged 2 commits intoAMNatty:mainfrom
bvr-yr:markup

Conversation

@bvr-yr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

bvr-yr commented Mar 5, 2024

:D battle with the COMMA

@AMNatty
Copy link
Copy Markdown
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