![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,580
Karma: 74000001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I love using column colours on a ratings column
|
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,581
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
I didn't know you could do half star ratings in Calibre.
My drop down box only allows me to select 1-5 stars. How do you get half star ratings? |
![]() |
![]() |
![]() |
#4 | ||
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,580
Karma: 74000001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Code:
program: r = $#ratings; if r >=#4 then '#00ff00' elif r >=#2 then '#ffff7f' elif r >=#0 then '#ffaa00' fi Quote:
Last edited by ownedbycats; 01-09-2022 at 11:58 AM. |
||
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,581
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
Thank you! |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#7 |
She/Her
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
|
Thanks I love this idea 💚
|
![]() |
![]() |
![]() |
#8 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
So, that's cool, but the only thing that interests me here is :
How did you get this unified interface for metadata? NEED! Oh my god, I can feel you creating your own build calibre for this. Dammit. An option for that would be cool. Much better, a minimum configuration for the position of the groups would be so powerful (but so much to pull out your hair) |
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,311
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Also see the tweaks:
|
|
![]() |
![]() |
![]() |
#10 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Thanks.
In "Behavior"? I would have said "Look & Feel", strange choice. Arf, the cover on the right I would not get used to it... and you can't grab the groups of metadata to change their size, like with the Default. Not sure of using it and some improvement to suggest (to Kovid), but I keep this option. |
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 409968
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
I couldn't get it to work for me
Can you give me screenshots? |
![]() |
![]() |
![]() |
#12 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,580
Karma: 74000001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
If you mean my template, did you change line 3 '$#ratings' to '$rating'? I use a custom column.
|
![]() |
![]() |
![]() |
#13 |
She/Her
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
|
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. |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,311
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
program: first_matching_cmp( $rating, 1.1, '#FEDC78', 2.1, '#94E4C9', 3.1, '#FE657D', 4.1, '#94E4C9', '#2EAB64') |
|
![]() |
![]() |
![]() |
#15 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,580
Karma: 74000001
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Would it break existing things to change it to <= instead of <?
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with ratings column | Tanjamuse | Library Management | 13 | 09-19-2016 10:04 AM |
Custom Column for Half-Star Ratings | Loosheesh | Calibre | 2 | 09-14-2016 01:45 PM |
My Ratings column | MerlinMama | Calibre | 5 | 09-08-2016 07:20 AM |
grouping does not work for custom column type ratings | comox | Calibre Companion | 2 | 09-24-2014 01:54 PM |
Rename the Ratings column? | mlevin77 | Library Management | 5 | 04-13-2012 09:36 PM |