on xenial help sign in
Splash: use values from desktop file.
c86a277Florian Boucault
qml/Stages/ApplicationWindow.qml+18−1
@@ -128,7 +128,24 @@ Item {
128 active: false
128 active: false
129 anchors.fill: surfaceContainer
129 anchors.fill: surfaceContainer
130 sourceComponent: Component {
130 sourceComponent: Component {
131− Splash { name: d.name; image: d.icon }
131+ Splash {
132+ id: splash
133+ title: d.splashTitle ? d.splashTitle : d.name
134+ image: d.splashImage
135+ showHeader: d.splashShowHeader
136+
137+ Component.onCompleted: {
138+ if (d.splashColor.a == 1.0) {
139+ splash.backgroundColor = d.splashColor
140+ }
141+ if (d.splashColorHeader.a == 1.0) {
142+ splash.headerColor = d.splashColorHeader
143+ }
144+ if (d.splashColorFooter.a == 1.0) {
145+ splash.footerColor = d.splashColorFooter
146+ }
147+ }
148+ }
132 }
149 }
133 }
150 }
134
151