@@ -147,10 +147,6 @@ Item {
147147 }
148148 }
149149
150− property color modelBackgroundColor: "transparent"
151− property color modelHeaderColor: "transparent"
152− property color modelFooterColor: "transparent"
153−
154150 StateGroup {
155151 id: appSurfaceState
156152 states: [
@@ -159,19 +155,19 @@ Item {
159155 when: !surfaceContainer.appHasCreatedASurface
160156 StateChangeScript {
161157 script: {
162− var properties = { "title": model.name,
163− "image": "",
164− "showHeader": true
158+ var properties = { "title": model.splashTitle ? model.splashTitle : model.name,
159+ "image": model.splashImage,
160+ "showHeader": model.splashShowHeader
165161 };
166162
167− if (root.modelBackgroundColor.a == 1) {
168− properties["backgroundColor"] = root.modelBackgroundColor;
163+ if (model.splashColor.a == 1) {
164+ properties["backgroundColor"] = model.splashColor;
169165 }
170− if (root.modelHeaderColor.a == 1) {
171− properties["headerColor"] = root.modelHeaderColor;
166+ if (model.splashColorHeader.a == 1) {
167+ properties["headerColor"] = model.splashColorHeader;
172168 }
173− if (root.modelFooterColor.a == 1) {
174− properties["footerColor"] = root.modelFooterColor;
169+ if (model.splashColorFooter.a == 1) {
170+ properties["footerColor"] = model.splashColorFooter;
175171 }
176172 splashLoader.setSource("Splash.qml", properties);
177173 }