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

Modify the appearance for option and checkbox! #653

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Modify the appearance for option and checkbox! #653

wants to merge 1 commit into from

Conversation

zhouxs1023
Copy link

@zhouxs1023 zhouxs1023 commented Mar 28, 2018

Signed-off-by: zhouxs1023 zhouxs1023@163.com
Modify the appearance for option and checkbox!
360-165801015710149
checkbox

Signed-off-by: zhouxs1023 <zhouxs1023@163.com>
@@ -15838,13 +15838,12 @@ nk_draw_checkbox(struct nk_command_buffer *out,

/* draw background and cursor */
if (background->type == NK_STYLE_ITEM_COLOR) {
nk_fill_rect(out, *selector, 0, style->border_color);
nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color);
nk_stroke_rect(out, *selector, 2, 2, background->data.color);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a total nitpicking, but this indentation is not correct 😉.

Copy link
Author

@zhouxs1023 zhouxs1023 Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have looked at the codes ,It are correct! I had updated pics!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The picture is totally fine. It's just, that this line is indented with tabs, but shall be indented with spaces. Otherwise I think this commit can get merged.

@@ -15838,13 +15838,12 @@ nk_draw_checkbox(struct nk_command_buffer *out,

/* draw background and cursor */
if (background->type == NK_STYLE_ITEM_COLOR) {
nk_fill_rect(out, *selector, 0, style->border_color);
nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color);
nk_stroke_rect(out, *selector, 2, 2, background->data.color);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The picture is totally fine. It's just, that this line is indented with tabs, but shall be indented with spaces. Otherwise I think this commit can get merged.

@dumblob
Copy link
Contributor

dumblob commented Mar 30, 2018

@zhouxs1023 could you change all the pictures in the main README.md file which show the radio buttons and are not using bitmap styling?

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.

2 participants