[ui] set text box cursor to the same color as text

This commit is contained in:
martinfouilleul 2023-03-09 18:09:04 +01:00
parent cae8666561
commit 359e08b0a8
1 changed files with 2 additions and 2 deletions

View File

@ -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);