mediaplayer: initial BT connection icon 29/9729/2
authorMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 13 Jun 2017 19:45:44 +0000 (12:45 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 15 Jun 2017 00:08:29 +0000 (00:08 +0000)
Before bluetooth connection can be selected with the BT binding
we need an initial state icon.

Change-Id: I1ff7a764a15eb06f8bd8e2cd84123d708b46cc7e
Bug-AGL: SPEC-637
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/MediaPlayer.qml

index 71bda77..fbd889c 100644 (file)
@@ -273,12 +273,13 @@ ApplicationWindow {
                         }
 
                         Item { Layout.fillWidth: true }
-//                        Image {
-//                            source: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
-//                        }
-//                        Image {
-//                            source: './images/AGL_MediaPlayer_Radio_Inactive.svg'
-//                        }
+                        ToggleButton {
+                              enabled: false
+                              checked: bluetooth.connected
+                              offImage: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
+                              onImage: './images/AGL_MediaPlayer_Bluetooth_Active.svg'
+                        }
                     }
                 }
             }