| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2017-10-29 08:44:06 +01:00
										 |  |  | import QtQuick 2.6 | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | import QtQuick.Controls 2.2 | 
					
						
							| 
									
										
										
										
											2018-09-26 11:46:33 +02:00
										 |  |  | import org.subsurfacedivelog.mobile 1.0 | 
					
						
							| 
									
										
										
										
											2018-09-27 22:09:26 +02:00
										 |  |  | import org.kde.kirigami 2.4 as Kirigami | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | CheckBox { | 
					
						
							|  |  |  | 	id: root | 
					
						
							|  |  |  | 	indicator: Rectangle { | 
					
						
							| 
									
										
										
										
											2018-09-26 11:46:33 +02:00
										 |  |  | 		implicitWidth: 20 * PrefDisplay.mobile_scale | 
					
						
							|  |  |  | 		implicitHeight: 20 * PrefDisplay.mobile_scale | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | 		x: root.leftPadding | 
					
						
							|  |  |  | 		y: parent.height / 2 - height / 2 | 
					
						
							|  |  |  | 		radius: 4 | 
					
						
							|  |  |  | 		border.color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor | 
					
						
							| 
									
										
										
										
											2018-03-19 19:53:02 +01:00
										 |  |  | 		border.width: 2 | 
					
						
							|  |  |  | 		color: subsurfaceTheme.backgroundColor | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		Rectangle { | 
					
						
							| 
									
										
										
										
											2018-09-26 11:46:33 +02:00
										 |  |  | 			width: 12 * PrefDisplay.mobile_scale | 
					
						
							|  |  |  | 			height: 12 * PrefDisplay.mobile_scale | 
					
						
							|  |  |  | 			x: (parent.width - width) / 2 | 
					
						
							|  |  |  | 			y: (parent.height - height) / 2 | 
					
						
							| 
									
										
										
										
											2018-03-19 19:53:02 +01:00
										 |  |  | 			radius: 3 | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | 			color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor | 
					
						
							| 
									
										
										
										
											2018-03-19 19:53:02 +01:00
										 |  |  | 			visible: root.checked | 
					
						
							| 
									
										
										
										
											2017-07-24 20:19:34 +02:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } |