summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:32:07 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 12:32:07 +0800
commitc3b7404636484ce74ba74ba61101877e12bd7aba (patch)
tree425a741ddd67d5e68d7a3e39ec501a7aaad6681a
parent53011b961bf322797b3e8fdd354a9558e91652c0 (diff)
Stopwatch & danger colour reuse
-rw-r--r--Course/Detail/Classic/Content/Sidebar/Video.ui.qml17
-rw-r--r--CourseDetailClassic.qrc3
-rw-r--r--Font-Awesome/svgs/solid/stopwatch.svg1
3 files changed, 19 insertions, 2 deletions
diff --git a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
index 5e6e155..0136221 100644
--- a/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
+++ b/Course/Detail/Classic/Content/Sidebar/Video.ui.qml
@@ -113,9 +113,24 @@ ColumnLayout {
id: time
spacing: 8
+ Image {
+ source: "../../../../../Font-Awesome/svgs/solid/stopwatch.svg"
+ sourceSize {
+ width: 13
+ height: 15
+ }
+
+ ColorOverlay {
+ anchors.fill: parent
+ source: parent
+ color: Eduport
+ .bsDanger
+ }
+ }
+
Lbl.Body {
text: qsTr("5 days left at this price")
- color: "#d6293e"
+ color: Eduport.bsDanger
}
}
}
diff --git a/CourseDetailClassic.qrc b/CourseDetailClassic.qrc
index 93ce2e2..dd7ec2e 100644
--- a/CourseDetailClassic.qrc
+++ b/CourseDetailClassic.qrc
@@ -1,9 +1,10 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="qeduport">
- <file>Font-Awesome/svgs/solid/circle-play.svg</file>
<file>Course/Detail/Classic/Content/Main/TabContents/Instructor.ui.qml</file>
<file>Course/Detail/Classic/Content/Main/TabContents/Instructor/ListInlineItem.ui.qml</file>
<file>Course/Detail/Classic/Content/Main.ui.qml</file>
+ <file>Font-Awesome/svgs/solid/circle-play.svg</file>
+ <file>Font-Awesome/svgs/solid/stopwatch.svg</file>
<file>Course/Detail/Classic/Content/Sidebar/Video.ui.qml</file>
<file>Course/Detail/Classic.ui.qml</file>
</qresource>
diff --git a/Font-Awesome/svgs/solid/stopwatch.svg b/Font-Awesome/svgs/solid/stopwatch.svg
new file mode 100644
index 0000000..80ddfd0
--- /dev/null
+++ b/Font-Awesome/svgs/solid/stopwatch.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M176 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h16V98.4C92.3 113.8 16 200 16 304c0 114.9 93.1 208 208 208s208-93.1 208-208c0-41.8-12.3-80.7-33.5-113.2l24.1-24.1c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L355.7 143c-28.1-23-62.2-38.8-99.7-44.6V64h16c17.7 0 32-14.3 32-32s-14.3-32-32-32H224 176zm72 192V320c0 13.3-10.7 24-24 24s-24-10.7-24-24V192c0-13.3 10.7-24 24-24s24 10.7 24 24z"/></svg> \ No newline at end of file