/usr/share/kde4/apps/plasma/wallpapers/org.kde.animals/contents/ui/animals.qml is in plasma-widgets-addons 4:4.14.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | import QtQuick 1.1
Rectangle
{
id: root
Animal {
id: anim
function move() {
anim.x=Math.min(Math.random()*root.width, root.width-width)
anim.y=Math.min(Math.random()*root.height, root.height-height)
}
}
function randomColor() {
root.color = Qt.hsla(Math.random(), 1,0.5,1)
}
function randomAction() {
var a = [anim.move, anim.fetchAnimal, randomColor]
var i = Math.floor(Math.random()*a.length)
a[i]()
}
Timer {
running: true
repeat: true
interval: 1000*600 //10 minutes
onTriggered: randomAction()
}
Component.onCompleted: {
anim.fetchAnimal()
anim.move()
randomColor()
}
MouseArea {
anchors.fill: parent
onClicked: randomAction()
}
Behavior on color { ColorAnimation { duration: 1000; easing.type: Easing.InQuad } }
}
|