PixelIt icon indicating copy to clipboard operation
PixelIt copied to clipboard

Combine centerText with scrollText=auto

Open miccgn opened this issue 4 years ago • 2 comments

It would be a nice enhancement if I could specify both "centerText=true" and "scrollText=auto".

Expected behaviour:

  • if text fits into display: center it, no scrolling
  • if text does not fit into display: ignore centering, start scrolling

Difference to now is that text that fits will be centered, not adjusted left.

I have some ideas how to do this, but this requires redesign of all the DrawText... functions.

miccgn avatar Dec 10 '21 09:12 miccgn

Yes, it would have to completely rebuild DrawText. But I couldn't motivate myself to do it yet. I had started it once before, but discarded it due to lack of time.

o0shojo0o avatar Dec 15 '21 07:12 o0shojo0o

+1 on this one from me too. Having a bitmap and animation, would be nice to have text start centered, then scroll while keeping bitmap. Thanks!

poblabs avatar Jan 13 '22 02:01 poblabs

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 04 '23 15:09 github-actions[bot]

Still would be an useful extension

miccgn avatar Sep 05 '23 20:09 miccgn

@miccgn please test the latest beta: https://github.com/pixelit-project/PixelIt/releases/tag/2.3.2-beta

foorschtbar avatar Sep 11 '23 22:09 foorschtbar

Implemented in latest (2.3.2) release

foorschtbar avatar Sep 23 '23 13:09 foorschtbar

Thanks! Sorry, didn't find time to test it yet 😕😕

miccgn avatar Sep 23 '23 14:09 miccgn