nuklear icon indicating copy to clipboard operation
nuklear copied to clipboard

button honor text alignment

Open an146 opened this issue 6 years ago • 10 comments

Button with image had hardcoded NK_TEXT_CENTERED

an146 avatar Aug 15 '19 11:08 an146

Hi @an146, thanks for your contribution. Could you also change the function signature on other places in the library (especially declaration)? Don't forget to bump version accordingly afterwards :wink:.

Btw. if you're interested in more about alignment in Nuklear in general, refer to https://github.com/vurtun/nuklear/issues/844 (though this your pull is not directly related and I'll merge it after it becomes clean).

dumblob avatar Aug 15 '19 11:08 dumblob

fixed prototype

an146 avatar Aug 15 '19 12:08 an146

Good. Please also bump the Nuklear version :wink:.

dumblob avatar Aug 15 '19 13:08 dumblob

bumped in package.json, haven't found anywhere else

an146 avatar Aug 15 '19 14:08 an146

It's just in the changelog. Yeah, could be more visible - feel free to add a paragraph to the main README with contribution instructions along the lines:

a) if changes go to nuklear.h: a.1) make changes in src/... a.2) bump version in src/CHANGELOG and package.json a.3) run src/paq.sh or click in src/Readme.md on Click to generate nuklear.h a.4) make a pull request :wink: b) if changes relate to anything else than nuklear.h, just make a straightforward pull

dumblob avatar Aug 15 '19 14:08 dumblob

done

an146 avatar Aug 15 '19 15:08 an146

functions: nk_draw_symbol and nk_draw_button_text_symbol have text centering hardcoded too. Why not change these too?

Also, how strict is nuklear about preserving API? Eg.function suffix _textalign would add new functions and old one would remain same just calling this one. This way, API would remain compatible...

diggit avatar Aug 31 '19 08:08 diggit

nk_draw_symbol is too fine grained IMHO to make it configurable

nk_draw_button_text_symbol could be changed - feel free to make a pull request

Also, how strict is nuklear about preserving API?

Not strict at all when it comes to progress. But we're strict in versioning - API breakage means major version bump.

dumblob avatar Aug 31 '19 09:08 dumblob

Any progress/decisions here?

diggit avatar Oct 22 '19 21:10 diggit

Please see https://github.com/vurtun/nuklear/pull/913#issuecomment-544426947 .

dumblob avatar Oct 23 '19 13:10 dumblob