diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-08-07 15:47:56 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-11-03 16:57:11 +0100 |
| commit | 9e0db8f4ffa7d979ffb07cd9d76aee885c261196 (patch) | |
| tree | cd8846ccc546cb6328de47695411d89f679df79b /components/StandardButton.qml | |
| parent | 66bb3fe7ac2b4e890ae7b89931f537bbfea1dd46 (diff) | |
| download | monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.gz monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.xz monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.zip | |
components mobile scaling
Diffstat (limited to 'components/StandardButton.qml')
| -rw-r--r-- | components/StandardButton.qml | 6 |
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 |
