FullscreenUI: Redesign settings window

This commit is contained in:
Connor McLaughlin
2021-06-30 19:12:56 +10:00
parent 7967b940d6
commit 435865b45d
4 changed files with 199 additions and 23 deletions

View File

@ -540,6 +540,7 @@ bool CommonHostInterface::CreateHostDisplayResources()
ImGui::GetIO().DisplaySize.x = static_cast<float>(m_display->GetWindowWidth());
ImGui::GetIO().DisplaySize.y = static_cast<float>(m_display->GetWindowHeight());
ImGui::GetStyle() = ImGuiStyle();
ImGui::GetStyle().WindowMinSize = ImVec2(1.0f, 1.0f);
ImGui::StyleColorsDarker();
ImGui::GetStyle().ScaleAllSizes(framebuffer_scale);
@ -603,6 +604,7 @@ void CommonHostInterface::OnHostDisplayResized()
{
ImGui::GetIO().DisplayFramebufferScale = ImVec2(new_scale, new_scale);
ImGui::GetStyle() = ImGuiStyle();
ImGui::GetStyle().WindowMinSize = ImVec2(1.0f, 1.0f);
ImGui::StyleColorsDarker();
ImGui::GetStyle().ScaleAllSizes(new_scale);
ImGuiFullscreen::ResetFonts();