summaryrefslogtreecommitdiff
path: root/InstructorEditProfile.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-18 15:24:39 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-18 15:24:39 +0800
commit8dd27c7cbcf49916654084e1e5140845fe2fe46b (patch)
treea175567b5299ecbe5e3313e05c8e4869a6cdd944 /InstructorEditProfile.ui.qml
parent8650b263b5a80caea961b9ad112d2d44433286b3 (diff)
Rounded avatar
and fix the margins
Diffstat (limited to 'InstructorEditProfile.ui.qml')
-rw-r--r--InstructorEditProfile.ui.qml33
1 files changed, 26 insertions, 7 deletions
diff --git a/InstructorEditProfile.ui.qml b/InstructorEditProfile.ui.qml
index 135e839..3eb9070 100644
--- a/InstructorEditProfile.ui.qml
+++ b/InstructorEditProfile.ui.qml
@@ -1,6 +1,7 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
+import QtGraphicalEffects 1.15
Flickable {
property bool doesntEmbed: Qt.platform.os === "android"
@@ -78,15 +79,15 @@ Flickable {
}
ColumnLayout {
- Layout.topMargin: 41.6
- Layout.leftMargin: 32.8
- Layout.rightMargin: 32.8
+ Layout.topMargin: 16
+ Layout.leftMargin: 20
+ Layout.rightMargin: 20
Layout.bottomMargin: 16
Label {
Layout.fillWidth: true
+ Layout.bottomMargin: 9
text: qsTr("Profile picture")
- padding: 16
color:
"#747579"
font {
@@ -97,9 +98,27 @@ Flickable {
RowLayout {
- Image {
- source: "https://eduport.webestica.com/assets/images/avatar/07.jpg"
- fillMode: Image.PreserveAspectFit
+ Item {
+ Layout.rightMargin: 25.6
+ implicitWidth: 82
+ implicitHeight: 82
+
+ Image {
+ id: avatar
+ source: "https://eduport.webestica.com/assets/images/avatar/07.jpg"
+ sourceSize {
+ width: 82
+ height: 82
+ }
+ layer.enabled: true
+ layer.effect: OpacityMask {
+ maskSource: Rectangle {
+ width: 82
+ height: 82
+ radius: 82
+ }
+ }
+ }
}
Button {