MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / PushStyleCompact

Function PushStyleCompact

core/src/imgui/imgui_demo.cpp:3443–3448  ·  view source on GitHub ↗

Make the UI compact because there are so many fields

Source from the content-addressed store, hash-verified

3441
3442// Make the UI compact because there are so many fields
3443static void PushStyleCompact()
3444{
3445 ImGuiStyle& style = ImGui::GetStyle();
3446 ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f)));
3447 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f)));
3448}
3449
3450static void PopStyleCompact()
3451{

Callers 1

ShowDemoWindowTablesFunction · 0.85

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected