@@ -28,6 +28,7 @@ Item {
28 property color headerColor: d.undefinedColor
28 property color headerColor: d.undefinedColor
29 property color footerColor: d.undefinedColor
29 property color footerColor: d.undefinedColor
30 property alias imageSource: overlaidImage.source
30 property alias imageSource: overlaidImage.source
31 property alias title: header.title
32 property alias title: header.title
32 property alias showHeader: header.visible
33 property alias showHeader: header.visible
@@ -42,7 +43,10 @@ Item {
42 // This is also the default value of a color property in QML.
43 // This is also the default value of a color property in QML.
43 readonly property color undefinedColor: "#00000000"
44 readonly property color undefinedColor: "#00000000"
45− readonly property color defaultBackgroundColor: ambiancePalette.normal.background
46+ readonly property color defaultBackgroundColor: header.visible ? ambiancePalette.normal.background : "black"
48+ // Splash screen that shows the application icon and splashTitle
49+ readonly property bool showIcon: overlaidImage.status == Image.Null && !root.showHeader
48 StyledItem {
52 StyledItem {
@@ -77,6 +81,7 @@ Item {
77 left: parent.left
81 left: parent.left
78 right: parent.right
82 right: parent.right
81 // mimic API of toolkit's AppHeader component required by PageHeadStyle
86 // mimic API of toolkit's AppHeader component required by PageHeadStyle
82 property Item pageStack
87 property Item pageStack
@@ -105,10 +110,48 @@ Item {
105 cache: false
110 cache: false
115+ anchors.horizontalCenter: parent.horizontalCenter
116+ anchors.verticalCenter: parent.verticalCenter
117+ anchors.verticalCenterOffset: -units.gu(4)
119+ height: units.gu(7.5)
124+ borderSource: "none"
128+ sourceSize.width: iconShape.width
129+ sourceSize.height: iconShape.height
130+ source: d.showIcon ? root.icon : ""
131+ fillMode: Image.PreserveAspectCrop
137+ anchors.horizontalCenter: parent.horizontalCenter
138+ anchors.top: iconShape.bottom
139+ anchors.topMargin: units.gu(2)
142+ color: styledItem.theme.palette.selected.backgroundText
108 ActivityIndicator {
146 ActivityIndicator {
109− anchors.centerIn: parent
147+ anchors.centerIn: header.visible ? parent : undefined
110 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
148 anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
150+ anchors.horizontalCenter: header.visible ? undefined : parent.horizontalCenter
151+ anchors.bottom: header.visible ? undefined : parent.bottom
152+ anchors.bottomMargin: header.visible ? 0 : units.gu(12)
111− running: overlaidImage.status == Image.Error || overlaidImage.status == Image.Null
154+ running: true//overlaidImage.status == Image.Error || overlaidImage.status == Image.Null
114 MouseArea {
157 MouseArea {