diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-07-24 02:39:51 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-07-24 02:39:51 +0300 |
commit | a3b6a9c95cd6617a1b3cc4f6e6ae2021d65ecaee (patch) | |
tree | ef451b68100c8c2c89bec25ebd1d6fc5d5bc3e33 /server/TracyView_Plots.cpp | |
parent | 755df94f45849bab8fee4e78ba34963b0647ed8b (diff) |
Color plot background.
Diffstat (limited to 'server/TracyView_Plots.cpp')
-rw-r--r-- | server/TracyView_Plots.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/TracyView_Plots.cpp b/server/TracyView_Plots.cpp index 99e944c6..5c9f4730 100644 --- a/server/TracyView_Plots.cpp +++ b/server/TracyView_Plots.cpp @@ -174,6 +174,11 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl auto& vec = v->data; vec.ensure_sorted(); + const auto color = GetPlotColor( v ); + const auto bg = 0x22000000 | ( DarkenColorMore( color ) & 0xFFFFFF ); + + draw->AddRectFilled( ImVec2( 0, yPos ), ImVec2( w, yPos + PlotHeight ), bg ); + if( v->type == PlotType::Memory ) { auto& mem = m_worker.GetMemoryNamed( v->name ); @@ -273,7 +278,6 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl } const auto revrange = 1.0 / ( max - min ); - const auto color = GetPlotColor( v ); if( it == vec.begin() ) { |