From 3aa6c8259e4d0915b865cb66950750a1375f5fec 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 17:54:36 +0800 Subject: Header cart item x button --- Bootstrap/icons/x.svg | 3 +++ Eduport.qrc | 1 + Header.ui.qml | 17 +++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 Bootstrap/icons/x.svg diff --git a/Bootstrap/icons/x.svg b/Bootstrap/icons/x.svg new file mode 100644 index 0000000..c865d88 --- /dev/null +++ b/Bootstrap/icons/x.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/Eduport.qrc b/Eduport.qrc index 0ea226a..ae1d1c7 100644 --- a/Eduport.qrc +++ b/Eduport.qrc @@ -12,6 +12,7 @@ Bootstrap/icons/sun.svg Bootstrap/icons/moon-stars.svg Bootstrap/icons/cart3.svg + Bootstrap/icons/x.svg Button/Sm.ui.qml Button/Btn.ui.qml Button/Primary.ui.qml diff --git a/Header.ui.qml b/Header.ui.qml index 2d4e447..a4e6e49 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -176,6 +176,23 @@ ToolBar { .fillWidth: true } + + Button { + Layout.alignment: Qt.AlignTop + contentItem: Image { + source: "Bootstrap/icons/x.svg" + + ColorOverlay { + color: Eduport.bsGray600 + source: parent + anchors.fill: parent + } + } + background: Rectangle { + color: "transparent" + implicitWidth: 13 + } + } } ComboBox { -- cgit v1.2.3