View Single Post
Old 05-23-2011, 09:19 AM   #18
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,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The next version of calibre includes the ability to color the contents of a column.

There are two ways. The first is the easiest: enumeration-type custom columns (columns with a fixed set of values) can have a list of colors to use for values.

The second is more general. You use a new tab in look-and-feel preferences to specify the color of cells in a column using a template program. You can check any metadata associated with the book. For example, should you want to do such a thing, it is possible to color the title magenta if the book does not have the tag 'Science Fiction', has three formats, and is authored by Sinclair Lewis. You could also change the color of the stars in the rating column. You can use python-based template functions if the template language is too cumbersome.

Note that the item is colored, not the background. And no, you cannot specify icons to replace the text.

Preferences for both the first and the second method are stored in the library, not the installation.

The code is in trunk for those of you who run from source. An improved syntax-highlighting template program editor will arrive shortly.
chaley is offline   Reply With Quote