Port various components to veryShortDuration on hover
This commit is contained in:
parent
7622e09bc0
commit
e03b9bf081
@ -13,7 +13,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
* derivates)
|
||||
*
|
||||
* Provides built-in animation of Behavior on opacity Easing.OutQuad for a
|
||||
* duration of 250 (defined in PlasmaCore.Units.longDuration).
|
||||
* duration of 50ms (defined in PlasmaCore.Units.veryShortDuration).
|
||||
*
|
||||
* (TODO, make optional? e.g. animate: false)
|
||||
*
|
||||
@ -44,7 +44,7 @@ Item {
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: PlasmaCore.Units.longDuration
|
||||
duration: PlasmaCore.Units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
@ -64,7 +64,7 @@ Item {
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: PlasmaCore.Units.longDuration
|
||||
duration: PlasmaCore.Units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ Item {
|
||||
to: "hidden"
|
||||
SequentialAnimation {
|
||||
OpacityAnimator {
|
||||
duration: units.shortDuration
|
||||
duration: units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
PropertyAction {
|
||||
@ -76,7 +76,7 @@ Item {
|
||||
}
|
||||
OpacityAnimator {
|
||||
// Using a shorter duration here makes things feel more responsive.
|
||||
duration: units.shortDuration/2
|
||||
duration: units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ Item {
|
||||
value: true
|
||||
}
|
||||
OpacityAnimator {
|
||||
duration: units.shortDuration
|
||||
duration: units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
@ -83,7 +83,7 @@ Item {
|
||||
SequentialAnimation {
|
||||
OpacityAnimator {
|
||||
// Same duration as pressed and flat background hovered state animations
|
||||
duration: units.shortDuration/2
|
||||
duration: units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
PropertyAction {
|
||||
|
@ -113,7 +113,7 @@ Item {
|
||||
Transition {
|
||||
PropertyAnimation {
|
||||
properties: "opacity"
|
||||
duration: units.longDuration
|
||||
duration: units.veryShortDuration
|
||||
easing.type: Easing.OutQuad
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user