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 commitcommatwo_master94d5ed789e
. * 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> old-commit-hash:55926e762a
parent
513abe73c1
commit
fe30561f77
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