Commit fee4363c authored by Patrick José Pereira's avatar Patrick José Pereira

ScreenTools: Use an odd number to allow centralization of checkBox

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 15c376d3
......@@ -91,7 +91,8 @@ Item {
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))
// It's not possible to centralize an even number of pixels, checkBoxIndicatorSize should be an odd number to allow centralization
property real checkBoxIndicatorSize: 2 * Math.floor(defaultFontPixelHeight * (isMobile ? 1.5 : 1.0) / 2) + 1
property real radioButtonIndicatorSize: checkBoxIndicatorSize
readonly property string normalFontFamily: ScreenToolsController.normalFontFamily
......
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