aboutsummaryrefslogtreecommitdiff
path: root/components/InlineButton.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/InlineButton.qml
parente1c429110f5f2321ad0113a8097eab966d935dcd (diff)
downloadmonzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.tar.gz
monzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.tar.xz
monzero-gui-62285b01dc77ef14e4b5b9cc291e34162321ad89.zip
Remove scaleRatio
Diffstat (limited to 'components/InlineButton.qml')
-rw-r--r--components/InlineButton.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/InlineButton.qml b/components/InlineButton.qml
index c7c68bac..45cf841c 100644
--- a/components/InlineButton.qml
+++ b/components/InlineButton.qml
@@ -46,9 +46,9 @@ Item {
property string releasedColor: "#FF6C3C"
property string icon: ""
property string textColor: MoneroComponents.Style.inlineButtonTextColor
- property int fontSize: small ? 14 * scaleRatio : 16 * scaleRatio
- property int rectHeight: small ? 24 * scaleRatio : 24 * scaleRatio
- property int rectHMargin: small ? 16 * scaleRatio : 22 * scaleRatio
+ property int fontSize: small ? 14 : 16
+ property int rectHeight: small ? 24 : 24
+ property int rectHMargin: small ? 16 : 22
property alias text: inlineText.text
property alias fontPixelSize: inlineText.font.pixelSize
property alias fontFamily: inlineText.font.family
@@ -64,13 +64,13 @@ Item {
Rectangle{
id: rect
color: MoneroComponents.Style.buttonInlineBackgroundColor
- height: 24 * scaleRatio
- width: inlineText.text ? (inlineText.width + 16) * scaleRatio : inlineButton.icon ? (inlineImage.width + 16) * scaleRatio : rect.height
+ height: 24
+ width: inlineText.text ? (inlineText.width + 16) : inlineButton.icon ? (inlineImage.width + 16) : rect.height
radius: 4
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
- anchors.rightMargin: 4 * scaleRatio
+ anchors.rightMargin: 4
MoneroComponents.TextPlain {
id: inlineText