summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-28 22:01:35 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-28 22:01:35 +0700
commitab17172e820cd6aab27d6dc754922bd842e9ea9c (patch)
treeed643fe59b36295e3e6c6fc1d4e28452237cb66c
parent297be97a967487dfe28293dfd5586668cad97def (diff)
Material components revamp
-rw-r--r--pages/EmailForm.ui.qml34
1 files changed, 7 insertions, 27 deletions
diff --git a/pages/EmailForm.ui.qml b/pages/EmailForm.ui.qml
index 9b1bea2..ce5a990 100644
--- a/pages/EmailForm.ui.qml
+++ b/pages/EmailForm.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
@@ -73,47 +74,26 @@ Rectangle {
anchors.left: parent.left
anchors.leftMargin: 16
Layout.maximumHeight: 56
-
- background: Rectangle {
- color: emailTextField.enabled ? "#f4f4f4" : "#353637"
- anchors.verticalCenter: parent.verticalCenter
- implicitHeight: 56
- radius: 6
- }
}
Button {
id: loginButton
- x: 34
- y: 278
- width: 296
- height: 36
text: qsTr("Next")
+ font.family: "Google Sans"
anchors.right: parent.right
anchors.rightMargin: 16
anchors.bottom: parent.bottom
anchors.bottomMargin: 16
anchors.left: parent.left
anchors.leftMargin: 16
-
- contentItem: Text {
- text: loginButton.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: loginButton.down ? "#6d22e9" : "#4F12DA"
- radius: 6
- }
+ highlighted: true
+ Material.accent: Material.primary
}
}
+
+
+
/*##^## Designer {
D{i:0;autoSize:true;height:480;width:640}
}