push buttons: Improve ripple effect

This commit is contained in:
Peter Hartmann 2023-02-05 13:20:11 +01:00 committed by uwerat
parent b97bce2360
commit 11f74a2f57
1 changed files with 2 additions and 2 deletions

View File

@ -645,6 +645,7 @@ void Editor::setupPushButton()
setSpacing( Q::Panel, 8_dp );
setPadding( Q::Panel, { 24_dp, 0, 24_dp, 0 } );
setBoxShape( Q::Panel, 100, Qt::RelativeSize );
setShadowColor( Q::Panel, m_pal.shadow );
setStrutSize( Q::Icon, 18_dp, 18_dp );
setPadding( Q::Icon, { 0, 0, 8_dp, 0 } );
@ -653,8 +654,7 @@ void Editor::setupPushButton()
setFontRole( Q::Text, QskMaterial3Skin::M3LabelLarge );
setPadding( Q::Text, 0 );
setShadowColor( Q::Panel, m_pal.shadow );
setBoxShape( Q::Splash, 40_dp );
setAnimation( Q::Splash | QskAspect::Color, qskDuration );