Mobile QML UI: fix background colors

For some reason, after the update of the main.qml to version 2.2,
all Kirigami Pages and scrollablePages show up plain white.

So now, set a proper background for these pages.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-02-16 11:17:20 +01:00
parent 01188905ae
commit 65d80d3cd0
8 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,7 @@ Kirigami.ScrollablePage {
id: aboutPage id: aboutPage
property int pageWidth: aboutPage.width - aboutPage.leftPadding - aboutPage.rightPadding property int pageWidth: aboutPage.width - aboutPage.leftPadding - aboutPage.rightPadding
title: qsTr("About Subsurface-mobile") title: qsTr("About Subsurface-mobile")
background: Rectangle { color: subsurfaceTheme.backgroundColor }
ColumnLayout { ColumnLayout {
spacing: Kirigami.Units.largeSpacing spacing: Kirigami.Units.largeSpacing

View file

@ -49,6 +49,7 @@ Kirigami.Page {
topPadding: Kirigami.Units.gridUnit * 2 // make room for the title bar topPadding: Kirigami.Units.gridUnit * 2 // make room for the title bar
rightPadding: 0 rightPadding: 0
bottomPadding: 0 bottomPadding: 0
background: Rectangle { color: subsurfaceTheme.backgroundColor }
states: [ states: [
State { State {

View file

@ -14,6 +14,7 @@ Kirigami.Page {
height: parent.height height: parent.height
Layout.fillWidth: true; Layout.fillWidth: true;
title: qsTr("Dive Computer") title: qsTr("Dive Computer")
background: Rectangle { color: subsurfaceTheme.backgroundColor }
property alias dcImportModel: importModel property alias dcImportModel: importModel
property bool divesDownloaded: false property bool divesDownloaded: false

View file

@ -12,6 +12,7 @@ Kirigami.ScrollablePage {
id: gpsListWindow id: gpsListWindow
objectName: "gpsList" objectName: "gpsList"
title: qsTr("GPS Fixes") title: qsTr("GPS Fixes")
background: Rectangle { color: subsurfaceTheme.backgroundColor }
Component { Component {
id: gpsDelegate id: gpsDelegate

View file

@ -14,6 +14,7 @@ Kirigami.ScrollablePage {
anchors.margins: Kirigami.Units.gridUnit / 2 anchors.margins: Kirigami.Units.gridUnit / 2
objectName: "Log" objectName: "Log"
title: qsTr("Application Log") title: qsTr("Application Log")
background: Rectangle { color: subsurfaceTheme.backgroundColor }
ListView { ListView {
anchors.fill: parent anchors.fill: parent

View file

@ -11,6 +11,7 @@ Kirigami.ScrollablePage {
objectName: "Settings" objectName: "Settings"
id: settingsPage id: settingsPage
title: qsTr("Settings") title: qsTr("Settings")
background: Rectangle { color: subsurfaceTheme.backgroundColor }
property real gridWidth: settingsPage.width - Kirigami.Units.gridUnit property real gridWidth: settingsPage.width - Kirigami.Units.gridUnit
property var describe: [qsTr("Undefined"), property var describe: [qsTr("Undefined"),

View file

@ -8,6 +8,7 @@ import org.subsurfacedivelog.mobile 1.0
Kirigami.ScrollablePage { Kirigami.ScrollablePage {
id: startpage id: startpage
background: Rectangle { color: subsurfaceTheme.backgroundColor }
function saveCredentials() { cloudCredentials.saveCredentials() } function saveCredentials() { cloudCredentials.saveCredentials() }

View file

@ -8,6 +8,7 @@ import org.kde.kirigami 2.2 as Kirigami
Kirigami.Page { Kirigami.Page {
title: "Theme Information" title: "Theme Information"
background: Rectangle { color: subsurfaceTheme.backgroundColor }
GridLayout { GridLayout {
id: themetest id: themetest