Commit e3864b15 authored by Alexander Stippich's avatar Alexander Stippich
Browse files

use duration values provided from Kirigami

parent 07fb398b
......@@ -160,7 +160,7 @@ RowLayout {
Behavior on Layout.maximumWidth {
NumberAnimation {
duration: 150
duration: Kirigami.Units.shortDuration
}
}
......@@ -206,7 +206,7 @@ RowLayout {
OpacityAnimator {
from: 0.0
to: 1.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
......@@ -214,7 +214,7 @@ RowLayout {
OpacityAnimator {
from: 1.0
to: 0.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
......@@ -222,7 +222,7 @@ RowLayout {
OpacityAnimator {
from: 0.0
to: 1.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
......@@ -230,7 +230,7 @@ RowLayout {
OpacityAnimator {
from: 1.0
to: 0.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
......@@ -238,7 +238,7 @@ RowLayout {
OpacityAnimator {
from: 0.0
to: 1.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
......@@ -246,7 +246,7 @@ RowLayout {
OpacityAnimator {
from: 1.0
to: 0.0
duration: 300
duration: Kirigami.Units.longDuration
}
}
}
......@@ -301,7 +301,7 @@ RowLayout {
NumberAnimation {
properties: "Layout.minimumWidth, Layout.maximumWidth, Layout.preferredWidth, opacity"
easing.type: Easing.InOutQuad
duration: 300
duration: Kirigami.Units.longDuration
}
}
......
......@@ -309,7 +309,7 @@ ApplicationWindow {
NumberAnimation {
properties: "Layout.minimumHeight, Layout.maximumHeight, minimumHeight"
easing.type: Easing.InOutQuad
duration: 300
duration: Kirigami.Units.longDuration
}
}
}
......
......@@ -122,7 +122,7 @@ FocusScope {
property: "opacity"
from: 0
to: 1
duration: 100
duration: Kirigami.Units.shortDuration
}
}
......@@ -131,7 +131,7 @@ FocusScope {
property: "opacity"
from: 0
to: 1
duration: 100
duration: Kirigami.Units.shortDuration
}
}
......
......@@ -376,7 +376,7 @@ FocusScope {
property: 'opacity'
from: 0
to: 1
duration: 250
duration: Kirigami.Units.longDuration
easing.type: Easing.Linear
}
......@@ -385,7 +385,7 @@ FocusScope {
property: 'opacity'
from: 1
to: 0
duration: 250
duration: Kirigami.Units.longDuration
easing.type: Easing.Linear
}
}
......
......@@ -235,7 +235,7 @@ ColumnLayout {
PropertyAnimation {
properties: "opacity"
easing.type: Easing.Linear
duration: 250
duration: Kirigami.Units.longDuration
}
}
}
......@@ -69,7 +69,7 @@ ListView {
property: "opacity";
from: 0;
to: 1;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
populate: Transition {
......@@ -77,7 +77,7 @@ ListView {
property: "opacity";
from: 0;
to: 1;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
remove: Transition {
......@@ -85,14 +85,14 @@ ListView {
property: "opacity";
from: 1.0;
to: 0;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
displaced: Transition {
NumberAnimation {
properties: "x,y";
duration: 100;
easing.type: Easing.InOutQuad}
duration: Kirigami.Units.shortDuration
easing.type: Easing.InOutQuad }
}
*/
......
......@@ -56,7 +56,7 @@ ListView {
property: "opacity";
from: 0;
to: 1;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
populate: Transition {
......@@ -64,7 +64,7 @@ ListView {
property: "opacity";
from: 0;
to: 1;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
remove: Transition {
......@@ -72,13 +72,13 @@ ListView {
property: "opacity";
from: 1.0;
to: 0;
duration: 100 }
duration: Kirigami.Units.shortDuration }
}
displaced: Transition {
NumberAnimation {
properties: "x,y";
duration: 100;
duration: Kirigami.Units.shortDuration
easing.type: Easing.InOutQuad}
}
......
......@@ -111,7 +111,7 @@ Rectangle {
Behavior on opacity {
NumberAnimation {
easing.type: Easing.InOutQuad
duration: 300
duration: Kirigami.Units.longDuration
}
}
......
......@@ -110,13 +110,13 @@ FocusScope {
Behavior on implicitWidth {
NumberAnimation {
duration: 150
duration: Kirigami.Units.shortDuration
}
}
Behavior on width {
NumberAnimation {
duration: 150
duration: Kirigami.Units.shortDuration
}
}
......
......@@ -70,8 +70,8 @@ FocusScope {
color: myPalette.highlightedText
}
enter: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 0.0; to: 1.0; duration: 300; } }
exit: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 1.0; to: 0.0; duration: 300; } }
enter: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 0.0; to: 1.0; duration: Kirigami.Units.longDuration; } }
exit: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 1.0; to: 0.0; duration: Kirigami.Units.longDuration; } }
background: Rectangle {
color: myPalette.shadow
......
......@@ -19,6 +19,7 @@ import QtQuick 2.7
import QtQuick.Controls 2.2
import QtGraphicalEffects 1.0
import QtQuick.Window 2.2
import org.kde.kirigami 2.5 as Kirigami
Label {
id: theLabel
......@@ -38,8 +39,8 @@ Label {
visible: parent.containsMouse && theLabel.truncated
text: theLabel.text
enter: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 0.0; to: 1.0; duration: 300; } }
exit: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 1.0; to: 0.0; duration: 300; } }
enter: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 0.0; to: 1.0; duration: Kirigami.Units.longDuration; } }
exit: Transition { NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad; from: 1.0; to: 0.0; duration: Kirigami.Units.longDuration; } }
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment