Index: sources/gui/qml/globals/Variables.qml =================================================================== diff -u -r7e503c5459ec77a2816d6c7789da9b206cedbe8a -r86e9dfbff50cb7e16fd94c16c1c818cef3b47eac --- sources/gui/qml/globals/Variables.qml (.../Variables.qml) (revision 7e503c5459ec77a2816d6c7789da9b206cedbe8a) +++ sources/gui/qml/globals/Variables.qml (.../Variables.qml) (revision 86e9dfbff50cb7e16fd94c16c1c818cef3b47eac) @@ -32,6 +32,7 @@ readonly property int dialogIconWidth : 50 readonly property int dialogIconHorizontalOffset : 25 readonly property int headerHeight : 100 + readonly property int headerButtonsMargin : 35 readonly property int mainMenuHeight : 70 @@ -139,6 +140,10 @@ readonly property int settingsInputWidth : 225 readonly property int settingsNotificationMargin : 10 + readonly property int settingsContentSidesMargin : Variables.headerButtonsMargin + readonly property int settingsContentBottomMargin : Variables.mainMenuHeight + // Alarm Bar height + Variables.notificationHeight + // notification Bar height + Variables.minVGap // Min Gap to give content the min border readonly property int settingsOptionWidth : 550 readonly property int settingsOptionHeight : 50 @@ -192,6 +197,13 @@ readonly property int venousLimitStep : +10; ///< PRS356,PRS357 // has to be the same since it's on the same line scale readonly property int venousLimitGap : +30; + function sizeConverted(vSize, vSizePowers, vRound = 2) { + return ( vSize + / vSizePowers // convert from byte to Giga byte + / 1000) // round to 1000 + .toFixed(vRound) // round to 1 floating point + } + function notSetVariable(vVariable, vLength, vChar) { let notSetVariableText = "_" //"‑" //"-" if (vLength === 0 ) notSetVariableText = ""