Commit 40fd2041 authored by DonLakeFlyer's avatar DonLakeFlyer

Use font based sizing on short screens

parent 3ed158a6
......@@ -108,7 +108,15 @@ Item {
smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio
mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio
largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio
minTouchPixels = Math.round(minTouchMillimeters * Screen.pixelDensity)
if (isShortScreen) {
// For short screens using physical sizing leads ends up being too large. So we fall back to font
// based sizing.
minTouchPixels = defaultFontPixelHeight * 3
} else {
// For larger screens we can set min touch sizing to physical sizing
minTouchPixels = Math.round(minTouchMillimeters * Screen.pixelDensity)
}
toolbarHeight = isMobile ? minTouchPixels : defaultFontPixelHeight * 3
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment