fix: Hardcoded colors used in ASCII table

Fixes #757
This commit is contained in:
WerWolv
2022-09-29 20:46:50 +02:00
parent e30ed35d69
commit 12ee235380

View File

@@ -77,7 +77,7 @@ namespace hex::plugin::builtin {
u32 rowCount = 0;
for (u8 i = 0; i < 0x80 / 4; i++) {
ImGui::TableNextRow(ImGuiTableRowFlags_Headers);
ImGui::TableNextRow();
ImGui::TableNextColumn();
ImGui::TextFormatted("{0:03d}", i + 32 * tablePart);
@@ -93,8 +93,6 @@ namespace hex::plugin::builtin {
ImGui::TableNextColumn();
ImGui::TextFormatted("{0}", hex::makePrintable(i + 32 * tablePart));
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, ((rowCount % 2) == 0) ? 0xFF101010 : 0xFF303030);
rowCount++;
}