1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-03 11:02:08 -04:00

revert animators

This commit is contained in:
bbedward
2026-05-01 18:09:12 -04:00
committed by purian23
parent 3796b3e1b5
commit 7c9ca60e44
65 changed files with 131 additions and 126 deletions

View File

@@ -28,7 +28,7 @@ Rectangle {
Behavior on scale {
enabled: enableScaleAnimation && Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
ScaleAnimator {
NumberAnimation {
easing.type: Easing.BezierSpline
duration: 100
easing.bezierCurve: Theme.expressiveCurves.standard

View File

@@ -197,7 +197,7 @@ Row {
Behavior on opacity {
enabled: root.userInteracted
OpacityAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}
@@ -205,7 +205,7 @@ Row {
Behavior on scale {
enabled: root.userInteracted
ScaleAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.emphasizedEasing
}

View File

@@ -45,7 +45,7 @@ ColumnLayout {
Behavior on rotation {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
RotationAnimator {
NumberAnimation {
easing.type: Easing.BezierSpline
duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard
@@ -89,7 +89,7 @@ ColumnLayout {
Behavior on opacity {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
OpacityAnimator {
NumberAnimation {
easing.type: Easing.BezierSpline
duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard
@@ -110,7 +110,7 @@ ColumnLayout {
Behavior on opacity {
enabled: Theme.currentAnimationSpeed !== SettingsData.AnimationSpeed.None
OpacityAnimator {
NumberAnimation {
easing.type: Easing.BezierSpline
duration: Theme.shortDuration
easing.bezierCurve: Theme.expressiveCurves.standard

View File

@@ -187,7 +187,7 @@ Item {
anchors.rightMargin: Theme.spacingS
Behavior on rotation {
RotationAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}

View File

@@ -157,7 +157,7 @@ Item {
opacity: (locationInput.getActiveFocus() && locationInput.text.length > 2) ? 1 : 0
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}

View File

@@ -315,14 +315,14 @@ PanelWindow {
}
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: animationDuration
easing.type: animationEasing
}
}
Behavior on scale {
ScaleAnimator {
NumberAnimation {
duration: animationDuration
easing.type: animationEasing
}

View File

@@ -7,6 +7,7 @@ import "../Common/ConnectorGeometry.js" as ConnectorGeometry
Item {
id: root
readonly property var log: Log.scoped("DankPopoutConnected")
property var popoutHandle: root
property string layerNamespace: "dms:popout"
@@ -728,10 +729,10 @@ Item {
WlrLayershell.layer: {
switch (Quickshell.env("DMS_POPOUT_LAYER")) {
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;
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;
case "overlay":
return WlrLayershell.Overlay;
@@ -1085,7 +1086,7 @@ Item {
Behavior on opacity {
enabled: !Theme.isDirectionalEffect
OpacityAnimator {
NumberAnimation {
duration: Math.round(Theme.variantDuration(animationDuration, shouldBeVisible) * Theme.variantOpacityDurationScale)
easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve

View File

@@ -837,7 +837,7 @@ Item {
Behavior on opacity {
enabled: !Theme.isDirectionalEffect
OpacityAnimator {
NumberAnimation {
duration: Math.round(Theme.variantDuration(root.animationDuration, root.shouldBeVisible) * Theme.variantOpacityDurationScale)
easing.type: Easing.BezierSpline
easing.bezierCurve: root.shouldBeVisible ? root.animationEnterCurve : root.animationExitCurve

View File

@@ -23,7 +23,7 @@ ScrollBar {
visible: policy !== ScrollBar.AlwaysOff
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: 160
easing.type: Easing.OutQuad
}

View File

@@ -225,7 +225,7 @@ Item {
y: parent.midY - height / 2
z: 3
Behavior on x {
XAnimator {
NumberAnimation {
duration: 80
}
}

View File

@@ -171,7 +171,7 @@ Item {
scale: active ? 1.05 : 1.0
Behavior on scale {
ScaleAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}
@@ -278,7 +278,7 @@ Item {
}
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: Theme.shortDuration
easing.type: Theme.standardEasing
}

View File

@@ -201,7 +201,7 @@ FocusScope {
Behavior on x {
enabled: indicator.animationEnabled
XAnimator {
NumberAnimation {
duration: Theme.mediumDuration
easing.type: Theme.standardEasing
}

View File

@@ -168,14 +168,14 @@ Item {
scale: (toggle.checked && toggle.enabled) ? 1 : 0.6
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: Anims.durShort
easing.type: Easing.BezierSpline
easing.bezierCurve: Anims.emphasized
}
}
Behavior on scale {
ScaleAnimator {
NumberAnimation {
duration: Anims.durShort
easing.type: Easing.BezierSpline
easing.bezierCurve: Anims.emphasized

View File

@@ -20,7 +20,7 @@ Rectangle {
}
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: standardAnimation.duration
easing.type: standardAnimation["easing.type"]
easing.bezierCurve: standardAnimation["easing.bezierCurve"]

View File

@@ -40,7 +40,7 @@ Text {
//renderType: Text.NativeRendering
Behavior on opacity {
OpacityAnimator {
NumberAnimation {
duration: standardAnimation.duration
easing.type: standardAnimation["easing.type"]
easing.bezierCurve: standardAnimation["easing.bezierCurve"]