From 0f33aee1af41f88c2ded6a7f6a6eebcc922b286c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Feb 2020 08:17:54 -0800 Subject: mobile/settings: correctly set label background The TemplateLabel comes with a set background color which creates a very odd effect and makes the text generally unreadable in the color swatches. Fix this by matching the color of the parent rectangle. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/Settings.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 294957c01..8df9e6bf9 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -167,6 +167,7 @@ TemplatePage { TemplateLabel { text: qsTr("background") color: "black" + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -179,6 +180,7 @@ TemplatePage { TemplateLabel { text: qsTr("text") color: subsurfaceTheme.textColor + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -195,6 +197,7 @@ TemplatePage { TemplateLabel { text: qsTr("primary") color: "black" + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -209,6 +212,7 @@ TemplatePage { TemplateLabel { text: qsTr("text") color: subsurfaceTheme.primaryTextColor + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -225,6 +229,7 @@ TemplatePage { TemplateLabel { text: qsTr("darker primary") color: "black" + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -239,6 +244,7 @@ TemplatePage { TemplateLabel { text: qsTr("text") color: subsurfaceTheme.darkerPrimaryTextColor + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -255,6 +261,7 @@ TemplatePage { TemplateLabel { text: qsTr("light primary") color: "black" + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -269,6 +276,7 @@ TemplatePage { TemplateLabel { text: qsTr("text") color: subsurfaceTheme.lightPrimaryTextColor + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -288,6 +296,7 @@ TemplatePage { TemplateLabel { text: qsTr("secondary text") color: subsurfaceTheme.secondaryTextColor + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } @@ -304,6 +313,7 @@ TemplatePage { TemplateLabel { text: qsTr("drawer") color: "black" + colorBackground: parent.color anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter } -- cgit v1.2.3-70-g09d2