[ui] set text box cursor to the same color as text
This commit is contained in:
parent
cae8666561
commit
359e08b0a8
4
src/ui.c
4
src/ui.c
|
@ -2321,8 +2321,8 @@ void ui_text_box_render(ui_box* box, void* data)
|
||||||
{
|
{
|
||||||
f32 caretX = box->rect.x + textMargin - beforeBox.w + beforeSelectBox.w;
|
f32 caretX = box->rect.x + textMargin - beforeBox.w + beforeSelectBox.w;
|
||||||
f32 caretY = textTop;
|
f32 caretY = textTop;
|
||||||
mg_set_color_rgba(0, 0, 0, 1);
|
mg_set_color(style->color);
|
||||||
mg_rectangle_fill(caretX, caretY, 2, lineHeight);
|
mg_rectangle_fill(caretX, caretY, 1, lineHeight);
|
||||||
}
|
}
|
||||||
mg_set_font(style->font);
|
mg_set_font(style->font);
|
||||||
mg_set_font_size(style->fontSize);
|
mg_set_font_size(style->fontSize);
|
||||||
|
|
Loading…
Reference in New Issue