From 41bd740e4bd9fd4dee5dcc630407453d9455f839 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: Mon, 27 Mar 2023 17:29:41 +0800 Subject: Anticipate 0.0 rating --- Home/Default/Card.ui.qml | 8 ++++---- 1 file 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 -- cgit v1.2.3