View Single Post
Old 01-18-2022, 05:16 PM   #17
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 908
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by Penny_Dreadful View Post
I edited the code a bit so I could use the default rating column and change the colour for each number of stars.



Code:
program: 

     r = $rating;
 

     if r >=#5 then '#2EAB64'
     elif r >=#4 then '#94E4C9'
     elif r >=#3 then '#FE657D'    
     elif r >=#2 then '#FCB2A9'
     elif r >=#1 then '#FEDC78'
 

     fi

Go to Settings> Look and Feel> Column Colouring> Add Advanced Rule (it's a button at the bottom left of the dialogue box)


Change "Set the colour of the column" to the ratings column and paste the code into the template box and you should be good to go.

Ans so much thanks to ownedbycats your idea is genius! I love ideas to make calibre prettier.


Now yes, thanks for sharing!
dunhill is offline   Reply With Quote