Warning, /plasma/kdeplasma-addons/wallpapers/haenau/contents/ui/BottomBackgroundElement.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 height: naturalSize.height * (parent.width/naturalSize.width) 0013 width: parent.width 0014 y: parent.height - height 0015 svg: wallpaperSvg 0016 0017 signal changeTriggered 0018 0019 function change() {changeAnimation.running = true} 0020 0021 // Intentionally not using a standard duration value for these, as this is 0022 // an animated wallpaper so disabling animations doesn't make sense, and the 0023 // duration shouldn't be scaled with the user's preferences because this is 0024 // tuned to create a specific visual effect. 0025 SequentialAnimation { 0026 id: changeAnimation 0027 NumberAnimation { 0028 targets: root 0029 properties: "opacity" 0030 to: 0 0031 duration: 1000 0032 easing.type: Easing.InOutCubic 0033 } 0034 0035 ScriptAction { script: root.z = Math.floor(Math.random()*7) } 0036 0037 NumberAnimation { 0038 targets: root 0039 properties: "opacity" 0040 to: Math.random() 0041 duration: 1000 0042 easing.type: Easing.InOutCubic 0043 } 0044 } 0045 }