| 
									
										
										
										
											2019-07-07 23:52:41 -04:00
										 |  |  | // Copyright 2019 miruka
 | 
					
						
							|  |  |  | // This file is part of harmonyqml, licensed under LGPLv3.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  | import QtQuick 2.7 | 
					
						
							| 
									
										
										
										
											2019-04-28 15:45:42 -04:00
										 |  |  | import QtQuick.Layouts 1.3 | 
					
						
							| 
									
										
										
										
											2019-04-28 15:18:36 -04:00
										 |  |  | import "../Base" | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-28 15:18:36 -04:00
										 |  |  | HRowLayout { | 
					
						
							| 
									
										
										
										
											2019-05-02 14:20:21 -04:00
										 |  |  |     property alias label: noticeLabel | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  |     property alias text: noticeLabel.text | 
					
						
							|  |  |  |     property alias color: noticeLabel.color | 
					
						
							|  |  |  |     property alias font: noticeLabel.font | 
					
						
							|  |  |  |     property alias backgroundColor: noticeLabelBackground.color | 
					
						
							|  |  |  |     property alias radius: noticeLabelBackground.radius | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-28 15:18:36 -04:00
										 |  |  |     HLabel { | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  |         id: noticeLabel | 
					
						
							|  |  |  |         horizontalAlignment: Text.AlignHCenter | 
					
						
							|  |  |  |         wrapMode: Text.Wrap | 
					
						
							|  |  |  |         padding: 3 | 
					
						
							|  |  |  |         leftPadding: 10 | 
					
						
							|  |  |  |         rightPadding: 10 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         Layout.margins: 10 | 
					
						
							|  |  |  |         Layout.alignment: Qt.AlignCenter | 
					
						
							| 
									
										
										
										
											2019-05-02 14:20:21 -04:00
										 |  |  |         Layout.maximumWidth: | 
					
						
							|  |  |  |             parent.width - Layout.leftMargin - Layout.rightMargin | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         opacity: width > Layout.leftMargin + Layout.rightMargin ? 1 : 0 | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |         background: Rectangle { | 
					
						
							|  |  |  |             id: noticeLabelBackground | 
					
						
							| 
									
										
										
										
											2019-07-06 17:50:55 -04:00
										 |  |  |             color: theme.box.background | 
					
						
							|  |  |  |             radius: theme.box.radius | 
					
						
							| 
									
										
										
										
											2019-04-28 11:01:38 -04:00
										 |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |