mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	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 <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f532aae2e9
								
							
						
					
					
						commit
						0f33aee1af
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -167,6 +167,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("background")
 | 
											text: qsTr("background")
 | 
				
			||||||
						color: "black"
 | 
											color: "black"
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -179,6 +180,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("text")
 | 
											text: qsTr("text")
 | 
				
			||||||
						color: subsurfaceTheme.textColor
 | 
											color: subsurfaceTheme.textColor
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -195,6 +197,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("primary")
 | 
											text: qsTr("primary")
 | 
				
			||||||
						color: "black"
 | 
											color: "black"
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -209,6 +212,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("text")
 | 
											text: qsTr("text")
 | 
				
			||||||
						color: subsurfaceTheme.primaryTextColor
 | 
											color: subsurfaceTheme.primaryTextColor
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -225,6 +229,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("darker primary")
 | 
											text: qsTr("darker primary")
 | 
				
			||||||
						color: "black"
 | 
											color: "black"
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -239,6 +244,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("text")
 | 
											text: qsTr("text")
 | 
				
			||||||
						color: subsurfaceTheme.darkerPrimaryTextColor
 | 
											color: subsurfaceTheme.darkerPrimaryTextColor
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -255,6 +261,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("light primary")
 | 
											text: qsTr("light primary")
 | 
				
			||||||
						color: "black"
 | 
											color: "black"
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -269,6 +276,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("text")
 | 
											text: qsTr("text")
 | 
				
			||||||
						color: subsurfaceTheme.lightPrimaryTextColor
 | 
											color: subsurfaceTheme.lightPrimaryTextColor
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -288,6 +296,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("secondary text")
 | 
											text: qsTr("secondary text")
 | 
				
			||||||
						color: subsurfaceTheme.secondaryTextColor
 | 
											color: subsurfaceTheme.secondaryTextColor
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					@ -304,6 +313,7 @@ TemplatePage {
 | 
				
			||||||
					TemplateLabel {
 | 
										TemplateLabel {
 | 
				
			||||||
						text: qsTr("drawer")
 | 
											text: qsTr("drawer")
 | 
				
			||||||
						color: "black"
 | 
											color: "black"
 | 
				
			||||||
 | 
											colorBackground: parent.color
 | 
				
			||||||
						anchors.horizontalCenter: parent.horizontalCenter
 | 
											anchors.horizontalCenter: parent.horizontalCenter
 | 
				
			||||||
						anchors.verticalCenter: parent.verticalCenter
 | 
											anchors.verticalCenter: parent.verticalCenter
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue