slider: flatten handle color when disabled

This commit is contained in:
Peter Hartmann 2022-07-05 13:44:39 +02:00
parent 9ecafddc49
commit a429bfb7b8
1 changed files with 2 additions and 1 deletions

View File

@ -571,7 +571,8 @@ void Editor::setupSlider()
setGradient( Q::Handle, m_pal.primary );
setGradient( Q::Handle | Q::Pressed, m_pal.primary );
setGradient( Q::Handle | Q::Disabled, m_pal.onSurface38 );
const auto disabledColor = flattenedColor( m_pal.onSurface, m_pal.background, 0.38 );
setGradient( Q::Handle | Q::Disabled, disabledColor );
setStrutSize( Q::Ripple, { 40, 40 } );
setBoxShape( Q::Ripple, 100, Qt::RelativeSize );