aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index 33cedee7..c55ebb12 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -31,19 +31,19 @@ import QtQuick.Layouts 1.1
Item {
id: button
- height: 37
+ height: 37 * scaleRatio
property string shadowPressedColor
property string shadowReleasedColor
property string pressedColor
property string releasedColor
property string icon: ""
property string textColor: "#FFFFFF"
- property int fontSize: 12
+ property int fontSize: 12 * scaleRatio
property alias text: label.text
signal clicked()
// Dynamic label width
- Layout.minimumWidth: (label.contentWidth > 80)? label.contentWidth + 20 : 100
+ Layout.minimumWidth: (label.contentWidth + 10 * scaleRatio) // (label.contentWidth > 80)? label.contentWidth + 20 : 100
Rectangle {
anchors.left: parent.left