mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-03 02:52:07 -04:00
frame(Motion): Restore fluid motion & Update component connections
This commit is contained in:
@@ -185,8 +185,15 @@ Singleton {
|
||||
onAnimationVariantChanged: saveSettings()
|
||||
property int motionEffect: SettingsData.AnimationEffect.Standard
|
||||
onMotionEffectChanged: saveSettings()
|
||||
property int directionalAnimationMode: 0
|
||||
onDirectionalAnimationModeChanged: saveSettings()
|
||||
property int directionalAnimationMode: 1
|
||||
onDirectionalAnimationModeChanged: {
|
||||
const normalized = directionalAnimationMode === 3 ? 3 : 1;
|
||||
if (directionalAnimationMode !== normalized) {
|
||||
directionalAnimationMode = normalized;
|
||||
return;
|
||||
}
|
||||
saveSettings();
|
||||
}
|
||||
property bool m3ElevationEnabled: true
|
||||
onM3ElevationEnabledChanged: saveSettings()
|
||||
property int m3ElevationIntensity: 12
|
||||
@@ -246,7 +253,13 @@ Singleton {
|
||||
onFrameLauncherEmergeSideChanged: saveSettings()
|
||||
readonly property string frameModalEmergeSide: frameLauncherEmergeSide === "top" ? "bottom" : "top"
|
||||
property int previousDirectionalMode: 1
|
||||
onPreviousDirectionalModeChanged: saveSettings()
|
||||
onPreviousDirectionalModeChanged: {
|
||||
if (previousDirectionalMode !== 1) {
|
||||
previousDirectionalMode = 1;
|
||||
return;
|
||||
}
|
||||
saveSettings();
|
||||
}
|
||||
property var connectedFrameBarStyleBackups: ({})
|
||||
onConnectedFrameBarStyleBackupsChanged: saveSettings()
|
||||
readonly property bool connectedFrameModeActive: frameEnabled && motionEffect === SettingsData.AnimationEffect.Directional && directionalAnimationMode === 3
|
||||
|
||||
@@ -51,7 +51,7 @@ var SPEC = {
|
||||
enableRippleEffects: { def: true },
|
||||
animationVariant: { def: 0 },
|
||||
motionEffect: { def: 0 },
|
||||
directionalAnimationMode: { def: 0 },
|
||||
directionalAnimationMode: { def: 1 },
|
||||
previousDirectionalMode: { def: 1 },
|
||||
m3ElevationEnabled: { def: true },
|
||||
m3ElevationIntensity: { def: 12 },
|
||||
|
||||
Reference in New Issue
Block a user