mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 20:45:34 +00:00
FullscreenUI: Apply theme to loading screen
This commit is contained in:
parent
f11c31b41c
commit
6c867859bf
@ -3121,6 +3121,10 @@ void ImGuiFullscreen::DrawLoadingScreen(std::string_view image, std::string_view
|
|||||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, padding_and_rounding);
|
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, padding_and_rounding);
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(padding_and_rounding, padding_and_rounding));
|
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(padding_and_rounding, padding_and_rounding));
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, frame_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::PushFont(ImGuiManager::GetOSDFont());
|
||||||
ImGui::SetNextWindowSize(ImVec2(width, ((has_progress || is_persistent) ? 85.0f : 55.0f) * scale), ImGuiCond_Always);
|
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)),
|
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::End();
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
ImGui::PopStyleColor(4);
|
||||||
ImGui::PopStyleVar(3);
|
ImGui::PopStyleVar(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user