mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 23:00:42 -07:00
overlay: add vertical row padding (#757)
Slightly decrease information density by adding a couple pixels of vertical padding to each table row in the configurator.
This commit is contained in:
@@ -647,6 +647,8 @@ namespace overlay::windows {
|
||||
}
|
||||
} else {
|
||||
// draw patches
|
||||
ImGui::PushStyleVarY(ImGuiStyleVar_CellPadding,
|
||||
ImGui::GetStyle().CellPadding.y + overlay::apply_scaling(2));
|
||||
if (ImGui::BeginTable("PatchesTable", 2, ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg)) {
|
||||
ImGui::TableSetupColumn("##NameColumn", ImGuiTableColumnFlags_WidthStretch);
|
||||
ImGui::TableSetupColumn("##OptionsColumn", ImGuiTableColumnFlags_WidthFixed, 240);
|
||||
@@ -875,6 +877,7 @@ namespace overlay::windows {
|
||||
|
||||
ImGui::EndTable();
|
||||
}
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_CellPadding
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user