Display plot color in plot tooltip.

This commit is contained in:
Bartosz Taudul 2022-07-24 01:12:42 +02:00
parent 7d1539a0ce
commit a98bbc2340
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -119,7 +119,9 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + txtx, offset + ty ) ) )
{
ImGui::BeginTooltip();
ImGui::Text( "Plot \"%s\"", txt );
SmallColorBox( GetPlotColor( v ) );
ImGui::SameLine();
TextFocused( "Plot", txt );
ImGui::Separator();
const auto first = v->data.front().time.Val();