@@ -1,5 +1,5 @@
2− * Copyright (C) 2015 Canonical, Ltd.
2+ * Copyright (C) 2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
5 * it under the terms of the GNU General Public License as published by
@@ -37,6 +37,9 @@ FocusScope {
37 if (!fullscreen) rotationAction.checked = false;
37 if (!fullscreen) rotationAction.checked = false;
40+ readonly property color backgroundColor: "#1B1B1B"
41+ readonly property color iconColor: "#F3F3E7"
40 OrientationHelper {
43 OrientationHelper {
41 id: orientationHelper
44 id: orientationHelper
42 automaticOrientation: fullscreen
45 automaticOrientation: fullscreen
@@ -88,7 +91,7 @@ FocusScope {
89 Rectangle {
92 Rectangle {
90 anchors.fill: parent
93 anchors.fill: parent
91− color: "#1B1B1B"
94+ color: root.backgroundColor
92 opacity: 0.85
95 opacity: 0.85
@@ -104,6 +107,9 @@ FocusScope {
104 fixedHeight: fullscreen
107 fixedHeight: fullscreen
105 orientation: orientationState.state == "landscape" ? Qt.LandscapeOrientation : Qt.PortraitOrientation
108 orientation: orientationState.state == "landscape" ? Qt.LandscapeOrientation : Qt.PortraitOrientation
110+ playButtonBackgroundColor: root.backgroundColor
111+ playButtonIconColor: root.iconColor
107 screenshot: {
113 screenshot: {
108 var screenshot = root.sourceData["screenshot"];
114 var screenshot = root.sourceData["screenshot"];
109 if (screenshot) return screenshot;
115 if (screenshot) return screenshot;
@@ -145,7 +151,7 @@ FocusScope {
145 top: contentLoader.top
151 top: contentLoader.top
146 left: parent.left
152 left: parent.left
147 right: parent.right
153 right: parent.right
148− topMargin: -units.gu(6)
154+ topMargin: -headerContent.height
150 height: units.gu(6)
156 height: units.gu(6)
151 visible: false
157 visible: false
@@ -157,7 +163,7 @@ FocusScope {
158 Rectangle {
164 Rectangle {
159 anchors.fill: parent
165 anchors.fill: parent
160− color: "#1B1B1B"
166+ color: root.backgroundColor
161 opacity: 0.85
167 opacity: 0.85
162 visible: headerContent.status === Loader.Ready
168 visible: headerContent.status === Loader.Ready
@@ -172,14 +178,6 @@ FocusScope {
172 rotationAction.checked = false;
178 rotationAction.checked = false;
173 root.close();
179 root.close();
@@ -199,7 +197,7 @@ FocusScope {
199 left: parent.left
197 left: parent.left
200 right: parent.right
198 right: parent.right
201 bottom: contentLoader.bottom
199 bottom: contentLoader.bottom
202− bottomMargin: -units.gu(7)
200+ bottomMargin: -footerContent.height
204 height: units.gu(7)
202 height: units.gu(7)
205 visible: false
203 visible: false
@@ -218,7 +216,7 @@ FocusScope {
219 Rectangle {
217 Rectangle {
220 anchors.fill: parent
218 anchors.fill: parent
221− color: "#1B1B1B"
219+ color: root.backgroundColor
222 opacity: 0.85
220 opacity: 0.85
223 visible: footerContent.status === Loader.Ready
221 visible: footerContent.status === Loader.Ready
@@ -231,15 +229,17 @@ FocusScope {
232 viewAction: rotationAction.enabled ? rotationAction : fullscreenAction
230 viewAction: rotationAction.enabled ? rotationAction : fullscreenAction
233 userActions: root.actions
231 userActions: root.actions
232+ iconColor: root.iconColor
233+ backgroundColor: root.backgroundColor
235 mediaPlayer.source: {
235 mediaPlayer.source: {
236 if (!root.sourceData) return "";
236 if (!root.sourceData) return "";
238− var x = root.sourceData["source"];
238+ var source = root.sourceData["source"];
239− if (x.toString().indexOf("video://") === 0) {
239+ if (source.toString().indexOf("video://") === 0) {
240− return x.toString().substr(6);
240+ return source.toString().substr(6);
242− return x;
242+ return source;
244 mediaPlayer.onPlaybackStateChanged: {
244 mediaPlayer.onPlaybackStateChanged: {
245 controlHideTimer.restart();
245 controlHideTimer.restart();