From 008a8f0414c5bf47330ceefdb2994fa3c49e8067 Mon Sep 17 00:00:00 2001 From: joelynch Date: Tue, 14 Dec 2021 10:09:08 +1100 Subject: [PATCH] Use conditionals to change the font size on MacOS --- resources/Constants/Constants.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/Constants/Constants.qml b/resources/Constants/Constants.qml index 5b6fd92b2..b4f3ccd2e 100644 --- a/resources/Constants/Constants.qml +++ b/resources/Constants/Constants.qml @@ -48,10 +48,10 @@ QtObject { readonly property string fontFamily: "Roboto Condensed" property FontLoader robotoCondensedLightFont readonly property string lightFontFamily: robotoCondensedLightFont.name - readonly property real xSmallPointSize: 6 - readonly property real smallPointSize: 7 - readonly property real mediumPointSize: 8 - readonly property real largePointSize: 9 + readonly property real xSmallPointSize: Qt.platform.os == "osx" ? 8 : 6 + readonly property real smallPointSize: Qt.platform.os == "osx" ? 9 : 7 + readonly property real mediumPointSize: Qt.platform.os == "osx" ? 10 : 8 + readonly property real largePointSize: Qt.platform.os == "osx" ? 11 : 9 readonly property real xlPointSize: 12 readonly property real xxlPointSize: 14 readonly property bool debugMode: false