Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2015, 11:07 PM   #1
Andys
Member
Andys began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
Color of text in library browser?

Is it possible to change font color in library table from black to some other color?
Asking because of inconsistent long_text custom fields, text in them is always black, even when row is selected
Andys is offline   Reply With Quote
Old 10-16-2015, 11:48 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,696
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Andys View Post
Is it possible to change font color in library table from black to some other color?
Asking because of inconsistent long_text custom fields, text in them is always black, even when row is selected
@Andys - have you considered putting an icon on those cells when they're not empty, and showing the content in the book details sidebar

Click image for larger version

Name:	Capture.JPG
Views:	200
Size:	84.9 KB
ID:	142906

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-16-2015, 11:50 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,301
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Long text columns are not intended for display in the book list, but if you want them to be another color, they support HTML markup, simply wrap them in <span style="color: whatever">...</span>
kovidgoyal is online now   Reply With Quote
Old 10-17-2015, 03:05 AM   #4
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,408
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@Andys: On my machine, long text columns are not always black unless I have set the text color to be black. The text in the book list changes color when selected unless I have set a foreground (text) color.

Have you explicitly set the text color in the columns to black?
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.png
Views:	198
Size:	6.7 KB
ID:	142909  
chaley is offline   Reply With Quote
Old 10-19-2015, 01:29 AM   #5
Andys
Member
Andys began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
Thanks for answers, for now I'll try to decompile calibre's pyo files and try to modify this behavior.
If that wouldn't work - I'll have to use html tags.
I totally don't understand reasons behind decision to keep text's color static. Someone had to go out of their way and waste time writing few lines of codes checking for type so it wouldn't be handled as simple columns. If people don't want to see these columns they could just hide them...

Last edited by Andys; 10-19-2015 at 01:32 AM.
Andys is offline   Reply With Quote
Advert
Old 10-19-2015, 01:58 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,301
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You appear to be laboring under lots of mistaken assumptions:

1) Do not use long text columns for display in the book list, they are meant for display in the book details panel. Instead use a normal text column.

2) Long text columns are meant to display HTML, not plain text, unlike normal text columns.

3) If you insist on using a long text column in the book list, then it will change its color when selected unless its content already contain HTML tags specifying a color

4) If the content already contains HTML tags specifying a color, then you can change its color manually by editing the html tags

5) calibre is open source and setting up a development environment is trivial, instructions are in the user manual. You do not need to decompile .pyo files.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Kobo Touch web browser, reflow text? david8866 Kobo Reader 1 07-14-2012 08:51 AM
Color Maxthon Browser 4 Nook Color Geekie Nook Color & Nook Tablet 8 05-03-2012 11:55 PM
Text color and background color almost the same larrymohr Kobo Tablets 2 11-20-2011 06:59 PM
Forcing monocrome text in browser? kdgarris Kindle Developer's Corner 0 06-13-2011 10:26 AM
elinks text-based web browser (like lynx) bobj iRex 5 06-19-2008 12:05 AM


All times are GMT -4. The time now is 02:45 AM.


MobileRead.com is a privately owned, operated and funded community.