Reset style.

This commit is contained in:
Bartosz Taudul 2021-11-18 22:47:58 +01:00
parent 40b9fe7dae
commit 2243b6e293
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -182,8 +182,9 @@ static void SetupDPIScale( float scale, ImFont*& fixedWidth, ImFont*& bigFont, I
{
LoadFonts( scale, fixedWidth, bigFont, smallFont );
ImGui::StyleColorsDark();
auto& style = ImGui::GetStyle();
style = ImGuiStyle();
ImGui::StyleColorsDark();
style.WindowBorderSize = 1.f * scale;
style.FrameBorderSize = 1.f * scale;
style.FrameRounding = 5.f;