corrected combobox text background color

The selected item text of text combo boxes used the window color
as background instead of the combo box own background color.
This commit is contained in:
vurtun 2016-01-25 23:10:56 +01:00
parent 1365fb59ef
commit 168c45e72c

View File

@ -10426,7 +10426,7 @@ zr_combo_begin_text(struct zr_context *ctx, struct zr_layout *layout,
label.w = header.w - (header.h + 2 * item_padding.x);
label.h = header.h - 2 * item_padding.y;
zr_draw_text(&win->buffer, label, selected, text_len, &ctx->style.font,
ctx->style.colors[ZR_COLOR_WINDOW], ctx->style.colors[ZR_COLOR_TEXT]);
ctx->style.colors[ZR_COLOR_COMBO], ctx->style.colors[ZR_COLOR_TEXT]);
/* draw open/close symbol */
bounds.y = label.y + label.h/2 - ctx->style.font.height/2;