From 00bc533d4d5d595a367283971a2f76358179f551 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 12 Jul 2025 20:08:26 +0200 Subject: [PATCH] Improve code block style. --- profiler/src/profiler/TracyLlmMarkdown.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyLlmMarkdown.hpp b/profiler/src/profiler/TracyLlmMarkdown.hpp index c2ea73fe..b3cb1d70 100644 --- a/profiler/src/profiler/TracyLlmMarkdown.hpp +++ b/profiler/src/profiler/TracyLlmMarkdown.hpp @@ -82,6 +82,7 @@ public: char tmp[64]; sprintf( tmp, "##code%d", idx++ ); Separate(); + ImGui::PushStyleColor( ImGuiCol_FrameBg, ImVec4( 0, 0, 0, 0.2f ) ); ImGui::BeginChild( tmp, ImVec2( 0, 0 ), ImGuiChildFlags_FrameStyle | ImGuiChildFlags_Borders | ImGuiChildFlags_AutoResizeY ); codeBlock = true; } @@ -124,6 +125,7 @@ public: break; case MD_BLOCK_CODE: ImGui::EndChild(); + ImGui::PopStyleColor(); separate = true; codeBlock = false; break;