| 
									
										
										
										
											2019-02-11 18:56:55 +01:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							|  |  |  | import QtQuick 2.11 | 
					
						
							|  |  |  | import QtQuick.Controls 2.4 | 
					
						
							|  |  |  | import QtQuick.Layouts 1.11 | 
					
						
							| 
									
										
										
										
											2020-12-19 14:57:19 -08:00
										 |  |  | import org.kde.kirigami 2.4 as Kirigami | 
					
						
							| 
									
										
										
										
											2019-02-11 18:56:55 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | RadioButton { | 
					
						
							| 
									
										
										
										
											2020-12-19 14:57:19 -08:00
										 |  |  | 	id: rb | 
					
						
							| 
									
										
										
										
											2019-02-11 18:56:55 +01:00
										 |  |  | 	Layout.fillWidth: true | 
					
						
							| 
									
										
										
										
											2020-12-19 14:57:19 -08:00
										 |  |  | 	indicator: Rectangle { | 
					
						
							|  |  |  | 		implicitWidth: Kirigami.Units.gridUnit | 
					
						
							|  |  |  | 		implicitHeight: Kirigami.Units.gridUnit | 
					
						
							|  |  |  | 		x: rb.leftPadding | 
					
						
							|  |  |  | 		y: parent.height / 2 - height / 2 | 
					
						
							|  |  |  | 		radius: width / 2 | 
					
						
							|  |  |  | 		color: subsurfaceTheme.backgroundColor | 
					
						
							|  |  |  | 		border.color: subsurfaceTheme.textColor | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		Rectangle { | 
					
						
							|  |  |  | 			width: parent.width / 2 | 
					
						
							|  |  |  | 			height: width | 
					
						
							|  |  |  | 			x: width / 2 | 
					
						
							|  |  |  | 			y: width / 2 | 
					
						
							|  |  |  | 			radius: width / 2 | 
					
						
							|  |  |  | 			color: subsurfaceTheme.textColor | 
					
						
							|  |  |  | 			visible: rb.checked | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	contentItem: Text { | 
					
						
							|  |  |  | 		color: subsurfaceTheme.textColor | 
					
						
							|  |  |  | 		font.pointSize: subsurfaceTheme.regularPointSize | 
					
						
							|  |  |  | 		text: rb.text | 
					
						
							|  |  |  | 		leftPadding: rb.indicator.width + rb.spacing | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-02-11 18:56:55 +01:00
										 |  |  | } |