@@ -29,7 +29,7 @@ Item {
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 url icon
31 property url icon
32− property alias title: header.title
32+ property alias title: headerConfig.title
33 property alias showHeader: header.visible
33 property alias showHeader: header.visible
35 Ambiance.Palette {
35 Ambiance.Palette {
@@ -75,27 +75,23 @@ Item {
75 style: Component { MainViewStyle {theme: styledItem.fakeTheme} }
75 style: Component { MainViewStyle {theme: styledItem.fakeTheme} }
78− StyledItem {
78+ Ambiance.PageHeadStyle {
79 id: header
79 id: header
81− left: parent.left
81+ left: parent.left;
82 right: parent.right
82 right: parent.right
84− visible: false
84+ property var styledItem: header
85−
85+ // FIXME Keep in sync with SDK's MainView.qml values of these two colors
86− // mimic API of toolkit's AppHeader component required by PageHeadStyle
86+ property color dividerColor: Qt.darker(styledItem.backgroundColor, 1.1)
87− property Item pageStack
87+ property color panelColor: Qt.lighter(styledItem.backgroundColor, 1.1)
88− property Item contents
88+ panelForegroundColor: config.foregroundColor
89− property string title
89+ config: PageHeadConfiguration {
90− property var tabsModel
90+ id: headerConfig
91− property var config: QtObject {
92− property color foregroundColor: styledItem.fakeTheme.palette.selected.backgroundText
91+ foregroundColor: styledItem.fakeTheme.palette.selected.backgroundText
93− property var sections: QtObject {}
96− // FIXME: should instead use future toolkit API:
94+ property var contents: null
97− // style: theme.createStyleComponent("PageHeadStyle.qml", header)
98− style: Component { PageHeadStyle {theme: styledItem.fakeTheme} }