From 450fbf5ea0485ffe6b8d9d1437b031ab670254db Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 3 Sep 2022 19:05:50 +0200 Subject: [PATCH] Draw timeline item separator lines with proper colors. --- server/TracyTimelineItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index e702e15d..7cf2c450 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -56,7 +56,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2 const auto label = HeaderLabel(); labelWidth = ImGui::CalcTextSize( label ).x; DrawTextContrast( draw, wpos + ImVec2( ty, offset ), m_showFull ? color : colorInactive, label ); - DrawLine( draw, dpos + ImVec2( 0, offset + ty - 1 ), dpos + ImVec2( w, offset + ty - 1 ), 0x8844DDDD ); + DrawLine( draw, dpos + ImVec2( 0, offset + ty - 1 ), dpos + ImVec2( w, offset + ty - 1 ), HeaderLineColor() ); if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + labelWidth, offset + ty ) ) ) {