summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 17:54:36 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 17:54:36 +0800
commit3aa6c8259e4d0915b865cb66950750a1375f5fec (patch)
tree4fbbbea718d73714b47211e21ce8fd36a90e29bc
parentadb9e2e679a2ee041d5201ac28ff633e83dbeb1a (diff)
Header cart item x button
-rw-r--r--Bootstrap/icons/x.svg3
-rw-r--r--Eduport.qrc1
-rw-r--r--Header.ui.qml17
3 files changed, 21 insertions, 0 deletions
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 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">
+ <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
+</svg> \ 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 @@
<file>Bootstrap/icons/sun.svg</file>
<file>Bootstrap/icons/moon-stars.svg</file>
<file>Bootstrap/icons/cart3.svg</file>
+ <file>Bootstrap/icons/x.svg</file>
<file>Button/Sm.ui.qml</file>
<file>Button/Btn.ui.qml</file>
<file>Button/Primary.ui.qml</file>
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 {