From 9928dd9ccaab6b447af80539cad97b1b13576287 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: Thu, 23 Mar 2023 11:48:24 +0800 Subject: Edit profile reuse primary button --- Instructor/EditProfile.ui.qml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/Instructor/EditProfile.ui.qml b/Instructor/EditProfile.ui.qml index 5070428..ef872bf 100644 --- a/Instructor/EditProfile.ui.qml +++ b/Instructor/EditProfile.ui.qml @@ -5,6 +5,7 @@ import QtGraphicalEffects 1.15 import Bootstrap 5.3 import "../Label" as Lbl import "../TextField" as TxtFld +import "../Button" as BsBtn Flickable { property alias firstName: firstName @@ -352,31 +353,12 @@ Flickable { } } - Button { + BsBtn.Primary { id: saveButton Layout.topMargin: 25.6 Layout.leftMargin: 12.8 Layout.rightMargin: 12.8 - horizontalPadding: 16 - verticalPadding: 8 text: qsTr("Save changes") - font: Bootstrap.btnFont - contentItem: Text { - color: "white" - text: saveButton.text - font: saveButton.font - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - background: Rectangle { - radius: 5.2 - color: saveButton.down ? "#0555a1" : saveButton.enabled ? "#066ac9" : "#a6066ac9" - border { - color: saveButton.down ? "#055097" : saveButton.enabled ? "#066ac9" : "#a6066ac9" - - width: 1 - } - } } } } -- cgit v1.2.3