Skip to content

Commit

Permalink
Report status (paused/playing/buffering) in header text
Browse files Browse the repository at this point in the history
This makes the header text do something, when application status changes.
Also, knowing when the application is buffering is actually useful.
  • Loading branch information
aperezdc committed Dec 27, 2011
1 parent dddd6c2 commit 14782e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qml/MainPage.qml
Expand Up @@ -19,13 +19,15 @@ Page {
}

Text {
text: 'Now Playing'
color: theme.inverted ? UIConstants.COLOR_INVERTED_FOREGROUND : UIConstants.COLOR_FOREGROUND
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: UIConstants.DEFAULT_MARGIN
font.pixelSize: UIConstants.FONT_XLARGE
font.family: UIConstants.FONT_FAMILY
text: controller.buffering ? 'Buffering...'
: (controller.playing ? 'Playing'
: 'Paused')
}

Image {
Expand Down

0 comments on commit 14782e4

Please sign in to comment.