summaryrefslogtreecommitdiff
path: root/LoginForm.ui.qml
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-28 21:23:38 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-28 21:23:38 +0700
commit6aaac32b7aba10d796e62e4acefe411f45b2689b (patch)
tree89056d5485bb12d791756bf8d65a2effb980c4f9 /LoginForm.ui.qml
parenta21a42f2b1ae8fefe57c80409a1dbc24698933d5 (diff)
Use Material Buttons
Diffstat (limited to 'LoginForm.ui.qml')
-rw-r--r--LoginForm.ui.qml44
1 files changed, 6 insertions, 38 deletions
diff --git a/LoginForm.ui.qml b/LoginForm.ui.qml
index 44e47c0..83a21b6 100644
--- a/LoginForm.ui.qml
+++ b/LoginForm.ui.qml
@@ -1,6 +1,7 @@
import QtQuick 2.12
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.12
+import QtQuick.Controls.Material 2.12
Rectangle {
id: rectangle
@@ -14,28 +15,14 @@ Rectangle {
id: googleButton
text: qsTr("Continue with Google")
anchors.bottom: emailButton.top
- anchors.bottomMargin: 16
+ anchors.bottomMargin: 8
anchors.right: parent.right
anchors.rightMargin: 16
anchors.left: parent.left
anchors.leftMargin: 16
- height: 36
Layout.fillWidth: true
-
- contentItem: Text {
- text: googleButton.text
- color: "#FFF"
- font.pointSize: 14
- font.family: "Google Sans"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
- background: Rectangle {
- opacity: enabled ? 1.0 : 0.3
- color: googleButton.down ? "#6d22e9" : "#4F12DA"
- radius: 6
- }
+ highlighted: true
+ Material.accent: Material.primary
}
Button {
@@ -47,25 +34,8 @@ Rectangle {
anchors.leftMargin: 16
anchors.bottom: disclaimer.top
anchors.bottomMargin: 16
- height: 36
Layout.fillWidth: true
-
- contentItem: Text {
- text: emailButton.text
- color: "#6d22e9"
- font.pointSize: 14
- font.family: "Google Sans"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
- background: Rectangle {
- opacity: enabled ? 0.3 : 1
- color: emailButton.down ? "#6d22e9" : "#ffffff"
- border.color: "#6d22e9"
- border.width: 1
- radius: 6
- }
+ Material.foreground: Material.primary
}
Text {
@@ -136,9 +106,7 @@ Rectangle {
-
-
/*##^## Designer {
- D{i:8;anchors_width:100;anchors_x:130;anchors_y:69}D{i:9;anchors_height:258;anchors_width:258;anchors_x:51;anchors_y:80}
+ D{i:4;anchors_width:100;anchors_x:130;anchors_y:69}D{i:5;anchors_height:258;anchors_width:258;anchors_x:51;anchors_y:80}
}
##^##*/