Skip to content

Commit

Permalink
Fix property border color
Browse files Browse the repository at this point in the history
  • Loading branch information
Grisshink committed Dec 7, 2024
1 parent 2d3a10b commit 9e0ae9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -28737,7 +28737,7 @@ nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *
case NK_STYLE_ITEM_COLOR:
text.background = background->data.color;
nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor));
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(background->data.color, style->color_factor));
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/nuklear_property.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *
case NK_STYLE_ITEM_COLOR:
text.background = background->data.color;
nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor));
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(background->data.color, style->color_factor));
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
break;
}

Expand Down

0 comments on commit 9e0ae9f

Please sign in to comment.