From 273684416acefe8bfd803c4d3541b34d929ee2c1 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Sun, 15 Sep 2019 14:44:38 +0700 Subject: username text form --- assets/user-24px.svg | 15 +++++++++++++++ kelakon.qrc | 3 +++ pages/Username.qml | 4 ++++ pages/UsernameForm.ui.qml | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 assets/user-24px.svg create mode 100644 pages/Username.qml create mode 100644 pages/UsernameForm.ui.qml diff --git a/assets/user-24px.svg b/assets/user-24px.svg new file mode 100644 index 0000000..3eff6de --- /dev/null +++ b/assets/user-24px.svg @@ -0,0 +1,15 @@ + + + + username-24 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/kelakon.qrc b/kelakon.qrc index 3c41d42..901d3f0 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -27,5 +27,8 @@ assets/chevron-right-24px.svg assets/add-24px.svg assets/profile-24px.svg + pages/Username.qml + pages/UsernameForm.ui.qml + assets/user-24px.svg diff --git a/pages/Username.qml b/pages/Username.qml new file mode 100644 index 0000000..c523226 --- /dev/null +++ b/pages/Username.qml @@ -0,0 +1,4 @@ +import QtQuick 2.4 + +UsernameForm { +} diff --git a/pages/UsernameForm.ui.qml b/pages/UsernameForm.ui.qml new file mode 100644 index 0000000..3771959 --- /dev/null +++ b/pages/UsernameForm.ui.qml @@ -0,0 +1,35 @@ +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Layouts 1.12 + +RowLayout { + + id: userName + width: fillWidth + height: 54 + anchors.topMargin: 8 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + spacing: 16 + + Image { + id: icon + width: 24 + height: 24 + Layout.leftMargin: 16 + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + fillMode: Image.PreserveAspectFit + source: "../assets/user-24px.svg" + } + + TextField { + id: textField + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + font.pointSize: 16 + font.family: "Google Sans" + Layout.fillWidth: true + placeholderText: qsTr("Username") + } +} -- cgit v1.2.3