From 8eb5964a322f62ae1319cd7dcc6fadab9a2f552c 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, 30 Mar 2023 15:12:00 +0800 Subject: Header cart buttons --- Header.ui.qml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'Header.ui.qml') diff --git a/Header.ui.qml b/Header.ui.qml index 54eae75..aebdc4e 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -10,6 +10,8 @@ import "Label" as Lbl ToolBar { property alias logo: logo property alias cart: cart + property alias cartMenu: cartMenu + property alias checkout: checkout property alias profile: profile property string imageSource: "https://eduport.webestica.com/assets/images/avatar/01.jpg" property alias menu: menu @@ -123,11 +125,48 @@ ToolBar { } Menu { + id: cartMenu y: parent.height background: Loader { width: 256 sourceComponent: background } + + Lbl.H5 { + text: qsTr("Cart items") + topPadding: 25.6 + leftPadding: 16 + rightPadding: 16 + bottomPadding: 25.6 + } + + Loader { + sourceComponent: menuSeparator + } + + RowLayout { + + Btn.Light { + id: viewCart + text: qsTr("View Cart") + horizontalPadding: 12.8 + verticalPadding: 6.4 + font.pointSize: 13 + bsBtnBorderRadius: 3.2 + Layout.margins: 16 + } + + Btn.Success { + id: checkout + text: qsTr("Checkout") + horizontalPadding: 12.8 + verticalPadding: 6.4 + font.pointSize: 13 + bsBtnBorderRadius: 3.2 + Layout.margins: 16 + Layout.alignment: Qt.AlignRight + } + } } } -- cgit v1.2.3