From ba73809a7827fcffd8d0f1832bb446935ffcd041 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Sat, 11 Jun 2022 17:27:57 +0800 Subject: [PATCH] wallpapers/image: add opacity animation in wallpaper item --- .../image/imagepackage/contents/ui/WallpaperDelegate.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml b/wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml index 02c23ab79..3ba11fa46 100644 --- a/wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml +++ b/wallpapers/image/imagepackage/contents/ui/WallpaperDelegate.qml @@ -5,7 +5,7 @@ SPDX-License-Identifier: GPL-2.0-or-later */ -import QtQuick 2.0 +import QtQuick 2.15 import QtQuick.Controls.Private 1.0 import QtQuick.Controls 2.3 as QtControls2 import QtGraphicalEffects 1.0 @@ -124,6 +124,13 @@ KCM.GridDelegate { } } + Behavior on opacity { + OpacityAnimator { + duration: PlasmaCore.Units.longDuration + easing.type: Easing.InOutQuad + } + } + onClicked: { if (configDialog.currentWallpaper == "org.kde.image") { cfg_Image = model.packageName || model.path;