summaryrefslogtreecommitdiff
path: root/Header.ui.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Header.ui.qml')
-rw-r--r--Header.ui.qml45
1 files changed, 45 insertions, 0 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index bf76de1..4cc507d 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -9,6 +9,7 @@ import "Label" as Lbl
ToolBar {
property alias logo: logo
+ property alias cart: cart
property alias profile: profile
property string imageSource: "https://eduport.webestica.com/assets/images/avatar/01.jpg"
property alias menu: menu
@@ -78,6 +79,50 @@ ToolBar {
}
ToolButton {
+ id: cart
+ padding: 0
+ width: 40
+ height: 40
+ anchors {
+ right: profile.left
+ rightMargin: 12
+ verticalCenter: parent.verticalCenter
+ }
+ layer {
+ enabled: true
+ effect: OpacityMask {
+ maskSource: Rectangle {
+ width: 40
+ height: 40
+ radius: 40
+ }
+ }
+ }
+ contentItem: Item {
+
+ Image {
+ anchors.centerIn: parent
+ source: "Bootstrap/icons/cart3.svg"
+ sourceSize.width: 18
+ fillMode: Image.PreserveAspectFit
+
+ ColorOverlay {
+ color: Eduport.bsGray900
+ source: parent
+ anchors.fill: parent
+ }
+ }
+ }
+ background: Rectangle {
+ color: Eduport.bsLight
+ border {
+ color: Eduport.bsLight
+ width: 1
+ }
+ }
+ }
+
+ ToolButton {
id: profile
padding: 0
anchors {