summaryrefslogtreecommitdiff
path: root/Instructor
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 11:48:24 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 11:48:24 +0800
commit9928dd9ccaab6b447af80539cad97b1b13576287 (patch)
treeb6909da2f6e749d48862e73b5292d27ad7704597 /Instructor
parent28a59a4223ab1fb9f7c80b5673064d0f7e196624 (diff)
Edit profile reuse primary button
Diffstat (limited to 'Instructor')
-rw-r--r--Instructor/EditProfile.ui.qml22
1 files 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
- }
- }
}
}
}