From 359e08b0a860974fe8514c7c5f9603891926e7ff Mon Sep 17 00:00:00 2001 From: martinfouilleul Date: Thu, 9 Mar 2023 18:09:04 +0100 Subject: [PATCH] [ui] set text box cursor to the same color as text --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.c b/src/ui.c index b07a68b..621b0fd 100644 --- a/src/ui.c +++ b/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 caretY = textTop; - mg_set_color_rgba(0, 0, 0, 1); - mg_rectangle_fill(caretX, caretY, 2, lineHeight); + mg_set_color(style->color); + mg_rectangle_fill(caretX, caretY, 1, lineHeight); } mg_set_font(style->font); mg_set_font_size(style->fontSize);