|
|
|
@ -64,13 +64,16 @@ Item {
@@ -64,13 +64,16 @@ Item {
|
|
|
|
|
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)) |
|
|
|
|
property real implicitCheckBoxWidth: Math.round(defaultFontPixelHeight * (isMobile ? 1.5 : 1.0)) |
|
|
|
|
property real implicitTextFieldHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
|
property real implicitComboBoxHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
|
property real implicitComboBoxWidth: Math.round(defaultFontPixelWidth * (isMobile ? 7.0 : 5.0)) |
|
|
|
|
property real implicitSliderHeight: isMobile ? Math.max(defaultFontPixelHeight, minTouchPixels) : defaultFontPixelHeight |
|
|
|
|
property real implicitButtonWidth: Math.round(defaultFontPixelWidth * (isMobile ? 7.0 : 5.0)) |
|
|
|
|
property real implicitButtonHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
|
property real implicitCheckBoxHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.0)) |
|
|
|
|
property real implicitRadioButtonHeight: implicitCheckBoxHeight |
|
|
|
|
property real implicitTextFieldHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
|
property real implicitComboBoxHeight: Math.round(defaultFontPixelHeight * (isMobile ? 2.0 : 1.6)) |
|
|
|
|
property real implicitComboBoxWidth: Math.round(defaultFontPixelWidth * (isMobile ? 7.0 : 5.0)) |
|
|
|
|
property real implicitSliderHeight: isMobile ? Math.max(defaultFontPixelHeight, minTouchPixels) : defaultFontPixelHeight |
|
|
|
|
property real checkBoxIndicatorSize: Math.round(defaultFontPixelHeight * (isMobile ? 1.5 : 1.0)) |
|
|
|
|
property real radioButtonIndicatorSize: checkBoxIndicatorSize |
|
|
|
|
|
|
|
|
|
readonly property string normalFontFamily: "opensans" |
|
|
|
|
readonly property string demiboldFontFamily: "opensans-demibold" |
|
|
|
|