From a40b274c7dda1d2b4dfb15b6950ce32244bd665c Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 30 Aug 2019 17:04:42 -0400 Subject: [PATCH] Explicitely unset font.pointSize Avoid warnings on desktop environments --- src/qml/Base/HLabel.qml | 1 + src/qml/Base/HScrollableTextArea.qml | 1 + src/qml/Base/HTextField.qml | 1 + 3 files changed, 3 insertions(+) diff --git a/src/qml/Base/HLabel.qml b/src/qml/Base/HLabel.qml index 8b014d4b..10452394 100644 --- a/src/qml/Base/HLabel.qml +++ b/src/qml/Base/HLabel.qml @@ -4,6 +4,7 @@ import QtQuick 2.12 Label { font.family: theme.fontFamily.sans font.pixelSize: theme.fontSize.normal + font.pointSize: -1 textFormat: Label.PlainText color: theme.colors.text diff --git a/src/qml/Base/HScrollableTextArea.qml b/src/qml/Base/HScrollableTextArea.qml index a026264a..aa1ad271 100644 --- a/src/qml/Base/HScrollableTextArea.qml +++ b/src/qml/Base/HScrollableTextArea.qml @@ -20,6 +20,7 @@ ScrollView { wrapMode: TextEdit.Wrap font.family: theme.fontFamily.sans font.pixelSize: theme.fontSize.normal + font.pointSize: -1 color: theme.controls.textArea.text background: Rectangle { diff --git a/src/qml/Base/HTextField.qml b/src/qml/Base/HTextField.qml index f052c3ff..8a482f84 100644 --- a/src/qml/Base/HTextField.qml +++ b/src/qml/Base/HTextField.qml @@ -5,6 +5,7 @@ TextField { id: field font.family: theme.fontFamily.sans font.pixelSize: theme.fontSize.normal + font.pointSize: -1 readonly property QtObject _tf: theme.controls.textField