summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-27 17:29:41 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-27 17:29:41 +0800
commit41bd740e4bd9fd4dee5dcc630407453d9455f839 (patch)
treeda1778aace5af3628f311a2deeb1666d39581ea7
parentb80e3776a8c1e9a44ad56240c80dcd0d71146893 (diff)
Anticipate 0.0 rating
-rw-r--r--Home/Default/Card.ui.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/Home/Default/Card.ui.qml b/Home/Default/Card.ui.qml
index beb3c13..18fb75b 100644
--- a/Home/Default/Card.ui.qml
+++ b/Home/Default/Card.ui.qml
@@ -141,11 +141,11 @@ Item {
Repeater {
model: 5
Image {
- source: (index + 1) / rating <= 1.0
- ? "../../Font-Awesome/svgs/solid/star.svg"
- : (index + 1) / rating < 1.25
+ source: rating == 0.0 || (index + 1.0) / rating >= 1.25
+ ? "../../Font-Awesome/svgs/regular/star.svg"
+ : (index + 1.0) / rating > 1.0
? "../../Font-Awesome/svgs/solid/star-half-stroke.svg"
- : "../../Font-Awesome/svgs/regular/star.svg"
+ : "../../Font-Awesome/svgs/solid/star.svg"
sourceSize {
width: 15
height: 13