Commit 2394b10e authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/InviteFriends): refactoring, use vertical form

parent 9f7f455a
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Layouts 1.3
import Common 1.0 import Common 1.0
...@@ -36,68 +35,46 @@ DialogPlus { ...@@ -36,68 +35,46 @@ DialogPlus {
height: InviteFriendsStyle.height height: InviteFriendsStyle.height
width: InviteFriendsStyle.width width: InviteFriendsStyle.width
maximumHeight: InviteFriendsStyle.height
maximumWidth: InviteFriendsStyle.width
minimumHeight: InviteFriendsStyle.height minimumHeight: InviteFriendsStyle.height
minimumWidth: InviteFriendsStyle.width minimumWidth: InviteFriendsStyle.width
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
ColumnLayout { Form {
anchors { anchors {
fill: parent fill: parent
leftMargin: InviteFriendsStyle.leftMargin leftMargin: InviteFriendsStyle.leftMargin
rightMargin: InviteFriendsStyle.rightMargin rightMargin: InviteFriendsStyle.rightMargin
} }
spacing: InviteFriendsStyle.spacing orientation: Qt.Vertical
Column { FormLine {
Layout.fillWidth: true FormGroup {
spacing: InviteFriendsStyle.input.spacing label: qsTr('enterEmailLabel')
Text { TextField {
color: InviteFriendsStyle.input.legend.color id: email
elide: Text.ElideRight
font { inputMethodHints: Qt.ImhEmailCharactersOnly
bold: true width: parent.width
pointSize: InviteFriendsStyle.input.legend.fontSize
} }
text: qsTr('enterEmailLabel')
}
TextField {
id: email
inputMethodHints: Qt.ImhEmailCharactersOnly
width: parent.width
} }
} }
ColumnLayout { FormLine {
Layout.fillHeight: true FormGroup {
Layout.fillWidth: true label: qsTr('messageLabel')
spacing: InviteFriendsStyle.input.spacing
Text { TextAreaField {
color: InviteFriendsStyle.input.legend.color id: message
elide: Text.ElideRight
font { height: InviteFriendsStyle.message.height
bold: true text: qsTr('defaultMessage')
pointSize: InviteFriendsStyle.input.legend.fontSize
} }
text: qsTr('messageLabel')
}
TextAreaField {
id: message
Layout.fillHeight: true
Layout.fillWidth: true
text: qsTr('defaultMessage')
} }
} }
} }
......
...@@ -9,15 +9,9 @@ QtObject { ...@@ -9,15 +9,9 @@ QtObject {
property int height: 316 property int height: 316
property int leftMargin: 35 property int leftMargin: 35
property int rightMargin: 35 property int rightMargin: 35
property int spacing: 15
property int width: 480 property int width: 480
property QtObject input: QtObject { property QtObject message: QtObject {
property int spacing: 6 property int height: 140
property QtObject legend: QtObject {
property color color: Colors.j
property int fontSize: 10
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment