Warning, /plasma/kdeplasma-addons/wallpapers/haenau/contents/ui/BackgroundElement.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2012 Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.0 0008 import org.kde.plasma.core 2.0 as PlasmaCore 0009 0010 PlasmaCore.SvgItem { 0011 id: root 0012 width: naturalSize.width * (parent.height/naturalSize.height) 0013 height: parent.height 0014 svg: wallpaperSvg 0015 0016 signal changeTriggered 0017 0018 function change() {changeAnimation.running = true} 0019 0020 // Intentionally not using a standard duration value for these, as this is 0021 // an animated wallpaper so disabling animations doesn't make sense, and the 0022 // duration shouldn't be scaled with the user's preferences because this is 0023 // tuned to create a specific visual effect. 0024 SequentialAnimation { 0025 id: changeAnimation 0026 NumberAnimation { 0027 targets: root 0028 properties: "opacity" 0029 to: 0 0030 duration: 1000 0031 easing.type: Easing.InOutCubic 0032 } 0033 ScriptAction { script: root.z = Math.floor(Math.random()*7) } 0034 NumberAnimation { 0035 targets: root 0036 properties: "opacity" 0037 to: Math.random() 0038 duration: 1000 0039 easing.type: Easing.InOutCubic 0040 } 0041 } 0042 }