From 363e3dbb08eda0ca608d4ff73467c5dcffcf3f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 17 Feb 2023 16:04:02 +0800 Subject: Instructor Edit Profile draft --- InstructorEditProfile.ui.qml | 78 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 InstructorEditProfile.ui.qml diff --git a/InstructorEditProfile.ui.qml b/InstructorEditProfile.ui.qml new file mode 100644 index 0000000..398b990 --- /dev/null +++ b/InstructorEditProfile.ui.qml @@ -0,0 +1,78 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +Flickable { + property bool doesntEmbed: Qt.platform.os === "android" + || Qt.platform.os === "linux" + || Qt.platform.os === "osx" + || Qt.platform.os === "unix" + || Qt.platform.os === "windows" + contentHeight: main.height + + FontLoader { + id: bold + source: "Roboto/Roboto-Bold.ttf" + } + + ColumnLayout { + id: main + + RowLayout { + + ColumnLayout { + Layout.leftMargin: 15 + Layout.rightMargin: 15 + + Rectangle { + Layout.fillWidth: true + implicitHeight: editProfile.height + radius: 8 + border { + width: 1 + color: "#1a000000" + } + + ColumnLayout { + id: editProfile + anchors { + left: parent.left + right: parent.right + } + + Rectangle { + Layout.fillWidth: true + implicitHeight: cardHeader.height + border { + width: 1 + color: "#1a000000" + } + + Label { + id: cardHeader + text: qsTr("Edit Profile") + padding: 16 + anchors { + left: parent.left + right: parent.right + } + font { + family: doesntEmbed ? "Roboto" : bold.name + weight: Font.Bold + pointSize: 23 + } + } + } + + ColumnLayout { + Layout.topMargin: 41.6 + Layout.leftMargin: 32.8 + Layout.rightMargin: 32.8 + Layout.bottomMargin: 16 + } + } + } + } + } + } +} -- cgit v1.2.3