controlcenter/bt: better styling
Less width when toggle buttons pressed Use expressive anim
This commit is contained in:
parent
26171548bf
commit
33501ae7e5
1 changed files with 5 additions and 2 deletions
|
|
@ -296,7 +296,7 @@ ColumnLayout {
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
Layout.preferredWidth: implicitWidth + (toggleStateLayer.pressed ? Appearance.padding.larger * 2 : toggled ? Appearance.padding.small * 2 : 0)
|
Layout.preferredWidth: implicitWidth + (toggleStateLayer.pressed ? Appearance.padding.normal * 2 : toggled ? Appearance.padding.small * 2 : 0)
|
||||||
implicitWidth: toggleBtnInner.implicitWidth + Appearance.padding.large * 2
|
implicitWidth: toggleBtnInner.implicitWidth + Appearance.padding.large * 2
|
||||||
implicitHeight: toggleBtnIcon.implicitHeight + Appearance.padding.normal * 2
|
implicitHeight: toggleBtnIcon.implicitHeight + Appearance.padding.normal * 2
|
||||||
|
|
||||||
|
|
@ -346,7 +346,10 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on radius {
|
Behavior on radius {
|
||||||
Anim {}
|
Anim {
|
||||||
|
duration: Appearance.anim.durations.expressiveFastSpatial
|
||||||
|
easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on Layout.preferredWidth {
|
Behavior on Layout.preferredWidth {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue