![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
|
Viewer: bug or feature?
Hello!
I find that the e-viewer disregards Code:
body {color: #000040; background: #f0f0f0; padding: 20px;} I am NOT in dark mode, 'override all book colors' set at 'never', color scheme is 'system'. I have just 2 books with background-color set--both guides to python plug-ins for the Gimp, made from retrieved web pages, and I have tried to preserve in some measure the layout of the sources. Am I doing something wrong, or the viewer will always override a body background-color? (Note: Sigil shows the background color as in the css.) |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,046
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
In the Viewer, use the Preferences THERE
Set the override to Never |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
|
Is there that I have my preferences set:
'override all book colors' ='never', 'color scheme' = 'system' (I just want a background color when the book asks for it). |
![]() |
![]() |
![]() |
#4 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
Quote:
(Same settings as yours, Calibre 4.12 on Ubuntu.) So you could wrap each whole file with a suitable <div> to get the effect, but it would be better if it worked in the <body> style. |
|
![]() |
![]() |
![]() |
#5 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
Found an Answer
More new features to learn. There is a tool on the viewer called "switch color scheme". Set it to "Easy" and the color called for in the <body> works. Mine was set to "White".
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
OOPS.
I tried another book, and it turns out "Easy" must be for "easy on the eyes" or something. The book I tested had a body color nearly identical to what the "Easy" setting gives, so it fooled me
![]() Problem remains. |
![]() |
![]() |
![]() |
#7 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
|
Exactly so. Moreover,
* One would wish for an option to respect the color if/when present: 'override=never' *should* do thar, but apparently doesn't * 'Easy' must an option in Linux?--in Windows there are others/other names, and so I dare say in Mac... |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Body colors are always going to be changed to the user specified color. Not changing those makes the viewers color themes basically useless.
|
![]() |
![]() |
![]() |
#9 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
|
Understood: but what if one doesn't want a color teme inside the book-view frame?
(My case: quite happy to let each book--mostly customized by me--show its own layout.) |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Wrap your books content in a div.
|
![]() |
![]() |
![]() |
#11 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 266070
Join Date: Dec 2010
Location: Spain
Device: Win10,Win11,Ubuntu,PockbookLux44
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug or feature? | Onion Ninja | Calibre | 1 | 08-15-2017 08:58 AM |
Possible viewer bug? | itimpi | Library Management | 19 | 05-13-2014 12:29 PM |
Another bug ... or a feature? | sergo | Conversion | 4 | 11-29-2013 06:21 AM |
Bug or Feature? | capidamonte | Calibre | 5 | 07-27-2010 03:06 PM |