mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML-UI: gridUnit is now dpi-corrected
Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									5195fcf919
								
							
						
					
					
						commit
						ac6b267d40
					
				
					 2 changed files with 8 additions and 3 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| import QtQuick 2.3 | ||||
| 
 | ||||
| QtObject { | ||||
| 	property color accentColor: "#114d6f" | ||||
| 	property color accentColor: "#2d5b9a" | ||||
| 	property color accentTextColor: "#ececec" | ||||
| 	property color textColor: "#333333" | ||||
| 	property color backgroundColor: "#ececec" | ||||
|  |  | |||
|  | @ -1,6 +1,11 @@ | |||
| import QtQuick 2.3 | ||||
| 
 | ||||
| QtObject { | ||||
| 	property int gridUnit: 24 | ||||
| Item { | ||||
| 	property int gridUnit: unitsM.paintedHeight | ||||
| 	property int spacing: gridUnit / 3 | ||||
| 
 | ||||
| 	Text { | ||||
| 		id: unitsM | ||||
| 		text: "M" | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue