mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 01:02:18 -04:00
notifications: Tweak animation scale & settings
This commit is contained in:
@@ -278,7 +278,7 @@ Item {
|
|||||||
Behavior on x {
|
Behavior on x {
|
||||||
enabled: !swipeDragHandler.active && delegateRoot.__delegateInitialized
|
enabled: !swipeDragHandler.active && delegateRoot.__delegateInitialized
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Theme.shortDuration
|
duration: Theme.notificationExitDuration
|
||||||
easing.type: Theme.standardEasing
|
easing.type: Theme.standardEasing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ Item {
|
|||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
enabled: delegateRoot.__delegateInitialized
|
enabled: delegateRoot.__delegateInitialized
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: delegateRoot.__delegateInitialized ? Theme.shortDuration : 0
|
duration: delegateRoot.__delegateInitialized ? Theme.notificationExitDuration : 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ DankListView {
|
|||||||
target: delegateRoot
|
target: delegateRoot
|
||||||
property: "swipeOffset"
|
property: "swipeOffset"
|
||||||
to: 0
|
to: 0
|
||||||
duration: Theme.shortDuration
|
duration: Theme.notificationExitDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
onStopped: NotificationService.dismissGroup(delegateRoot.modelData?.key || "")
|
onStopped: NotificationService.dismissGroup(delegateRoot.modelData?.key || "")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -764,7 +764,7 @@ Rectangle {
|
|||||||
target: expandedDelegateWrapper
|
target: expandedDelegateWrapper
|
||||||
property: "swipeOffset"
|
property: "swipeOffset"
|
||||||
to: expandedDelegateWrapper.swipeOffset > 0 ? expandedDelegateWrapper.width : -expandedDelegateWrapper.width
|
to: expandedDelegateWrapper.swipeOffset > 0 ? expandedDelegateWrapper.width : -expandedDelegateWrapper.width
|
||||||
duration: Theme.shortDuration
|
duration: Theme.notificationExitDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
onStopped: NotificationService.dismissNotification(modelData)
|
onStopped: NotificationService.dismissNotification(modelData)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ DankPopout {
|
|||||||
popupWidth: triggerScreen ? Math.min(500, Math.max(380, triggerScreen.width - 48)) : 400
|
popupWidth: triggerScreen ? Math.min(500, Math.max(380, triggerScreen.width - 48)) : 400
|
||||||
popupHeight: stablePopupHeight
|
popupHeight: stablePopupHeight
|
||||||
positioning: ""
|
positioning: ""
|
||||||
animationScaleCollapsed: 1.0
|
animationScaleCollapsed: 0.94
|
||||||
animationOffset: 0
|
animationOffset: 0
|
||||||
suspendShadowWhileResizing: true
|
suspendShadowWhileResizing: false
|
||||||
|
|
||||||
screen: triggerScreen
|
screen: triggerScreen
|
||||||
shouldBeVisible: notificationHistoryVisible
|
shouldBeVisible: notificationHistoryVisible
|
||||||
|
|||||||
@@ -814,7 +814,7 @@ PanelWindow {
|
|||||||
Behavior on swipeOffset {
|
Behavior on swipeOffset {
|
||||||
enabled: !content.swipeActive && !content.swipeDismissing
|
enabled: !content.swipeActive && !content.swipeDismissing
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Theme.shortDuration
|
duration: Theme.notificationExitDuration
|
||||||
easing.type: Theme.standardEasing
|
easing.type: Theme.standardEasing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -824,7 +824,7 @@ PanelWindow {
|
|||||||
target: content
|
target: content
|
||||||
property: "swipeOffset"
|
property: "swipeOffset"
|
||||||
to: isTopCenter ? -content.height : isBottomCenter ? content.height : (SettingsData.notificationPopupPosition === SettingsData.Position.Left || SettingsData.notificationPopupPosition === SettingsData.Position.Bottom ? -content.width : content.width)
|
to: isTopCenter ? -content.height : isBottomCenter ? content.height : (SettingsData.notificationPopupPosition === SettingsData.Position.Left || SettingsData.notificationPopupPosition === SettingsData.Position.Bottom ? -content.width : content.width)
|
||||||
duration: Theme.shortDuration
|
duration: Theme.notificationExitDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
onStopped: {
|
onStopped: {
|
||||||
NotificationService.dismissNotification(notificationData);
|
NotificationService.dismissNotification(notificationData);
|
||||||
|
|||||||
Reference in New Issue
Block a user