|
|
#1 |
|
Groupie
![]() ![]() ![]() Posts: 180
Karma: 299
Join Date: Jul 2010
Location: Brampton ON
Device: Kobo, Kindle3
|
customized column icons now Micro-icons
Updated from 2.65 to 2.66 this morning on my Windows 7x64 (wouldn't update to 10 and I gave up after 14 tries ... downloading the 3.2G each time) desktop.
Didn't see anything too different from my perspective except the app icon. But when I went to rate a read book, I noticed something quite different. I have a customized column called Starz that lets me use half stars. In effect, my ratings are out of 10, shown by a crossed out star, a half-star, one star, etc. The graphics were a screen grab by another user, who created the half stars as an outlined star with a plus sign in the lower right. The code for the columns start with looking for a value in the normal Calibre Rating column. No stars in Rating, no display in Starz, no matter the value. But here's the code (probably from Chaley if memory serves): Code:
program:
# Set r to the value in a float field containing the rating
r = raw_field('#starz');
# Return the name of the png that corresponds to the value. The .01 stuff
# is used to avoid having to enter the png name twice, once for less-than
# and once for equals
first_non_empty(
cmp(r, 1.01, 'Starz01.png', '', ''),
cmp(r, 2.01, 'Starz02.png', '', ''),
cmp(r, 3.01, 'Starz03.png', '', ''),
cmp(r, 4.01, 'Starz04.png', '', ''),
cmp(r, 5.01, 'Starz05.png', '', ''),
cmp(r, 6.01, 'Starz06.png', '', ''),
cmp(r, 7.01, 'Starz07.png', '', ''),
cmp(r, 8.01, 'Starz08.png', '', ''),
cmp(r, 9.01, 'Starz09.png', '', ''),
cmp(r, 10.01, 'Starz10.png', '', '')
)
I tried deleting them and then copying over backup copies. No luck. I tried copying over the large originals. No luck. I did close and reopen Calibre to see if that was necessary to see repairs. No luck. No more ideas? Anybody else? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There were some changes to to how the icons are rendered to support high dpi screens, that is the likely culprit. I only tested the changes with squarish icons. Can you attach one of these Starz10.png files and I will have a look.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Groupie
![]() ![]() ![]() Posts: 180
Karma: 299
Join Date: Jul 2010
Location: Brampton ON
Device: Kobo, Kindle3
|
Sample graphics for Starz09
Kovid,
Thought I'd do the nine star/4.5 star equivalent since it shows the half-star indictor. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This should do the trick: https://github.com/kovidgoyal/calibr...d1905bfba1aa4c
Although, the next release will have direct support for creating custom rating columns that allow half stars, so you would be better of using that. |
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,687
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you for the half star!
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,687
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You mean in the cover grid?
|
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,687
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Yes, that's what I mean, sorry.
|
|
|
|
|
|
#9 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, you can.
|
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,687
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you very much!
|
|
|
|
|
|
#11 | |
|
Groupie
![]() ![]() ![]() Posts: 180
Karma: 299
Join Date: Jul 2010
Location: Brampton ON
Device: Kobo, Kindle3
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| custom icon columns |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limit on amount of Column Icons | Tanjamuse | Library Management | 18 | 04-05-2015 12:25 PM |
| Preferences - Look & Feel - Column Icons Error | tarisea | Calibre | 1 | 11-13-2014 02:54 PM |
| Custom Column Icons? | tarisea | Library Management | 90 | 01-17-2014 07:12 PM |
| Multiple icons in a column? | RenoA | Library Management | 2 | 09-09-2013 04:20 AM |
| Classic ru.launcher icons can be customized now! (new update) | Atomix | Nook Developer's Corner | 3 | 08-13-2010 09:40 AM |