Mark activity when lock is highlighting.

This commit is contained in:
Bartosz Taudul 2022-09-28 01:06:34 +02:00
parent fd93f244f0
commit 1db9681ee2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -830,6 +830,7 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
{
const auto t = uint8_t( ( sin( std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::system_clock::now().time_since_epoch() ).count() * 0.01 ) * 0.5 + 0.5 ) * 255 );
draw->AddRect( wpos + ImVec2( std::max( px0, -10.0 ), offset ), wpos + ImVec2( std::min( pxend, double( w + 10 ) ), offset + ty ), 0x00FFFFFF | ( t << 24 ), 0.f, -1, 2.f );
m_wasActive = true;
}
else if( condensed == 0 )
{