nice scrolling

pull/20439/head
iejMac 4 years ago
parent f76a154e54
commit bb469e511a
  1. 13
      selfdrive/ui/qt/offroad/terms.qml

@ -11,8 +11,18 @@ Item {
height: 1080 height: 1080
} }
Flickable {
id: flickArea
anchors.fill: parent
contentHeight: helpText.height
contentWidth: helpText.width
flickableDirection: Flickable.VerticalFlick
clip: true
Text { Text {
// HTML like markup can also be used // HTML like markup can also be used
id: helpText
width: 1920
text: '<!DOCTYPE html> text: '<!DOCTYPE html>
<head> <head>
@ -62,9 +72,10 @@ Item {
// This could also be written font { pointSize: 14 }. Both syntaxes are valid. // This could also be written font { pointSize: 14 }. Both syntaxes are valid.
font.pointSize: 24 font.pointSize: 24
// StyledText format supports fewer tags, but is more efficient than RichText
textFormat: Text.RichText textFormat: Text.RichText
color: "white" color: "white"
wrapMode: Text.Wrap
}
} }
} }

Loading…
Cancel
Save