From b40ef0ff297c725fda471c65d3856a026b86c854 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 1 Jul 2026 01:26:26 +0200 Subject: [PATCH] Draw timeline thread label after message markers to make it readable. --- profiler/src/profiler/TracyTimelineItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyTimelineItem.cpp b/profiler/src/profiler/TracyTimelineItem.cpp index 5a3f76f6..b2351dfb 100644 --- a/profiler/src/profiler/TracyTimelineItem.cpp +++ b/profiler/src/profiler/TracyTimelineItem.cpp @@ -83,12 +83,12 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse } const auto label = HeaderLabel(); labelWidth = ImGui::CalcTextSize( label ).x; - DrawTextContrast( draw, wpos + ImVec2( ty, hdrOffset ), m_showFull ? color : colorInactive, label ); if( m_showFull ) { DrawLine( draw, dpos + ImVec2( 0, hdrOffset + ty - 1 ), dpos + ImVec2( w, hdrOffset + ty - 1 ), HeaderLineColor() ); HeaderExtraContents( ctx, hdrOffset, labelWidth ); } + DrawTextContrast( draw, wpos + ImVec2( ty, hdrOffset ), m_showFull ? color : colorInactive, label ); if( ctx.hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, hdrOffset ), wpos + ImVec2( ty + labelWidth, hdrOffset + ty ) ) ) {