Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 46861

customized column icons now Micro-icons

$
0
0
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', '', '')
)

Now, the png's are all 125x25x24 icons, resized down from the original 1340x266x24 original artworks. Until today, the graphics were really very close to the size of the ratings stars. Today, they came out about 1/32nd the size, about the size of text asterisks. In fact, I thought they HAD become asterisks until a screen cap and zoom in capability showed them in all of their miniscule glory.

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?

Viewing all articles
Browse latest Browse all 46861

Trending Articles