Scale cosmetic UI elements with DPI.

This commit is contained in:
Bartosz Taudul 2018-08-17 19:06:14 +02:00
parent 0de3e088d9
commit 8eee82b0ce

View File

@ -128,9 +128,9 @@ int main( int argc, char** argv )
ImGui::StyleColorsDark();
auto& style = ImGui::GetStyle();
style.WindowBorderSize = 1.f;
style.FrameBorderSize = 1.f;
style.FrameRounding = 5.f;
style.WindowBorderSize = 1.f * dpiScale;
style.FrameBorderSize = 1.f * dpiScale;
style.FrameRounding = 5.f * dpiScale;
style.Colors[ImGuiCol_WindowBg] = ImVec4( 0.11f, 0.11f, 0.08f, 0.94f );
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( 1, 1, 1, 0.03f );