From 6c867859bf5d8f4d3bd40f7331408f5009e34a2f Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 14 Mar 2025 23:07:14 +1000 Subject: [PATCH] FullscreenUI: Apply theme to loading screen --- src/util/imgui_fullscreen.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/imgui_fullscreen.cpp b/src/util/imgui_fullscreen.cpp index 1112b5879..a60402b86 100644 --- a/src/util/imgui_fullscreen.cpp +++ b/src/util/imgui_fullscreen.cpp @@ -3121,6 +3121,10 @@ void ImGuiFullscreen::DrawLoadingScreen(std::string_view image, std::string_view ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, padding_and_rounding); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(padding_and_rounding, padding_and_rounding)); ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, frame_rounding); + ImGui::PushStyleColor(ImGuiCol_WindowBg, DarkerColor(UIStyle.PopupBackgroundColor)); + ImGui::PushStyleColor(ImGuiCol_Text, UIStyle.BackgroundTextColor); + ImGui::PushStyleColor(ImGuiCol_FrameBg, UIStyle.BackgroundColor); + ImGui::PushStyleColor(ImGuiCol_PlotHistogram, UIStyle.SecondaryColor); ImGui::PushFont(ImGuiManager::GetOSDFont()); ImGui::SetNextWindowSize(ImVec2(width, ((has_progress || is_persistent) ? 85.0f : 55.0f) * scale), ImGuiCond_Always); ImGui::SetNextWindowPos(ImVec2(io.DisplaySize.x * 0.5f, (io.DisplaySize.y * 0.5f) + (100.0f * scale)), @@ -3165,6 +3169,7 @@ void ImGuiFullscreen::DrawLoadingScreen(std::string_view image, std::string_view } ImGui::End(); ImGui::PopFont(); + ImGui::PopStyleColor(4); ImGui::PopStyleVar(3); }