summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-21 18:21:41 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-21 18:21:41 +0700
commit950b77e4207159f7607f5103f4d1c138136b9802 (patch)
tree9ebf43b74745b59f02f45c69fccf7440194b4ae8
parent2c173a7e9576094af2f478ad3a5ad2a358933ad0 (diff)
Customized emailButton
-rw-r--r--LoginForm.ui.qml25
1 files changed, 17 insertions, 8 deletions
diff --git a/LoginForm.ui.qml b/LoginForm.ui.qml
index 198429d..a5fd76e 100644
--- a/LoginForm.ui.qml
+++ b/LoginForm.ui.qml
@@ -35,22 +35,31 @@ Rectangle {
Button {
id: googleButton
+ text: qsTr("Button")
y: 419
height: 36
- text: qsTr("Continue with Google")
- font.weight: Font.Medium
- padding: 8
- bottomPadding: 8
- topPadding: 8
+
anchors.right: parent.right
anchors.rightMargin: 16
anchors.left: parent.left
anchors.leftMargin: 16
- font.pointSize: 14
- display: AbstractButton.TextBesideIcon
- spacing: 4
anchors.bottomMargin: 16
anchors.bottom: emailButton.top
+
+ contentItem: Text {
+ color: "#FFF"
+ font: control.font
+ text: "Continue with Google"
+ font.pointSize: 14
+ font.family: "Google Sans"
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ elide: Text.ElideRight
+ }
+ background: Rectangle {
+ color: "#6d22e9"
+ radius: 6
+ }
}
Button {