mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Better way to scale ImGui style.
This commit is contained in:
parent
d8e0853cd8
commit
feddd58b46
@ -245,9 +245,9 @@ int main( int argc, char** argv )
|
|||||||
auto& style = ImGui::GetStyle();
|
auto& style = ImGui::GetStyle();
|
||||||
style.WindowBorderSize = 1.f * dpiScale;
|
style.WindowBorderSize = 1.f * dpiScale;
|
||||||
style.FrameBorderSize = 1.f * dpiScale;
|
style.FrameBorderSize = 1.f * dpiScale;
|
||||||
style.FrameRounding = 5.f * dpiScale;
|
style.FrameRounding = 5.f;
|
||||||
style.ScrollbarSize *= dpiScale;
|
|
||||||
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( 1, 1, 1, 0.03f );
|
style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( 1, 1, 1, 0.03f );
|
||||||
|
style.ScaleAllSizes( dpiScale );
|
||||||
|
|
||||||
ImVec4 clear_color = ImColor(114, 144, 154);
|
ImVec4 clear_color = ImColor(114, 144, 154);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user