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:
bicarus
2026-06-14 12:29:32 -07:00
committed by GitHub
parent 4879a35eb8
commit 698f2ffc2c
3 changed files with 25 additions and 0 deletions
@@ -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
}
}