~mmcg069/totallywired/trunk

« back to all changes in this revision

Viewing changes to totallywired/qml/Widgets/VolumeController.qml

  • Committer: Matthew McGowan
  • Date: 2013-04-21 12:38:42 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20130421123842-ou1a78mypf7wb708
tweaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
                    Behavior on height { NumberAnimation {duration: 80} }
99
99
                }
 
100
 
 
101
                Text {
 
102
                    text: "<small>%1%</small>".arg(Math.ceil(Player.volume * 100))
 
103
                    color: Qt.rgba(1,1,1,0.55)
 
104
                    anchors.horizontalCenter: parent.horizontalCenter
 
105
                    anchors.verticalCenter: parent.verticalCenter
 
106
                }
100
107
            }
101
108
        }
102
109
 
108
115
            source: {
109
116
                if (Player.volume <= 0.0) {
110
117
                    return "../../../data/art/faenza/small/audio-volume-muted.png"
111
 
                } else if (Player.volume <= 0.333) {
 
118
                } else if (Player.volume <= 0.4) {
112
119
                    return "../../../data/art/faenza/small/audio-volume-low.png"
113
 
                } else if (Player.volume <= 0.666) {
 
120
                } else if (Player.volume <= 0.8) {
114
121
                    return "../../../data/art/faenza/small/audio-volume-medium.png"
115
122
                } else {
116
123
                    return "../../../data/art/faenza/small/audio-volume-high.png"