From 893e8f8c0147d06c019a2d6748999b85041c35aa Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Wed, 18 Jun 2025 22:44:52 +0800 Subject: [PATCH 1/4] change cursor color to color of wood texture in UI --- src/gui/components/TextInput.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/TextInput.zig b/src/gui/components/TextInput.zig index 3c1da3cf..23c6d1a7 100644 --- a/src/gui/components/TextInput.zig +++ b/src/gui/components/TextInput.zig @@ -514,7 +514,7 @@ pub fn render(self: *TextInput, mousePosition: Vec2f) void { draw.setColor(0x440000ff); self.textBuffer.drawSelection(textPos, @min(selectionStart, cursor), @max(selectionStart, cursor)); } - draw.setColor(0xff000000); - draw.line(cursorPos, cursorPos + Vec2f{0, 16}); + draw.setColor(0xffe0ad6a); + draw.line(cursorPos, cursorPos + Vec2f{0, fontSize}); } } From 966c7982bc50d53466e6f144045aa3645b50c423 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Wed, 18 Jun 2025 22:59:19 +0800 Subject: [PATCH 2/4] a wider version of cursor --- src/gui/components/TextInput.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/TextInput.zig b/src/gui/components/TextInput.zig index 23c6d1a7..fde40677 100644 --- a/src/gui/components/TextInput.zig +++ b/src/gui/components/TextInput.zig @@ -515,6 +515,6 @@ pub fn render(self: *TextInput, mousePosition: Vec2f) void { self.textBuffer.drawSelection(textPos, @min(selectionStart, cursor), @max(selectionStart, cursor)); } draw.setColor(0xffe0ad6a); - draw.line(cursorPos, cursorPos + Vec2f{0, fontSize}); + draw.rect(cursorPos, Vec2f{1, fontSize}); } } From c517871d59de66f4216571c356f8515d85a76c77 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Mon, 30 Jun 2025 22:42:31 +0800 Subject: [PATCH 3/4] change cursor color to light grey --- src/gui/components/TextInput.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/TextInput.zig b/src/gui/components/TextInput.zig index fde40677..408c515d 100644 --- a/src/gui/components/TextInput.zig +++ b/src/gui/components/TextInput.zig @@ -514,7 +514,7 @@ pub fn render(self: *TextInput, mousePosition: Vec2f) void { draw.setColor(0x440000ff); self.textBuffer.drawSelection(textPos, @min(selectionStart, cursor), @max(selectionStart, cursor)); } - draw.setColor(0xffe0ad6a); + draw.setColor(0xff747474); draw.rect(cursorPos, Vec2f{1, fontSize}); } } From cbb487744d3731310466868848a0917aee14c20a Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Wed, 2 Jul 2025 16:18:59 +0800 Subject: [PATCH 4/4] change cursor color to lighter grey --- src/gui/components/TextInput.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/TextInput.zig b/src/gui/components/TextInput.zig index 408c515d..ec055b95 100644 --- a/src/gui/components/TextInput.zig +++ b/src/gui/components/TextInput.zig @@ -514,7 +514,7 @@ pub fn render(self: *TextInput, mousePosition: Vec2f) void { draw.setColor(0x440000ff); self.textBuffer.drawSelection(textPos, @min(selectionStart, cursor), @max(selectionStart, cursor)); } - draw.setColor(0xff747474); + draw.setColor(0xffaaaaaa); draw.rect(cursorPos, Vec2f{1, fontSize}); } }