TweetSearch Stylistic Tweaks
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 19 Jun 2012 05:00:59 +0000 (15:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jul 2012 05:53:05 +0000 (07:53 +0200)
Includes upgrading the bird sprite to stochastic behavior

Change-Id: I6357f6a47ded0a18ad0746c3eef590ee9092db52
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
examples/demos/tweetsearch/content/FlipBar.qml
examples/demos/tweetsearch/content/ListFooter.qml
examples/demos/tweetsearch/content/ListHeader.qml
examples/demos/tweetsearch/content/resources/bird-anim-sprites.png
examples/demos/tweetsearch/tweetsearch.qml

index 65c2a3d..1d66a49 100644 (file)
@@ -75,11 +75,6 @@ Item {
         front.visible = frontShown
     }
 
-    Rectangle {
-        anchors.fill: parent
-        color: "white"
-    }
-
     function flipUp(start) {
         effect.visible = true;
         effect.sourceA = effect.source1
index 685acba..239e799 100644 (file)
@@ -114,17 +114,41 @@ Rectangle {
             }
         }
 
-        AnimatedSprite {
+        SpriteSequence {
             id: sprite
             anchors.horizontalCenter: parent.horizontalCenter
             width: 320
             height: 300
-            source: "resources/bird-anim-sprites.png"
-            frameCount: 6
-            frameRate: 3
-            frameWidth: 320
-            frameHeight: 360
             running: true
+            interpolate: false
+            Sprite {
+                name: "bird"
+                source: "resources/bird-anim-sprites.png"
+                frameCount: 1
+                frameRate: 1
+                frameWidth: 320
+                frameHeight: 300
+                to: { "bird":10, "trill":1, "blink":1 }
+            }
+            Sprite {
+                name: "trill"
+                source: "resources/bird-anim-sprites.png"
+                frameCount: 5
+                frameRate: 3
+                frameWidth: 320
+                frameHeight: 300
+                to: {"bird":1}
+            }
+            Sprite {
+                name: "blink"
+                source: "resources/bird-anim-sprites.png"
+                frameCount: 1
+                frameRate: 3
+                frameWidth: 320
+                frameHeight: 300
+                frameX: 1600
+                to: {"bird":1}
+            }
         }
     }
 }
index fbb1765..1a967d8 100644 (file)
@@ -61,9 +61,9 @@ Item {
         Text {
             id: label
             anchors.verticalCenter: arrow.verticalCenter
-            text: "Pull to refresh"
-            font.pixelSize: 20
-            color: "#c1c1c1"
+            text: "Pull to refresh...    "
+            font.pixelSize: 18
+            color: "#999999"
         }
     }
 
@@ -74,7 +74,7 @@ Item {
         },
         State {
             name: "pulled"; when: mainListView.contentY < -120
-            PropertyChanges { target: label; text: "Release to refresh" }
+            PropertyChanges { target: label; text: "Release to refresh..." }
             PropertyChanges { target: arrow; rotation: 0 }
         }
     ]
index 07ed904..4e8d7e6 100644 (file)
Binary files a/examples/demos/tweetsearch/content/resources/bird-anim-sprites.png and b/examples/demos/tweetsearch/content/resources/bird-anim-sprites.png differ
index 38de10c..f853806 100644 (file)
@@ -45,6 +45,7 @@ Rectangle {
     id: main
     width: 320
     height: 480
+    color: "#d6d6d6"
 
     property string searchTerms: ""
     property int inAnimDur: 250