Commit 3c207e62 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

preliminary support for thumbnail custom icon and control buttons

add support for using windows specific features:
* media control buttons in the thumbnail of the taskbar entry
* cover image as a thumbnail of the taskbar entry
parent 8b021b10
......@@ -26,6 +26,7 @@ import QtQml.Models 2.1
import org.mgallien.QmlExtension 1.0
import QtMultimedia 5.6
import Qt.labs.settings 1.0
import QtWinExtras 1.0
ApplicationWindow {
id: mainWindow
......@@ -53,6 +54,10 @@ ApplicationWindow {
colorGroup: SystemPalette.Active
}
Theme {
id: elisaTheme
}
Settings {
id: persistentSettings
......@@ -188,6 +193,28 @@ ApplicationWindow {
isValidRole: MediaPlayList.IsValidRole
}
ThumbnailToolBar {
iconicThumbnailSource: (myHeaderBarManager.image ? myHeaderBarManager.image : Qt.resolvedUrl(elisaTheme.albumCover))
ThumbnailToolButton {
iconSource: Qt.resolvedUrl(elisaTheme.skipBackwardIcon)
onClicked: playListControlerItem.skipPreviousTrack()
enabled: myPlayControlManager.skipBackwardControlEnabled
}
ThumbnailToolButton {
iconSource: (myPlayControlManager.musicPlaying ? Qt.resolvedUrl(elisaTheme.pauseIcon) : Qt.resolvedUrl(elisaTheme.playIcon))
onClicked: manageAudioPlayer.playPause()
enabled: myPlayControlManager.playControlEnabled
}
ThumbnailToolButton {
iconSource: Qt.resolvedUrl(elisaTheme.skipForwardIcon)
onClicked: playListControlerItem.skipNextTrack()
enabled: myPlayControlManager.skipForwardControlEnabled
}
}
ManageAudioPlayer {
id: manageAudioPlayer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment