1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

notifications: Refactor Animations

This commit is contained in:
purian23
2026-02-07 17:25:26 -05:00
parent c4a41f994a
commit 8ee7fe8e66
6 changed files with 55 additions and 28 deletions

View File

@@ -11,6 +11,11 @@ Rectangle {
property bool isSelected: false
property bool keyboardNavigationActive: false
property bool descriptionExpanded: NotificationService.expandedMessages[historyItem?.id ? (historyItem.id + "_hist") : ""] || false
property bool __initialized: false
Component.onCompleted: {
Qt.callLater(() => { __initialized = true; });
}
readonly property bool compactMode: SettingsData.notificationCompactMode
readonly property real cardPadding: compactMode ? Theme.spacingS : Theme.spacingM
@@ -45,8 +50,9 @@ Rectangle {
}
Behavior on border.color {
enabled: root.__initialized
ColorAnimation {
duration: Theme.shortDuration
duration: root.__initialized ? Theme.shortDuration : 0
easing.type: Theme.standardEasing
}
}