~nik90/ubuntu-clock-app/prep-new-design-part1

« back to all changes in this revision

Viewing changes to stopwatch/StopwatchFace.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-02-10 13:51:21 UTC
  • Revision ID: krnekhelesh@gmail.com-20140210135121-je1wm2c19wrw2vmf
Updated image assets. Removed rectangular glow from the timer. Moved the visual image hints to the face files

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    // Retrieves the status of the stopwatch timer
41
41
    property bool timerStatus: stopwatchUIUpdate.running
42
42
 
 
43
    // Property to start the stopwatch hint animation
 
44
    property alias stopwatchAnimationHint: _stopwatchAnimationHint
 
45
 
43
46
    innerLabel.font.pixelSize: hours > 0 ? units.dp(28) : units.dp(41)
44
47
 
45
48
    function reset() {
78
81
        id: blipFist
79
82
    }
80
83
 
 
84
    // Image to display a bar over the stopwatch to differentiate it from other tabs
 
85
    Image {
 
86
        id: _stopwatchHintImage
 
87
 
 
88
        smooth: true
 
89
        width: units.gu(40)
 
90
        anchors.centerIn: parent
 
91
        fillMode: Image.PreserveAspectFit
 
92
        source: Qt.resolvedUrl("../images/stopwatch_black.png")
 
93
 
 
94
        SequentialAnimation on anchors.verticalCenterOffset {
 
95
            id: _stopwatchAnimationHint
 
96
            UbuntuNumberAnimation { from: units.gu(0); to: units.gu(2) }
 
97
            UbuntuNumberAnimation { from: units.gu(2); to: units.gu(0) }
 
98
        }
 
99
    }
 
100
 
81
101
    Repeater {
82
102
        id:stopwatchMarkers
83
103