@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2015 Canonical, Ltd.
2+ * Copyright (C) 2016 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -37,6 +37,9 @@ FocusScope {
3737 if (!fullscreen) rotationAction.checked = false;
3838 }
3939
40+ readonly property color backgroundColor: "#1B1B1B"
41+ readonly property color iconColor: "#F3F3E7"
42+
4043 OrientationHelper {
4144 id: orientationHelper
4245 automaticOrientation: fullscreen
@@ -88,7 +91,7 @@ FocusScope {
8891
8992 Rectangle {
9093 anchors.fill: parent
91− color: "#1B1B1B"
94+ color: root.backgroundColor
9295 opacity: 0.85
9396 }
9497
@@ -104,6 +107,9 @@ FocusScope {
104107 fixedHeight: fullscreen
105108 orientation: orientationState.state == "landscape" ? Qt.LandscapeOrientation : Qt.PortraitOrientation
106109
110+ playButtonBackgroundColor: root.backgroundColor
111+ playButtonIconColor: root.iconColor
112+
107113 screenshot: {
108114 var screenshot = root.sourceData["screenshot"];
109115 if (screenshot) return screenshot;
@@ -145,7 +151,7 @@ FocusScope {
145151 top: contentLoader.top
146152 left: parent.left
147153 right: parent.right
148− topMargin: -units.gu(6)
154+ topMargin: -headerContent.height
149155 }
150156 height: units.gu(6)
151157 visible: false
@@ -157,7 +163,7 @@ FocusScope {
157163
158164 Rectangle {
159165 anchors.fill: parent
160− color: "#1B1B1B"
166+ color: root.backgroundColor
161167 opacity: 0.85
162168 visible: headerContent.status === Loader.Ready
163169 }
@@ -172,14 +178,6 @@ FocusScope {
172178 rotationAction.checked = false;
173179 root.close();
174180 }
175−
176− component: {
177− switch (context) {
178− case "video":
179− break;
180− }
181− return undefined;
182− }
183181 }
184182 }
185183
@@ -199,7 +197,7 @@ FocusScope {
199197 left: parent.left
200198 right: parent.right
201199 bottom: contentLoader.bottom
202− bottomMargin: -units.gu(7)
200+ bottomMargin: -footerContent.height
203201 }
204202 height: units.gu(7)
205203 visible: false
@@ -218,7 +216,7 @@ FocusScope {
218216
219217 Rectangle {
220218 anchors.fill: parent
221− color: "#1B1B1B"
219+ color: root.backgroundColor
222220 opacity: 0.85
223221 visible: footerContent.status === Loader.Ready
224222 }
@@ -231,15 +229,17 @@ FocusScope {
231229
232230 viewAction: rotationAction.enabled ? rotationAction : fullscreenAction
233231 userActions: root.actions
232+ iconColor: root.iconColor
233+ backgroundColor: root.backgroundColor
234234
235235 mediaPlayer.source: {
236236 if (!root.sourceData) return "";
237237
238− var x = root.sourceData["source"];
239− if (x.toString().indexOf("video://") === 0) {
240− return x.toString().substr(6);
238+ var source = root.sourceData["source"];
239+ if (source.toString().indexOf("video://") === 0) {
240+ return source.toString().substr(6);
241241 }
242− return x;
242+ return source;
243243 }
244244 mediaPlayer.onPlaybackStateChanged: {
245245 controlHideTimer.restart();