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

button honor text alignment - #884

Open
an146 wants to merge 3 commits into
vurtun:masterfrom
an146:master
Open

button honor text alignment#884
an146 wants to merge 3 commits into
vurtun:masterfrom
an146:master

Conversation

@an146

@an146 an146 commented Aug 15, 2019

Copy link
Copy Markdown

Button with image had hardcoded NK_TEXT_CENTERED

@dumblob

dumblob commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

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

an146 commented Aug 15, 2019

Copy link
Copy Markdown
Author

fixed prototype

@dumblob

dumblob commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

Good. Please also bump the Nuklear version 😉.

@an146

an146 commented Aug 15, 2019

Copy link
Copy Markdown
Author

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

@dumblob

dumblob commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

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

an146 commented Aug 15, 2019

Copy link
Copy Markdown
Author

done

@diggit

diggit commented Aug 31, 2019

Copy link
Copy Markdown
Contributor

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

dumblob commented Aug 31, 2019

Copy link
Copy Markdown
Contributor

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

diggit commented Oct 22, 2019

Copy link
Copy Markdown
Contributor

Any progress/decisions here?

@dumblob

dumblob commented Oct 23, 2019

Copy link
Copy Markdown
Contributor

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.

3 participants