Better way to scale ImGui style.

This commit is contained in:
Bartosz Taudul 2019-09-21 00:52:13 +02:00
parent d8e0853cd8
commit feddd58b46

View File

@ -245,9 +245,9 @@ int main( int argc, char** argv )
auto& style = ImGui::GetStyle();
style.WindowBorderSize = 1.f * dpiScale;
style.FrameBorderSize = 1.f * dpiScale;
style.FrameRounding = 5.f * dpiScale;
style.ScrollbarSize *= dpiScale;
style.FrameRounding = 5.f;
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( 1, 1, 1, 0.03f );
style.ScaleAllSizes( dpiScale );
ImVec4 clear_color = ImColor(114, 144, 154);