fix(commits): add subtle alternating row backgrounds

This commit is contained in:
2026-06-18 23:43:30 -05:00
parent 6214c97b28
commit 5a2cffc177

View File

@@ -1394,6 +1394,7 @@ void draw_commit_table() {
};
if (!repo().working_files.empty()) {
ImGui::TableNextRow(0, ui(24.0f));
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, IM_COL32(34, 37, 44, 42));
ImGui::TableSetColumnIndex(0);
bool pending_hovered = false;
if (graph_row_interaction("##working_tree", repo().selected_commit == -1,
@@ -1474,6 +1475,8 @@ void draw_commit_table() {
if (!commit_visible(commit)) continue;
const float row_height = row_heights[static_cast<size_t>(i)];
ImGui::TableNextRow(0, row_height);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0,
(i & 1) == 0 ? IM_COL32(35, 38, 45, 34) : IM_COL32(32, 35, 41, 18));
ImGui::TableSetColumnIndex(0);
if (repo().scroll_to_commit == i) {
ImGui::SetScrollFromPosY(ImGui::GetCursorScreenPos().y, 0.5f);