mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-24 17:50:51 +00:00
Improve code block style.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user