aboutsummaryrefslogtreecommitdiff
path: root/components/InlineButton.qml
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-01-14 01:02:44 +0100
committerdsc <xmrdsc@protonmail.com>2019-02-22 03:05:27 +0100
commitf329a710295deed3c15f2acff9a519c0a70e98e1 (patch)
tree95d2b1f6b8c31826a561d74d33368c1e9ef85d42 /components/InlineButton.qml
parent333f4aaf83bd64de02b07a56d86bbf90363e403b (diff)
downloadmonzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.tar.gz
monzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.tar.xz
monzero-gui-f329a710295deed3c15f2acff9a519c0a70e98e1.zip
Wizard redesign
Diffstat (limited to 'components/InlineButton.qml')
-rw-r--r--components/InlineButton.qml14
1 files changed, 10 insertions, 4 deletions
diff --git a/components/InlineButton.qml b/components/InlineButton.qml
index 7bd1f7d2..e894e14d 100644
--- a/components/InlineButton.qml
+++ b/components/InlineButton.qml
@@ -33,14 +33,20 @@ import "../components" as MoneroComponents
Item {
id: inlineButton
- height: rect.height * scaleRatio
+ height: parent.height
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+
+ property bool small: false
property string shadowPressedColor: "#B32D00"
property string shadowReleasedColor: "#FF4304"
property string pressedColor: "#FF4304"
property string releasedColor: "#FF6C3C"
property string icon: ""
property string textColor: "#FFFFFF"
- property int fontSize: 12 * scaleRatio
+ property int fontSize: small ? 14 * scaleRatio : 16 * scaleRatio
+ property int rectHeight: small ? 24 * scaleRatio : 28 * scaleRatio
+ property int rectHMargin: small ? 16 * scaleRatio : 22 * scaleRatio
property alias text: inlineText.text
property alias buttonColor: rect.color
signal clicked()
@@ -59,14 +65,14 @@ Item {
width: inlineText.text ? (inlineText.width + 22) * scaleRatio : inlineButton.icon ? (inlineImage.width + 16) * scaleRatio : rect.height
radius: 4
- anchors.top: parent.top
+ anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
Text {
id: inlineText
font.family: MoneroComponents.Style.fontBold.name
font.bold: true
- font.pixelSize: 16 * scaleRatio
+ font.pixelSize: inlineButton.fontSize
color: "black"
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter