From b6990d92bfca5b584d50c9e7c1ff562b685f7e5f Mon Sep 17 00:00:00 2001 From: Jerom Venneker Date: Mon, 2 Jun 2025 19:17:13 +0200 Subject: [PATCH] Added Rounded corners to text entry field --- soh/soh/Network/Archipelago/ArchipelagoConsoleWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/soh/soh/Network/Archipelago/ArchipelagoConsoleWindow.cpp b/soh/soh/Network/Archipelago/ArchipelagoConsoleWindow.cpp index d8cad457d..021495e53 100644 --- a/soh/soh/Network/Archipelago/ArchipelagoConsoleWindow.cpp +++ b/soh/soh/Network/Archipelago/ArchipelagoConsoleWindow.cpp @@ -64,8 +64,7 @@ void ArchipelagoConsoleWindow::DrawElement() { } } ImGui::EndChild(); - ImGui::PopStyleColor(); - ImGui::PopStyleVar(3); + ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 8.0f); static char textEntryBuf[1024]; static bool keepFocus = false; @@ -86,6 +85,10 @@ void ArchipelagoConsoleWindow::DrawElement() { textEntryBuf[0] = '\0'; keepFocus = true; } + + + ImGui::PopStyleColor(); + ImGui::PopStyleVar(4); }; ImVec4 getColorVal(const std::string& color) { // TODO change color strings to an enum