From 12ee2353807a8a63017cda586072d4246a1858d7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 29 Sep 2022 20:46:50 +0200 Subject: [PATCH] fix: Hardcoded colors used in ASCII table Fixes #757 --- plugins/builtin/source/content/tools_entries.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/builtin/source/content/tools_entries.cpp b/plugins/builtin/source/content/tools_entries.cpp index 532c52904..8ec699432 100644 --- a/plugins/builtin/source/content/tools_entries.cpp +++ b/plugins/builtin/source/content/tools_entries.cpp @@ -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++; }