Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

button honor text alignment #884

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

button honor text alignment #884

wants to merge 3 commits into from

Conversation

an146
Copy link

@an146 an146 commented Aug 15, 2019

Button with image had hardcoded NK_TEXT_CENTERED

@dumblob
Copy link
Contributor

dumblob commented Aug 15, 2019

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 😉.

Btw. if you're interested in more about alignment in Nuklear in general, refer to #844 (though this your pull is not directly related and I'll merge it after it becomes clean).

@an146
Copy link
Author

an146 commented Aug 15, 2019

fixed prototype

@dumblob
Copy link
Contributor

dumblob commented Aug 15, 2019

Good. Please also bump the Nuklear version 😉.

@an146
Copy link
Author

an146 commented Aug 15, 2019

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

@dumblob
Copy link
Contributor

dumblob commented Aug 15, 2019

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 😉
b) if changes relate to anything else than nuklear.h, just make a straightforward pull

@an146
Copy link
Author

an146 commented Aug 15, 2019

done

@diggit
Copy link
Contributor

diggit commented Aug 31, 2019

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...

@dumblob
Copy link
Contributor

dumblob commented Aug 31, 2019

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.

@diggit
Copy link
Contributor

diggit commented Oct 22, 2019

Any progress/decisions here?

@dumblob
Copy link
Contributor

dumblob commented Oct 23, 2019

Please see #913 (comment) .

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

Successfully merging this pull request may close these issues.

None yet

3 participants