on xenial help sign in
Splash: use values from desktop file.
commitc86a277a602483406b39f376a437827f67308d87 authorFlorian Boucault <florian.boucault@canonical.com> dateWed 27 Aug 2014, 16:36 (12 years ago) parent1e26c5b
1 file changed+18−1
qml/Stages/ApplicationWindow.qml+18−1
qml/Stages/ApplicationWindow.qml+18−1
@@ -128,7 +128,24 @@ Item {
128128 active: false
129129 anchors.fill: surfaceContainer
130130 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+ }
132149 }
133150 }
134151