aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-04-25 21:09:23 +0200
committerdsc <xmrdsc@protonmail.com>2019-04-25 21:09:23 +0200
commit62285b01dc77ef14e4b5b9cc291e34162321ad89 (patch)
tree5ced9d312817ca03be17c242d1e2bd478b4fd1e5 /components/StandardButton.qml
parente1c429110f5f2321ad0113a8097eab966d935dcd (diff)
downloadmonzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.tar.gz
monzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.tar.xz
monzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.zip
Remove scaleRatio
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index 05ee16a0..28572245 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -39,14 +39,14 @@ Item {
property bool small: false
property alias text: label.text
property int fontSize: {
- if(small) return 14 * scaleRatio;
- else return 16 * scaleRatio;
+ if(small) return 14;
+ else return 16;
}
property alias label: label
signal clicked()
- height: small ? 30 * scaleRatio : 36 * scaleRatio
- width: buttonLayout.width + 22 * scaleRatio
+ height: small ? 30 : 36
+ width: buttonLayout.width + 22
implicitHeight: height
implicitWidth: width
@@ -100,7 +100,7 @@ Item {
RowLayout {
id: buttonLayout
height: button.height
- spacing: 11 * scaleRatio
+ spacing: 11
anchors.centerIn: parent
MoneroComponents.TextPlain {
@@ -127,8 +127,8 @@ Item {
Image {
visible: button.rightIcon !== ""
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
- width: button.small ? 16 * scaleRatio : 20 * scaleRatio
- height: button.small ? 16 * scaleRatio : 20 * scaleRatio
+ width: button.small ? 16 : 20
+ height: button.small ? 16 : 20
source: {
if(button.rightIconInactive !== "" && !button.enabled) {
return button.rightIconInactive;