From c48acecd7cab6d56da1d03dcf5c1a6d759d8cd71 Mon Sep 17 00:00:00 2001 From: Nick Koirala Date: Fri, 21 Nov 2025 11:16:14 +1300 Subject: [PATCH] feat: add some more theme elements --- imgui.ini | 4 ++-- src/gui/GuiManager.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/imgui.ini b/imgui.ini index d23f659..bcf75aa 100644 --- a/imgui.ini +++ b/imgui.ini @@ -31,8 +31,8 @@ Size=212,57 Collapsed=0 [Window][##TOAST2] -Pos=1062,509 -Size=198,57 +Pos=1048,509 +Size=212,57 Collapsed=0 [Window][##TOAST3] diff --git a/src/gui/GuiManager.cpp b/src/gui/GuiManager.cpp index c2788db..da7152d 100644 --- a/src/gui/GuiManager.cpp +++ b/src/gui/GuiManager.cpp @@ -80,7 +80,8 @@ void GuiManager::SetupDockspace(RenderTexture2D &renderTexture) { if (ImGui::BeginMenu("Game")) { - if (ImGui::MenuItem("Quit", "Ctrl + Q")) { + if (ImGui::MenuItem("Quit", "Ctrl + Q")) + { // Handle quit here app->RequestShutdown(); } @@ -141,7 +142,6 @@ void GuiManager::RenderNotifications() ImGui::PopStyleVar(2); ImGui::PopStyleColor(1); } - void GuiManager::SetTheme() { @@ -184,8 +184,8 @@ void GuiManager::SetTheme() colors[ImGuiCol_TabActive] = ImVec4(0.20f, 0.20f, 0.20f, 0.36f); colors[ImGuiCol_TabUnfocused] = ImVec4(0.00f, 0.00f, 0.00f, 0.52f); colors[ImGuiCol_TabUnfocusedActive] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); - // colors[ImGuiCol_DockingPreview] = ImVec4(0.33f, 0.67f, 0.86f, 1.00f); - // colors[ImGuiCol_DockingEmptyBg] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f); + colors[ImGuiCol_DockingPreview] = ImVec4(0.33f, 0.67f, 0.86f, 1.00f); + colors[ImGuiCol_DockingEmptyBg] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f); colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f); colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f); colors[ImGuiCol_PlotHistogram] = ImVec4(1.00f, 0.00f, 0.00f, 1.00f);