mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile/UI: repaint the combobox indicator on color change
It seems that now all elements are correctly re-colored if the user changes theme. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									d9661a7be8
								
							
						
					
					
						commit
						bae1529fb7
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -29,12 +29,13 @@ ComboBox {
 | 
			
		|||
		width: Kirigami.Units.gridUnit
 | 
			
		||||
		height: width * 0.66
 | 
			
		||||
		contextType: "2d"
 | 
			
		||||
 | 
			
		||||
		Connections {
 | 
			
		||||
			target: cb
 | 
			
		||||
			function onPressedChanged() { canvas.requestPaint(); }
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// if the theme changes, we need to force a repaint of the indicator
 | 
			
		||||
		property color sttc: subsurfaceTheme.textColor
 | 
			
		||||
		onSttcChanged: { requestPaint() }
 | 
			
		||||
		onPaint: {
 | 
			
		||||
			context.reset();
 | 
			
		||||
			context.moveTo(0, 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue