Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Cosmos does not show half-filled stars

Open a-v-ebrahimi opened this issue 6 years ago • 5 comments

Hi

Why Cosmos doesn't sem-fill stars, please check this,thanks : image

a-v-ebrahimi avatar Dec 26 '17 13:12 a-v-ebrahimi

Thanks for the question, @ControlAdad. One can set 1 for "half-fill" or 2 for "precise" in the "Fill Mode" setting. By default it uses 0 for displaying full stars.

Alternatively, one can change the fill mode from code:

cosmosView.settings.fillMode = .half
// Other fill modes:  .precise, .full

Please let me know if it works for you.

evgenyneu avatar Dec 26 '17 21:12 evgenyneu

Thank you!

a-v-ebrahimi avatar Dec 27 '17 04:12 a-v-ebrahimi

even works with custom images. thanks

osrl avatar Feb 13 '19 12:02 osrl

Thank you

sanvis1212 avatar Jan 08 '20 12:01 sanvis1212

Fillmode precise doesn't work if I give totalStars as 1. Doesn't work on single star.

veer-trupti avatar Jan 27 '23 05:01 veer-trupti