Quote:
Originally Posted by dunhill
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.