Skip to content

Commit 6c86785

Browse files
committed
FullscreenUI: Apply theme to loading screen
1 parent f11c31b commit 6c86785

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/util/imgui_fullscreen.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,6 +3121,10 @@ void ImGuiFullscreen::DrawLoadingScreen(std::string_view image, std::string_view
31213121
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, padding_and_rounding);
31223122
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(padding_and_rounding, padding_and_rounding));
31233123
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, frame_rounding);
3124+
ImGui::PushStyleColor(ImGuiCol_WindowBg, DarkerColor(UIStyle.PopupBackgroundColor));
3125+
ImGui::PushStyleColor(ImGuiCol_Text, UIStyle.BackgroundTextColor);
3126+
ImGui::PushStyleColor(ImGuiCol_FrameBg, UIStyle.BackgroundColor);
3127+
ImGui::PushStyleColor(ImGuiCol_PlotHistogram, UIStyle.SecondaryColor);
31243128
ImGui::PushFont(ImGuiManager::GetOSDFont());
31253129
ImGui::SetNextWindowSize(ImVec2(width, ((has_progress || is_persistent) ? 85.0f : 55.0f) * scale), ImGuiCond_Always);
31263130
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
31653169
}
31663170
ImGui::End();
31673171
ImGui::PopFont();
3172+
ImGui::PopStyleColor(4);
31683173
ImGui::PopStyleVar(3);
31693174
}
31703175

0 commit comments

Comments
 (0)