mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'wear-os-gps': small fix for iOS
This commit is contained in:
parent
aa5222c55f
commit
1cf838c35c
1 changed files with 6 additions and 3 deletions
|
|
@ -24,11 +24,14 @@ Rectangle {
|
||||||
|
|
||||||
delegate: Text {
|
delegate: Text {
|
||||||
text: modelData
|
text: modelData
|
||||||
font.family: "Courier"
|
font.pixelSize: 22
|
||||||
font.pixelSize: 24
|
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
opacity: 0.4 + Math.max(0, 1 - Math.abs(Tumbler.displacement)) * 0.6
|
opacity: 0.4 + Math.max(0, 1 - Math.abs(Tumbler.displacement)) * 0.6
|
||||||
Component.onCompleted: { maxSpeed.width = paintedWidth }
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
maxSpeed.width = paintedWidth * 1.1 // 1.1 for iOS font (not fixed width)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onCurrentIndexChanged: { value = model[currentIndex] }
|
onCurrentIndexChanged: { value = model[currentIndex] }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue