mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile: add smaller, vertically dense template label
By default single line text has too much white space around it. This smaller, denser label works well to more efficiently use screen real estate, I think. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									cdfcb7f896
								
							
						
					
					
						commit
						46d582ef0a
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								mobile-widgets/qml/TemplateLabelSmall.qml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								mobile-widgets/qml/TemplateLabelSmall.qml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| // SPDX-License-Identifier: GPL-2.0 | ||||
| import QtQuick 2.11 | ||||
| import QtQuick.Controls 2.4 | ||||
| 
 | ||||
| Label { | ||||
| 	id: myLabel | ||||
| 	color: subsurfaceTheme.textColor | ||||
| 	font.pointSize: subsurfaceTheme.smallPointSize | ||||
| 	lineHeight: 0.6 | ||||
| 	property alias colorBackground: myLabelBackground.color | ||||
| 
 | ||||
| 	background: Rectangle { | ||||
| 		id: myLabelBackground | ||||
| 		implicitWidth: myLabel.width | ||||
| 		implicitHeight: myLabel.width | ||||
| 		color: subsurfaceTheme.backgroundColor | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  | @ -5,6 +5,7 @@ | |||
| 		<file>TemplateCheckBox.qml</file> | ||||
| 		<file>TemplateComboBox.qml</file> | ||||
| 		<file>TemplateLabel.qml</file> | ||||
| 		<file>TemplateLabelSmall.qml</file> | ||||
| 		<file>TemplateLine.qml</file> | ||||
| 		<file>TemplateRadioButton.qml</file> | ||||
| 		<file>TemplatePage.qml</file> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue