1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-12 23:32:50 -04:00

revert animators

This commit is contained in:
bbedward
2026-05-01 18:09:12 -04:00
committed by purian23
parent ab46f78d22
commit 32da983a49
65 changed files with 131 additions and 126 deletions
@@ -41,7 +41,7 @@ Rectangle {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -7,6 +7,7 @@ import qs.Widgets
Item { Item {
id: root id: root
readonly property var log: Log.scoped("DankModalConnected")
property var modalHandle: root property var modalHandle: root
property string layerNamespace: "dms:modal" property string layerNamespace: "dms:modal"
@@ -503,10 +504,10 @@ Item {
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
switch (Quickshell.env("DMS_MODAL_LAYER")) { switch (Quickshell.env("DMS_MODAL_LAYER")) {
case "bottom": case "bottom":
console.error("DankModal: 'bottom' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'bottom' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "background": case "background":
console.error("DankModal: 'background' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'background' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "overlay": case "overlay":
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
@@ -756,7 +757,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: root.animationsEnabled && (!Theme.isDirectionalEffect || Theme.isConnectedEffect) enabled: root.animationsEnabled && (!Theme.isDirectionalEffect || Theme.isConnectedEffect)
OpacityAnimator { NumberAnimation {
duration: Math.round(Theme.variantDuration(animationDuration, root.shouldBeVisible) * Theme.variantOpacityDurationScale) duration: Math.round(Theme.variantDuration(animationDuration, root.shouldBeVisible) * Theme.variantOpacityDurationScale)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve
@@ -7,6 +7,7 @@ import qs.Widgets
Item { Item {
id: root id: root
readonly property var log: Log.scoped("DankModalStandalone")
property var modalHandle: root property var modalHandle: root
property string layerNamespace: "dms:modal" property string layerNamespace: "dms:modal"
@@ -252,10 +253,10 @@ Item {
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
switch (Quickshell.env("DMS_MODAL_LAYER")) { switch (Quickshell.env("DMS_MODAL_LAYER")) {
case "bottom": case "bottom":
console.error("DankModal: 'bottom' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'bottom' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "background": case "background":
console.error("DankModal: 'background' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'background' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "overlay": case "overlay":
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
@@ -318,7 +319,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: root.animationsEnabled enabled: root.animationsEnabled
OpacityAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: root.animationDuration duration: root.animationDuration
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve
@@ -407,7 +408,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: root.animationsEnabled enabled: root.animationsEnabled
OpacityAnimator { NumberAnimation {
duration: animationDuration duration: animationDuration
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve
@@ -8,6 +8,7 @@ import qs.Widgets
Item { Item {
id: root id: root
readonly property var log: Log.scoped("DankLauncherV2ModalConnected")
property var modalHandle: root property var modalHandle: root
@@ -643,10 +644,10 @@ Item {
WlrLayershell.layer: { WlrLayershell.layer: {
switch (Quickshell.env("DMS_MODAL_LAYER")) { switch (Quickshell.env("DMS_MODAL_LAYER")) {
case "bottom": case "bottom":
console.error("DankLauncherV2Modal: 'bottom' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'bottom' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "background": case "background":
console.error("DankLauncherV2Modal: 'background' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'background' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "overlay": case "overlay":
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
@@ -836,7 +837,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: root.animationsEnabled && (!Theme.isDirectionalEffect || Theme.isConnectedEffect) enabled: root.animationsEnabled && (!Theme.isDirectionalEffect || Theme.isConnectedEffect)
OpacityAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Math.round(Theme.variantDuration(root.launcherAnimationDuration, launcherMotionVisible) * Theme.variantOpacityDurationScale) duration: Math.round(Theme.variantDuration(root.launcherAnimationDuration, launcherMotionVisible) * Theme.variantOpacityDurationScale)
easing.bezierCurve: launcherMotionVisible ? root.launcherEnterCurve : root.launcherExitCurve easing.bezierCurve: launcherMotionVisible ? root.launcherEnterCurve : root.launcherExitCurve
@@ -8,6 +8,7 @@ import qs.Widgets
Item { Item {
id: root id: root
readonly property var log: Log.scoped("DankLauncherV2ModalStandalone")
property var modalHandle: root property var modalHandle: root
@@ -362,10 +363,10 @@ Item {
WlrLayershell.layer: { WlrLayershell.layer: {
switch (Quickshell.env("DMS_MODAL_LAYER")) { switch (Quickshell.env("DMS_MODAL_LAYER")) {
case "bottom": case "bottom":
console.error("DankModal: 'bottom' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'bottom' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "background": case "background":
console.error("DankModal: 'background' layer is not valid for modals. Defaulting to 'top' layer."); log.error("'background' layer is not valid for modals. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "overlay": case "overlay":
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
@@ -421,7 +422,7 @@ Item {
transformOrigin: Item.Center transformOrigin: Item.Center
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Theme.modalAnimationDuration duration: Theme.modalAnimationDuration
easing.bezierCurve: contentVisible ? Theme.expressiveCurves.expressiveDefaultSpatial : Theme.expressiveCurves.emphasized easing.bezierCurve: contentVisible ? Theme.expressiveCurves.expressiveDefaultSpatial : Theme.expressiveCurves.emphasized
@@ -431,7 +432,7 @@ Item {
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Theme.modalAnimationDuration duration: Theme.modalAnimationDuration
easing.bezierCurve: contentVisible ? Theme.expressiveCurves.expressiveDefaultSpatial : Theme.expressiveCurves.emphasized easing.bezierCurve: contentVisible ? Theme.expressiveCurves.expressiveDefaultSpatial : Theme.expressiveCurves.emphasized
+1 -1
View File
@@ -228,7 +228,7 @@ Rectangle {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -42,7 +42,7 @@ Rectangle {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -180,7 +180,7 @@ Item {
opacity: (root.hasRun && !root.isRunning) ? 1 : 0 opacity: (root.hasRun && !root.isRunning) ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -22,7 +22,7 @@ Rectangle {
scale: mouseArea.pressed ? 0.97 : 1 scale: mouseArea.pressed ? 0.97 : 1
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
+1 -1
View File
@@ -772,7 +772,7 @@ DankModal {
opacity: root.showHoldHint ? 1 : 0.5 opacity: root.showHoldHint ? 1 : 0.5
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 150 duration: 150
} }
} }
@@ -214,13 +214,13 @@ Item {
color: root.accentColor color: root.accentColor
Behavior on x { Behavior on x {
XAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
} }
Behavior on y { Behavior on y {
YAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -278,13 +278,13 @@ Item {
color: root.accentColor color: root.accentColor
Behavior on x { Behavior on x {
XAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
} }
Behavior on y { Behavior on y {
YAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -47,7 +47,7 @@ Rectangle {
opacity: mouseArea.containsMouse ? 0.08 : 0.0 opacity: mouseArea.containsMouse ? 0.08 : 0.0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
} }
} }
@@ -51,7 +51,7 @@ Item {
} }
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 150 duration: 150
} }
} }
@@ -299,7 +299,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 150 duration: 150
} }
} }
@@ -195,7 +195,7 @@ DankPopout {
Behavior on opacity { Behavior on opacity {
enabled: !Theme.isDirectionalEffect enabled: !Theme.isDirectionalEffect
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve easing.bezierCurve: root.shouldBeVisible ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve
@@ -127,7 +127,7 @@ Item {
opacity: modalVisible ? 1 : 0 opacity: modalVisible ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -316,14 +316,14 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -64,7 +64,7 @@ Rectangle {
opacity: 0.08 opacity: 0.08
antialiasing: true antialiasing: true
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
} }
} }
@@ -53,7 +53,7 @@ Rectangle {
opacity: mouseArea.containsMouse ? 0.08 : 0.0 opacity: mouseArea.containsMouse ? 0.08 : 0.0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
} }
} }
@@ -474,14 +474,14 @@ BasePill {
height: (isInOverflow && !root.overflowExpanded) ? 0 : visualHeight height: (isInOverflow && !root.overflowExpanded) ? 0 : visualHeight
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -666,7 +666,7 @@ BasePill {
transformOrigin: Item.Center transformOrigin: Item.Center
scale: appItem.enlargeScale scale: appItem.enlargeScale
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: 120 duration: 120
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -711,7 +711,7 @@ BasePill {
transformOrigin: Item.Center transformOrigin: Item.Center
scale: appItem.enlargeScale scale: appItem.enlargeScale
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: 120 duration: 120
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -734,7 +734,7 @@ BasePill {
transformOrigin: Item.Center transformOrigin: Item.Center
scale: appItem.enlargeScale scale: appItem.enlargeScale
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: 120 duration: 120
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -758,7 +758,7 @@ BasePill {
transformOrigin: Item.Center transformOrigin: Item.Center
scale: appItem.enlargeScale scale: appItem.enlargeScale
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: 120 duration: 120
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -36,7 +36,7 @@ Item {
rotation: isVertical ? (overflowExpanded ? 180 : 0) : (overflowExpanded ? 90 : -90) rotation: isVertical ? (overflowExpanded ? 180 : 0) : (overflowExpanded ? 90 : -90)
Behavior on rotation { Behavior on rotation {
RotationAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -39,7 +39,7 @@ BasePill {
] ]
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -173,7 +173,7 @@ BasePill {
opacity: root.playerAvailable ? 1 : 0 opacity: root.playerAvailable ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -50,7 +50,7 @@ BasePill {
] ]
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -238,7 +238,7 @@ BasePill {
Behavior on opacity { Behavior on opacity {
enabled: hasActivePrivacy && root.visible enabled: hasActivePrivacy && root.visible
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -271,7 +271,7 @@ BasePill {
] ]
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -625,7 +625,7 @@ BasePill {
opacity: root.inlineExpanded ? 1 : 0 opacity: root.inlineExpanded ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1214,14 +1214,14 @@ BasePill {
scale: root.menuOpen ? 1 : 0.85 scale: root.menuOpen ? 1 : 0.85
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -1666,14 +1666,14 @@ BasePill {
scale: menuRoot.showMenu ? 1 : 0.85 scale: menuRoot.showMenu ? 1 : 0.85
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -36,7 +36,7 @@ BasePill {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -47,7 +47,7 @@ BasePill {
anchors.centerIn: parent anchors.centerIn: parent
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
} }
@@ -1471,7 +1471,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -402,7 +402,7 @@ Rectangle {
opacity: isToday ? 0.9 : 0.7 opacity: isToday ? 0.9 : 0.7
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+2 -2
View File
@@ -514,14 +514,14 @@ Item {
height: (isInOverflow && !root.overflowExpanded) ? 0 : (itemData.type === "separator" ? (root.isVertical ? 8 : root.iconSize) : (root.isVertical ? root.iconSize * 1.2 : root.iconSize)) height: (isInOverflow && !root.overflowExpanded) ? 0 : (itemData.type === "separator" ? (root.isVertical ? 8 : root.iconSize) : (root.isVertical ? root.iconSize * 1.2 : root.iconSize))
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
@@ -35,7 +35,7 @@ Item {
rotation: isVertical ? (overflowExpanded ? 180 : 0) : (overflowExpanded ? 90 : -90) rotation: isVertical ? (overflowExpanded ? 180 : 0) : (overflowExpanded ? 90 : -90)
Behavior on rotation { Behavior on rotation {
RotationAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
+6 -6
View File
@@ -714,7 +714,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1012,7 +1012,7 @@ Item {
opacity: (GreeterState.showPasswordInput ? GreeterState.passwordBuffer.length === 0 : GreeterState.usernameInput.length === 0) ? 1 : 0 opacity: (GreeterState.showPasswordInput ? GreeterState.passwordBuffer.length === 0 : GreeterState.usernameInput.length === 0) ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1049,7 +1049,7 @@ Item {
horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1121,7 +1121,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1151,7 +1151,7 @@ Item {
opacity: root.authFeedbackMessage !== "" ? 1 : 0 opacity: root.authFeedbackMessage !== "" ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1169,7 +1169,7 @@ Item {
enabled: GreeterState.showPasswordInput enabled: GreeterState.showPasswordInput
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -779,7 +779,7 @@ Rectangle {
opacity: root.showHoldHint ? 1 : 0.5 opacity: root.showHoldHint ? 1 : 0.5
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 150 duration: 150
} }
} }
@@ -214,7 +214,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -740,7 +740,7 @@ Item {
opacity: pam.passwd.active ? 0 : 1 opacity: pam.passwd.active ? 0 : 1
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -879,7 +879,7 @@ Item {
opacity: (demoMode || root.passwordBuffer.length === 0) ? 1 : 0 opacity: (demoMode || root.passwordBuffer.length === 0) ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -916,7 +916,7 @@ Item {
horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft horizontalAlignment: implicitWidth > width ? Text.AlignRight : Text.AlignLeft
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1053,7 +1053,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1084,7 +1084,7 @@ Item {
opacity: text.length > 0 ? 1 : 0 opacity: text.length > 0 ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1114,7 +1114,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -47,7 +47,7 @@ FocusScope {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 200 duration: 200
} }
} }
@@ -285,7 +285,7 @@ Column {
radius: Theme.cornerRadius radius: Theme.cornerRadius
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -283,7 +283,7 @@ Item {
Behavior on x { Behavior on x {
enabled: !swipeDragHandler.active && delegateRoot.__delegateInitialized enabled: !swipeDragHandler.active && delegateRoot.__delegateInitialized
XAnimator { NumberAnimation {
duration: Theme.notificationExitDuration duration: Theme.notificationExitDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -291,7 +291,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: delegateRoot.__delegateInitialized enabled: delegateRoot.__delegateInitialized
OpacityAnimator { NumberAnimation {
duration: delegateRoot.__delegateInitialized ? Theme.notificationExitDuration : 0 duration: delegateRoot.__delegateInitialized ? Theme.notificationExitDuration : 0
} }
} }
@@ -226,7 +226,7 @@ DankListView {
Behavior on x { Behavior on x {
enabled: !swipeDragHandler.active && !delegateRoot.isDismissing && (listView.swipingCardIndex === -1 || !delegateRoot.isAdjacentToSwipe) && listView.listInitialized enabled: !swipeDragHandler.active && !delegateRoot.isDismissing && (listView.swipingCardIndex === -1 || !delegateRoot.isAdjacentToSwipe) && listView.listInitialized
XAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -234,7 +234,7 @@ DankListView {
Behavior on opacity { Behavior on opacity {
enabled: listView.listInitialized enabled: listView.listInitialized
OpacityAnimator { NumberAnimation {
duration: listView.listInitialized ? Theme.shortDuration : 0 duration: listView.listInitialized ? Theme.shortDuration : 0
} }
} }
@@ -75,7 +75,7 @@ Rectangle {
Behavior on scale { Behavior on scale {
enabled: listLevelScaleAnimationsEnabled enabled: listLevelScaleAnimationsEnabled
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -545,7 +545,7 @@ Rectangle {
Behavior on x { Behavior on x {
enabled: !expandedSwipeHandler.active && !expandedDelegateWrapper.isDismissing enabled: !expandedSwipeHandler.active && !expandedDelegateWrapper.isDismissing
XAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -553,7 +553,7 @@ Rectangle {
Behavior on scale { Behavior on scale {
enabled: !expandedSwipeHandler.active enabled: !expandedSwipeHandler.active
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -762,7 +762,7 @@ Rectangle {
spacing: contentSpacing spacing: contentSpacing
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -822,7 +822,7 @@ Rectangle {
color: isHovered ? Theme.withAlpha(Theme.primary, Theme.stateLayerHover) : "transparent" color: isHovered ? Theme.withAlpha(Theme.primary, Theme.stateLayerHover) : "transparent"
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -42,7 +42,7 @@ Rectangle {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -27,7 +27,7 @@ Rectangle {
opacity: expanded ? 1 : 0 opacity: expanded ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -996,7 +996,7 @@ PanelWindow {
z: 20 z: 20
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -1051,7 +1051,7 @@ PanelWindow {
visible: actionCount < 3 && cardHoverHandler.hovered visible: actionCount < 3 && cardHoverHandler.hovered
opacity: visible ? 1 : 0 opacity: visible ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -519,7 +519,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -182,7 +182,7 @@ SettingsCard {
opacity: visible ? 1 : 0 opacity: visible ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -107,7 +107,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -587,7 +587,7 @@ FloatingWindow {
border.color: buttonState === "incompatible" ? Theme.warning : Theme.outline border.color: buttonState === "incompatible" ? Theme.warning : Theme.outline
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -619,7 +619,7 @@ FloatingWindow {
border.color: isInstalled ? (uninstallMouseArea.containsMouse ? Theme.error : Theme.outline) : "transparent" border.color: isInstalled ? (uninstallMouseArea.containsMouse ? Theme.error : Theme.outline) : "transparent"
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -380,7 +380,7 @@ Item {
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -633,7 +633,7 @@ Item {
scale: isActive ? 1.03 : 1 scale: isActive ? 1.03 : 1
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -989,7 +989,7 @@ Item {
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -308,7 +308,7 @@ Column {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -620,7 +620,7 @@ Column {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -97,7 +97,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
+1 -1
View File
@@ -416,7 +416,7 @@ PanelWindow {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -120,7 +120,7 @@ Scope {
opacity: overviewScope.overviewOpen ? 0.5 : 0 opacity: overviewScope.overviewOpen ? 0.5 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen) duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve
@@ -173,7 +173,7 @@ Scope {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen) duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve
@@ -181,7 +181,7 @@ Scope {
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen) duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve
@@ -189,7 +189,7 @@ Scope {
} }
Behavior on x { Behavior on x {
XAnimator { NumberAnimation {
duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen) duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve
@@ -197,7 +197,7 @@ Scope {
} }
Behavior on y { Behavior on y {
YAnimator { NumberAnimation {
duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen) duration: Theme.variantDuration(Theme.expressiveDurations.expressiveDefaultSpatial, overviewScope.overviewOpen)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve easing.bezierCurve: overviewScope.overviewOpen ? Theme.variantModalEnterCurve : Theme.variantModalExitCurve
+1 -1
View File
@@ -28,7 +28,7 @@ Rectangle {
Behavior on scale { Behavior on scale {
enabled: enableScaleAnimation && Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None enabled: enableScaleAnimation && Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
ScaleAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: 100 duration: 100
easing.bezierCurve: Theme.expressiveCurves.standard easing.bezierCurve: Theme.expressiveCurves.standard
+2 -2
View File
@@ -197,7 +197,7 @@ Row {
Behavior on opacity { Behavior on opacity {
enabled: root.userInteracted enabled: root.userInteracted
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -205,7 +205,7 @@ Row {
Behavior on scale { Behavior on scale {
enabled: root.userInteracted enabled: root.userInteracted
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing easing.type: Theme.emphasizedEasing
} }
@@ -45,7 +45,7 @@ ColumnLayout {
Behavior on rotation { Behavior on rotation {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
RotationAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Theme.shortDuration duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard easing.bezierCurve: Theme.expressiveCurves.standard
@@ -89,7 +89,7 @@ ColumnLayout {
Behavior on opacity { Behavior on opacity {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
OpacityAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Theme.shortDuration duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard easing.bezierCurve: Theme.expressiveCurves.standard
@@ -110,7 +110,7 @@ ColumnLayout {
Behavior on opacity { Behavior on opacity {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
OpacityAnimator { NumberAnimation {
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
duration: Theme.shortDuration duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard easing.bezierCurve: Theme.expressiveCurves.standard
+1 -1
View File
@@ -187,7 +187,7 @@ Item {
anchors.rightMargin: Theme.spacingS anchors.rightMargin: Theme.spacingS
Behavior on rotation { Behavior on rotation {
RotationAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -157,7 +157,7 @@ Item {
opacity: (locationInput.getActiveFocus() && locationInput.text.length > 2) ? 1 : 0 opacity: (locationInput.getActiveFocus() && locationInput.text.length > 2) ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+2 -2
View File
@@ -315,14 +315,14 @@ PanelWindow {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: animationDuration duration: animationDuration
easing.type: animationEasing easing.type: animationEasing
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: animationDuration duration: animationDuration
easing.type: animationEasing easing.type: animationEasing
} }
+4 -3
View File
@@ -7,6 +7,7 @@ import "../Common/ConnectorGeometry.js" as ConnectorGeometry
Item { Item {
id: root id: root
readonly property var log: Log.scoped("DankPopoutConnected")
property var popoutHandle: root property var popoutHandle: root
property string layerNamespace: "dms:popout" property string layerNamespace: "dms:popout"
@@ -728,10 +729,10 @@ Item {
WlrLayershell.layer: { WlrLayershell.layer: {
switch (Quickshell.env("DMS_POPOUT_LAYER")) { switch (Quickshell.env("DMS_POPOUT_LAYER")) {
case "bottom": case "bottom":
console.warn("DankPopout: 'bottom' layer is not valid for popouts. Defaulting to 'top' layer."); log.warn("'bottom' layer is not valid for popouts. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "background": case "background":
console.warn("DankPopout: 'background' layer is not valid for popouts. Defaulting to 'top' layer."); log.warn("'background' layer is not valid for popouts. Defaulting to 'top' layer.");
return WlrLayershell.Top; return WlrLayershell.Top;
case "overlay": case "overlay":
return WlrLayershell.Overlay; return WlrLayershell.Overlay;
@@ -1085,7 +1086,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: !Theme.isDirectionalEffect enabled: !Theme.isDirectionalEffect
OpacityAnimator { NumberAnimation {
duration: Math.round(Theme.variantDuration(animationDuration, shouldBeVisible) * Theme.variantOpacityDurationScale) duration: Math.round(Theme.variantDuration(animationDuration, shouldBeVisible) * Theme.variantOpacityDurationScale)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve
+1 -1
View File
@@ -837,7 +837,7 @@ Item {
Behavior on opacity { Behavior on opacity {
enabled: !Theme.isDirectionalEffect enabled: !Theme.isDirectionalEffect
OpacityAnimator { NumberAnimation {
duration: Math.round(Theme.variantDuration(root.animationDuration, root.shouldBeVisible) * Theme.variantOpacityDurationScale) duration: Math.round(Theme.variantDuration(root.animationDuration, root.shouldBeVisible) * Theme.variantOpacityDurationScale)
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve
+1 -1
View File
@@ -23,7 +23,7 @@ ScrollBar {
visible: policy !== ScrollBar.AlwaysOff visible: policy !== ScrollBar.AlwaysOff
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: 160 duration: 160
easing.type: Easing.OutQuad easing.type: Easing.OutQuad
} }
+1 -1
View File
@@ -225,7 +225,7 @@ Item {
y: parent.midY - height / 2 y: parent.midY - height / 2
z: 3 z: 3
Behavior on x { Behavior on x {
XAnimator { NumberAnimation {
duration: 80 duration: 80
} }
} }
+2 -2
View File
@@ -171,7 +171,7 @@ Item {
scale: active ? 1.05 : 1.0 scale: active ? 1.05 : 1.0
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
@@ -278,7 +278,7 @@ Item {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Theme.shortDuration duration: Theme.shortDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+1 -1
View File
@@ -201,7 +201,7 @@ FocusScope {
Behavior on x { Behavior on x {
enabled: indicator.animationEnabled enabled: indicator.animationEnabled
XAnimator { NumberAnimation {
duration: Theme.mediumDuration duration: Theme.mediumDuration
easing.type: Theme.standardEasing easing.type: Theme.standardEasing
} }
+2 -2
View File
@@ -168,14 +168,14 @@ Item {
scale: (toggle.checked && toggle.enabled) ? 1 : 0.6 scale: (toggle.checked && toggle.enabled) ? 1 : 0.6
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: Anims.durShort duration: Anims.durShort
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: Anims.emphasized easing.bezierCurve: Anims.emphasized
} }
} }
Behavior on scale { Behavior on scale {
ScaleAnimator { NumberAnimation {
duration: Anims.durShort duration: Anims.durShort
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline
easing.bezierCurve: Anims.emphasized easing.bezierCurve: Anims.emphasized
+1 -1
View File
@@ -20,7 +20,7 @@ Rectangle {
} }
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: standardAnimation.duration duration: standardAnimation.duration
easing.type: standardAnimation["easing.type"] easing.type: standardAnimation["easing.type"]
easing.bezierCurve: standardAnimation["easing.bezierCurve"] easing.bezierCurve: standardAnimation["easing.bezierCurve"]
+1 -1
View File
@@ -40,7 +40,7 @@ Text {
//renderType: Text.NativeRendering //renderType: Text.NativeRendering
Behavior on opacity { Behavior on opacity {
OpacityAnimator { NumberAnimation {
duration: standardAnimation.duration duration: standardAnimation.duration
easing.type: standardAnimation["easing.type"] easing.type: standardAnimation["easing.type"]
easing.bezierCurve: standardAnimation["easing.bezierCurve"] easing.bezierCurve: standardAnimation["easing.bezierCurve"]