Skip to content

Commit 369d038

Browse files
authored
Merge pull request #755 from Grisshink/property-border-fix
2 parents 5dd782c + d0ecf21 commit 369d038

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuklear",
3-
"version": "4.12.2",
3+
"version": "4.12.3",
44
"repo": "Immediate-Mode-UI/Nuklear",
55
"description": "A small ANSI C gui toolkit",
66
"keywords": ["gl", "ui", "toolkit"],

nuklear.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28737,7 +28737,7 @@ nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *
2873728737
case NK_STYLE_ITEM_COLOR:
2873828738
text.background = background->data.color;
2873928739
nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor));
28740-
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(background->data.color, style->color_factor));
28740+
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
2874128741
break;
2874228742
}
2874328743

@@ -30698,6 +30698,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
3069830698
/// - [y]: Minor version with non-breaking API and library changes
3069930699
/// - [z]: Patch version with no direct changes to the API
3070030700
///
30701+
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
3070130702
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
3070230703
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20
3070330704
/// - 2023/11/26 (4.12.0) - Added an alignment option to checkboxes and radio buttons.

src/CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/// - [y]: Minor version with non-breaking API and library changes
88
/// - [z]: Patch version with no direct changes to the API
99
///
10+
/// - 2024/12/11 (4.12.3) - Fix border color for property widgets
1011
/// - 2024/11/20 (4.12.2) - Fix int/float type conversion warnings in `nk_roundf`
1112
/// - 2024/03/07 (4.12.1) - Fix bitwise operations warnings in C++20
1213
/// - 2023/11/26 (4.12.0) - Added an alignment option to checkboxes and radio buttons.

src/nuklear_property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *
100100
case NK_STYLE_ITEM_COLOR:
101101
text.background = background->data.color;
102102
nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor));
103-
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(background->data.color, style->color_factor));
103+
nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor));
104104
break;
105105
}
106106

0 commit comments

Comments
 (0)