diff options
-rw-r--r-- | assets/user-24px.svg | 15 | ||||
-rw-r--r-- | kelakon.qrc | 3 | ||||
-rw-r--r-- | pages/Username.qml | 4 | ||||
-rw-r--r-- | pages/UsernameForm.ui.qml | 35 |
4 files changed, 57 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <!-- Generator: Sketch 57.1 (83088) - https://sketch.com --> + <title>username-24</title> + <desc>Created with Sketch.</desc> + <defs> + <path d="M12,2 C6.48,2 2,6.48 2,12 C2,17.52 6.48,22 12,22 L17,22 L17,20 L12,20 C7.66,20 4,16.34 4,12 C4,7.66 7.66,4 12,4 C16.34,4 20,7.66 20,12 L20,13.43 C20,14.22 19.29,15 18.5,15 C17.71,15 17,14.22 17,13.43 L17,12 C17,9.24 14.76,7 12,7 C9.24,7 7,9.24 7,12 C7,14.76 9.24,17 12,17 C13.38,17 14.64,16.44 15.54,15.53 C16.19,16.42 17.31,17 18.5,17 C20.47,17 22,15.4 22,13.43 L22,12 C22,6.48 17.52,2 12,2 Z M12,15 C10.34,15 9,13.66 9,12 C9,10.34 10.34,9 12,9 C13.66,9 15,10.34 15,12 C15,13.66 13.66,15 12,15 Z" id="path-1"></path> + </defs> + <g id="username-24" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> + <mask id="mask-2" fill="white"> + <use xlink:href="#path-1"></use> + </mask> + <use id="icon/communication/alternate_email_24px" fill-opacity="0.9" fill="#000000" fill-rule="nonzero" xlink:href="#path-1"></use> + </g> +</svg>
\ 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 @@ <file>assets/chevron-right-24px.svg</file> <file>assets/add-24px.svg</file> <file>assets/profile-24px.svg</file> + <file>pages/Username.qml</file> + <file>pages/UsernameForm.ui.qml</file> + <file>assets/user-24px.svg</file> </qresource> </RCC> 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") + } +} |