View Single Post
Old 02-06-2023, 04:01 PM   #498
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,480
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by isarl View Post
I have created a custom column to hold status flags for my books. In the Look & Feel settings, I am setting custom icons for this column by using templates.

My template is currently producing a value like:

Code:
transparent.png:transparent.png:transparent.png:ok.png:h-ellipsis.png

However, the transparent PNG is not spacing out the other icons as intended. It is a 128×128 pixel 8-bit/colour RGBA non-interlaced PNG.
This is because I wish for icons not present in the current book to still take up horizontal space. To demonstrate visually using single characters to represent each PNG in the list above (space for transparent.png, O for ok.png, E for h-ellipsis.png), I want this:

Code:
   OE
not this:
Code:
OE
transparent.png attached in case anybody wants it for debugging purposes.

My current theories are that the transparent PNG, having no content, is being displayed but trimmed down to a smaller size – or that you cannot add the same image to a composed icons column more than once – or both. Any insight is greatly appreciated!
It works fine for me.

The library view showing the icons:
Click image for larger version

Name:	Clipboard01.jpg
Views:	448
Size:	34.2 KB
ID:	199538

The template that produces the icons:
Click image for larger version

Name:	Clipboard02.jpg
Views:	459
Size:	65.4 KB
ID:	199539

The folder containing the icon png files. transparent.png is your file.
Click image for larger version

Name:	Clipboard04.jpg
Views:	467
Size:	19.9 KB
ID:	199540

My guess is that you never added transparent.png to the possible icons (folder cc_icons).
chaley is offline   Reply With Quote