This commit is contained in:
Uwe Rathmann 2025-02-06 11:10:14 +01:00
parent 6de763ec2a
commit 0f4c9de0e6
1 changed files with 15 additions and 0 deletions

View File

@ -1006,6 +1006,21 @@ void Editor::setupSlider()
const auto disabledColor = flattenedColor( m_pal.onSurface, m_pal.background, 0.38 );
setGradient( Q::Handle | Q::Disabled, disabledColor );
for( const auto state : { Q::Focused, Q::Pressed } )
{
setStrutSize( Q::LabelContainer | state, 48_px, 44_px,
{ QskStateCombination::CombinationNoState, Q::Hovered } );
}
setBoxShape( Q::LabelContainer, 100, Qt::RelativeSize );
setGradient( Q::LabelContainer, m_pal.inverseSurface );
setMargin( Q::LabelContainer | A::Horizontal, { 0, 0, 0, 4_px } );
setMargin( Q::LabelContainer | A::Vertical, { 4_px, 0, 0, 0 } );
setFontRole( Q::LabelText, LabelMedium );
setColor( Q::LabelText, m_pal.inverseOnSurface );
setAlignment( Q::LabelText, Qt::AlignCenter );
setAnimation( Q::Handle | A::Metric | A::Position, 2 * qskDuration );
}