diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-08 15:23:02 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@digia.com> | 2014-09-10 20:20:15 +0200 |
commit | a02cd6d37b0e94d1f042cf8eff690defe3bc9469 (patch) | |
tree | e128e65e09097f492ca87a2c7cfc3e5fbfe58c1b /examples | |
parent | d22769c728ff5b705acdc87c8c8ed20602ad48e3 (diff) |
Tune the colors in the rendercontrol example
Change-Id: I904782e6a54c8df63a2e187cdfed5a3193ff2a54
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/rendercontrol/demo.qml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/examples/quick/rendercontrol/demo.qml b/examples/quick/rendercontrol/demo.qml index 737532abcc..6d31578358 100644 --- a/examples/quick/rendercontrol/demo.qml +++ b/examples/quick/rendercontrol/demo.qml @@ -36,21 +36,23 @@ import QtQuick.Particles 2.0 Rectangle { id: root - color: "green" - Rectangle { - width: 400 - height: 400 - anchors.centerIn: parent - color: "red" - NumberAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; } + gradient: Gradient { + GradientStop { position: 0; color: mouse.pressed ? "lightsteelblue" : "steelblue" } + GradientStop { position: 1; color: "black" } } Text { anchors.centerIn: parent text: "Qt Quick in a texture" font.pointSize: 40 - color: "cyan" + color: "white" + + SequentialAnimation on rotation { + PauseAnimation { duration: 2500 } + NumberAnimation { from: 0; to: 360; duration: 5000; easing.type: Easing.InOutCubic } + loops: Animation.Infinite + } } ParticleSystem { @@ -183,8 +185,7 @@ Rectangle { onHeightChanged: particles.reset() MouseArea { + id: mouse anchors.fill: parent - onPressed: root.color = "gray" - onReleased: root.color = "green" } } |