From 63e0acbe9cab03aae16c01281ce260167f878251 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 19 Jul 2025 17:19:28 +1000 Subject: [PATCH] FullscreenUI: Fix held colour in popup menus --- src/util/imgui_fullscreen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/imgui_fullscreen.cpp b/src/util/imgui_fullscreen.cpp index c7b59ab84..40fb2a0f3 100644 --- a/src/util/imgui_fullscreen.cpp +++ b/src/util/imgui_fullscreen.cpp @@ -2882,6 +2882,7 @@ bool ImGuiFullscreen::PopupDialog::BeginRender(float scaled_window_padding /* = LayoutScale(LAYOUT_MENU_BUTTON_X_PADDING, LAYOUT_MENU_BUTTON_Y_PADDING)); ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 0.0f); ImGui::PushStyleColor(ImGuiCol_PopupBg, ModAlpha(UIStyle.PopupBackgroundColor, 1.0f)); + ImGui::PushStyleColor(ImGuiCol_ButtonActive, ModAlpha(DarkerColor(UIStyle.PopupBackgroundColor), 1.0f)); ImGui::PushStyleColor(ImGuiCol_FrameBg, UIStyle.PopupFrameBackgroundColor); ImGui::PushStyleColor(ImGuiCol_TitleBg, UIStyle.PrimaryDarkColor); ImGui::PushStyleColor(ImGuiCol_TitleBgActive, UIStyle.PrimaryColor); @@ -2915,7 +2916,7 @@ bool ImGuiFullscreen::PopupDialog::BeginRender(float scaled_window_padding /* = ImGui::EndPopup(); } - ImGui::PopStyleColor(5); + ImGui::PopStyleColor(6); ImGui::PopStyleVar(6); ImGui::PopFont(); QueueResetFocus(FocusResetType::PopupClosed); @@ -2937,7 +2938,7 @@ bool ImGuiFullscreen::PopupDialog::BeginRender(float scaled_window_padding /* = void ImGuiFullscreen::PopupDialog::EndRender() { ImGui::EndPopup(); - ImGui::PopStyleColor(5); + ImGui::PopStyleColor(6); ImGui::PopStyleVar(6); ImGui::PopFont(); }