From dd17ed8df572f6abf0a7579359fc64144d1a3925 Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:27:06 -0600 Subject: [PATCH] Update LoggerWindow.cpp --- src/Windows/LoggerWindow.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Windows/LoggerWindow.cpp b/src/Windows/LoggerWindow.cpp index 393f3fb..01e0ee0 100644 --- a/src/Windows/LoggerWindow.cpp +++ b/src/Windows/LoggerWindow.cpp @@ -132,13 +132,6 @@ void LoggerWindow::Show() ImGui::BeginChild("LoggerScrollRegion", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); - // Optional: tweak cell-padding or other style before beginning the table - // ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, ImVec2(4.0f, 4.0f)); - - // Begin the table with 2 columns - // - RowBg flag for striped rows - // - Borders for a neat grid - // - SizingFixedFit or SizingStretch can be chosen per preference if (ImGui::BeginTable("LogTable", 2, ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Borders | @@ -149,10 +142,7 @@ void LoggerWindow::Show() ImGui::TableSetupColumn("Icon", ImGuiTableColumnFlags_WidthFixed, 30.0f); ImGui::TableSetupColumn("Message", ImGuiTableColumnFlags_WidthStretch); - // If you want a header row (not strictly needed for a log) - // ImGui::TableHeadersRow(); - - // Loop over your log entries + // Loop over log entries for (const auto &logEntry : m_Logs) { ImVec4 color = logEntry.color.value_or(GetDefaultColorForLevel(logEntry.level));