From a02cd6d37b0e94d1f042cf8eff690defe3bc9469 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 8 Sep 2014 15:23:02 +0200 Subject: Tune the colors in the rendercontrol example Change-Id: I904782e6a54c8df63a2e187cdfed5a3193ff2a54 Reviewed-by: Paul Olav Tvete --- examples/quick/rendercontrol/demo.qml | 21 +++++++++++---------- 1 file 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" } } -- cgit v1.2.3