Increase contrast on timeline CPU data CPU labels.

This commit is contained in:
Bartosz Taudul 2022-07-03 13:04:09 +02:00
parent 6748756fa1
commit 71b3706486
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -380,7 +380,7 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
sprintf( buf, "CPU %i", i );
}
const auto txtx = ImGui::CalcTextSize( buf ).x;
DrawTextContrast( draw, wpos + ImVec2( ty, offset-1 ), 0xFFDD88DD, buf );
DrawTextSuperContrast( draw, wpos + ImVec2( ty, offset-1 ), 0xFFDD88DD, buf );
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset-1 ), wpos + ImVec2( sty + txtx, offset + sty ) ) )
{
ImGui::PopFont();