|
|
|
@ -60,6 +60,9 @@ Item {
@@ -60,6 +60,9 @@ Item {
|
|
|
|
|
property bool isTinyScreen: (Screen.width / Screen.pixelDensity) < 120 // 120mm |
|
|
|
|
property bool isShortScreen: ScreenToolsController.isMobile && ((Screen.height / Screen.width) < 0.6) // Nexus 7 for example |
|
|
|
|
|
|
|
|
|
readonly property real minTouchMillimeters: 10 ///< Minimum touch size in millimeters |
|
|
|
|
property real minTouchPixels: 0 ///< Minimum touch size in pixels |
|
|
|
|
|
|
|
|
|
// The implicit heights/widths for our custom control set |
|
|
|
|
property real implicitButtonWidth: Math.round(defaultFontPixelWidth * (isMobile ? 7.0 : 5.0)) |
|
|
|
|
property real implicitButtonHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
@ -101,7 +104,8 @@ Item {
@@ -101,7 +104,8 @@ Item {
|
|
|
|
|
smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio |
|
|
|
|
mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio |
|
|
|
|
largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio |
|
|
|
|
toolbarHeight = defaultFontPixelHeight * 3 * QGroundControl.corePlugin.options.toolbarHeightMultiplier |
|
|
|
|
minTouchPixels = Math.round(minTouchMillimeters * Screen.pixelDensity) |
|
|
|
|
toolbarHeight = isMobile ? minTouchPixels : defaultFontPixelHeight * 3 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Text { |
|
|
|
|