summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-18 11:57:20 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-18 11:57:20 +0800
commit8650b263b5a80caea961b9ad112d2d44433286b3 (patch)
tree4ec10da7300f9d388aa723542ac7f28d43c2776c
parent4fd95ccfd457ad1808cf380d3d3e8880c6324cb5 (diff)
Profile picture
-rw-r--r--InstructorEditProfile.ui.qml49
1 files changed, 49 insertions, 0 deletions
diff --git a/InstructorEditProfile.ui.qml b/InstructorEditProfile.ui.qml
index 6d454ac..135e839 100644
--- a/InstructorEditProfile.ui.qml
+++ b/InstructorEditProfile.ui.qml
@@ -15,6 +15,11 @@ Flickable {
source: "Roboto/Roboto-Bold.ttf"
}
+ FontLoader {
+ id: regular
+ source: "Roboto/Roboto-Regular.ttf"
+ }
+
ColumnLayout {
id: main
anchors {
@@ -77,6 +82,50 @@ Flickable {
Layout.leftMargin: 32.8
Layout.rightMargin: 32.8
Layout.bottomMargin: 16
+
+ Label {
+ Layout.fillWidth: true
+ text: qsTr("Profile picture")
+ padding: 16
+ color:
+ "#747579"
+ font {
+ family: doesntEmbed ? "Roboto" : regular.name
+ pointSize: 15
+ }
+ }
+
+ RowLayout {
+
+ Image {
+ source: "https://eduport.webestica.com/assets/images/avatar/07.jpg"
+ fillMode: Image.PreserveAspectFit
+ }
+
+ Button {
+ id: uploadButton
+ horizontalPadding: 16
+ verticalPadding: 8
+ contentItem: Text {
+ color: uploadButton.down ? "#ffffff" : "#066ac9"
+ text: qsTr("Change")
+ horizontalAlignment: Text .AlignHCenter
+ verticalAlignment: Text .AlignVCenter
+ font {
+ family: doesntEmbed ? "Roboto" : regular.name
+ pointSize: 15
+ }
+ }
+ background: Rectangle {
+ radius: 5.2
+ color: uploadButton.down ? "#066ac9" : Qt.rgba(.0235, .416, .788, .1)
+ border {
+ color: uploadButton.down ? "#066ac9" : "transparent"
+ width: 1
+ }
+ }
+ }
+ }
}
}
}