mirror of
https://github.com/Immediate-Mode-UI/Nuklear.git
synced 2026-11-30 16:48:10 +01:00
Removed color factoring for item colored selectables
This commit is contained in:
@@ -25062,7 +25062,7 @@ nk_draw_selectable(struct nk_command_buffer *out,
|
||||
break;
|
||||
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_fill_rect(out, *bounds, style->rounding, background->data.color);
|
||||
break;
|
||||
}
|
||||
if (icon) {
|
||||
|
||||
@@ -56,7 +56,7 @@ nk_draw_selectable(struct nk_command_buffer *out,
|
||||
break;
|
||||
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_fill_rect(out, *bounds, style->rounding, background->data.color);
|
||||
break;
|
||||
}
|
||||
if (icon) {
|
||||
|
||||
Reference in New Issue
Block a user