wip
This commit is contained in:
parent
6de763ec2a
commit
0f4c9de0e6
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue