From 08aac634c6bf674b0bc9d8eef5e47843d4756c78 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 20:00:07 +0800 Subject: Implementation of edit profile separator Just use rectangle with 1 pixel of height, and make the colour half as thin, because the top & bottom lines will make it full. --- InstructorEditProfile.ui.qml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/InstructorEditProfile.ui.qml b/InstructorEditProfile.ui.qml index 4411d11..0d3a045 100644 --- a/InstructorEditProfile.ui.qml +++ b/InstructorEditProfile.ui.qml @@ -36,26 +36,29 @@ Flickable { ColumnLayout { id: editProfile + Label { + id: cardHeader + text: + qsTr("Edit Profile") + padding: 16 + font { + family: + doesntEmbed + ? "Roboto" + : bold.name + weight: Font + .Bold + pointSize: 23 + } + } + Rectangle { - implicitWidth: - cardHeader.width - implicitHeight: - cardHeader.height - radius: 8 + width: cardHeader.width + height: 1 border { width: 1 - color: "#1a000000" - } - - Label { - id: cardHeader - text: qsTr("Edit Profile") - padding: 16 - font { - family: doesntEmbed ? "Roboto" : bold.name - weight: Font.Bold - pointSize: 23 - } + color: + "#0a000000" } } -- cgit v1.2.3