QML terms (#20439)
	
		
	
				
					
				
			* initial_commit * rich text + color * nice scrolling * margin * print on scroll + some margins * print on scroll + some margins * working, needs a lot of improvements * should be done * initial_commit * rich text + color * nice scrolling * margin * print on scroll + some margins * print on scroll + some margins * working, needs a lot of improvements * should be done * update tests * Revert "update tests" This reverts commit 94d5ed789eb79bedc9544fc27b4d14c0acc44adf. * cleanup * QuickView -> QuickWidget * tuned scrolling * cherry on top * screen size scaling * load from html * fixing tabs * signal fix * TABS * mistake * rename * camel case * transparent background * naming + point->pixel Size * style * util::read_file * adjusting font size Co-authored-by: Comma Device <device@comma.ai> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>pull/214/head
							parent
							
								
									936d9da567
								
							
						
					
					
						commit
						55926e762a
					
				
				 4 changed files with 92 additions and 36 deletions
			
			
		| @ -0,0 +1,33 @@ | ||||
| import QtQuick 2.0 | ||||
| 
 | ||||
| Item { | ||||
|   id: root | ||||
|   signal qmlSignal() | ||||
| 
 | ||||
|   Flickable { | ||||
|     id: flickArea | ||||
|     objectName: "flickArea" | ||||
|     anchors.fill: parent | ||||
|     contentHeight: helpText.height | ||||
|     contentWidth: helpText.width | ||||
|     flickableDirection: Flickable.VerticalFlick | ||||
|     flickDeceleration: 7500.0 | ||||
|     maximumFlickVelocity: 10000.0 | ||||
|     pixelAligned: true | ||||
| 
 | ||||
|     onAtYEndChanged: root.qmlSignal() | ||||
| 
 | ||||
|     Text { | ||||
|       id: helpText | ||||
|       width: flickArea.width | ||||
|       font.pixelSize: font_size | ||||
|       textFormat: Text.RichText | ||||
|       color: "white" | ||||
|       wrapMode: Text.Wrap | ||||
| 
 | ||||
|       text: text_view | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
					Loading…
					
					
				
		Reference in new issue