mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-03-26 17:03:08 +00:00
polish: backdrop blur crossfades on game navigation
Bind MultiEffect opacity to backdropImg.status so blur fades out when source changes (Image.Loading) and fades in when new image is ready (Image.Ready). Previously opacity was static at 0.38 so the Behavior was never triggered.
This commit is contained in:
parent
f63edc3e55
commit
e5f3e2113e
1 changed files with 2 additions and 2 deletions
|
|
@ -52,10 +52,10 @@ Maui.ApplicationWindow {
|
|||
blur: 1.0
|
||||
blurMax: 72
|
||||
brightness: -0.25
|
||||
opacity: 0.38
|
||||
opacity: backdropImg.status === Image.Ready ? 0.38 : 0.0
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: 600; easing.type: Easing.InOutCubic }
|
||||
NumberAnimation { duration: 500; easing.type: Easing.InOutCubic }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue