View Single Post
Old 01-17-2022, 09:30 PM   #13
Penny_Dreadful
She/Her
Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.Penny_Dreadful is my North, my South, my East and West.
 
Penny_Dreadful's Avatar
 
Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
Quote:
Originally Posted by dunhill View Post
I couldn't get it to work for me
Can you give me screenshots?
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.

Last edited by Penny_Dreadful; 01-17-2022 at 09:41 PM.
Penny_Dreadful is offline   Reply With Quote