![]() |
#1 |
Zealot
![]() Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
|
how do you get rid of white background
I copied and pasted a long text into Sigil and it somehow ended up with white background for the text. (Looks like white highlight when I try to read on a e-reader app). How do you get rid of it?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Not quite enough info. What did you copy from, and what option did you select when you pasted into Sigil's Code View?
What OS are you using and what version of Sigil are you using? Sigil doesn't typically have a preference (or a default) for background color--other than darkmode and lightmode presentations. CSS controls what background colors are displayed for your epub, not Sigil. Last edited by DiapDealer; 12-05-2020 at 05:12 PM. |
![]() |
![]() |
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
We're talking about the reading experience, not the appearance of the Sigil editing window? Had you otherwise set the background colour of the book to something other than white?
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I would expect a white background too, if nothing was done with css to change it to something else. Perhaps the OP is using the Sigil dark theme (including for Preview) and assuming any epubs created will be white text on a black background when saved and viewed in an ereading app?
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Quote:
Does Dark Mode get to distort the reality of Preview then? I sort of see how that would be popular among lovers of DM, though a bit confusing. |
|
![]() |
![]() |
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Only if you set your preferences that way.
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes. As Kevin said, you have to consciously choose to allow Preview to override the default foreground/background colors in dark mode. With the default settings, dark mode has no effect on Preview's rendering of the epub.
Last edited by DiapDealer; 12-05-2020 at 07:30 PM. |
![]() |
![]() |
![]() |
#8 | |
Zealot
![]() Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
|
Quote:
I didn't set the background color, but when I copied the text probably it copied the background color of the browser (which happens to be white) together with the text. What happens is, the background color of the e-reader that I'm trying to read in will only show at the edge of the book and the text will be surrounded by white highlight, so that I can't go completely dark mode like I can on other books. I was wondering how to edit the CSS so that the white higlight will be gone from the whole text. |
|
![]() |
![]() |
![]() |
#9 | |
Zealot
![]() Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
|
Basically I see a lot of these throughout my ePub file:
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Well, an obvious thing to try would be a search for "background-color: rgb(255, 255, 255);" replacing it with an empty string. In the stylesheet as well as the chapter files. The example you give, styling a linebreak, is not in itself going to be the culprit though!
Work on a copy of the EPUB file in case it goes horribly wrong! |
![]() |
![]() |
![]() |
#11 | ||
Zealot
![]() Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
|
Quote:
I don't know what you mean by this: Quote:
|
||
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#13 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Are you a Pages user? Hitch |
|
![]() |
![]() |
![]() |
#14 |
Zealot
![]() Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
|
I am a Mac user, but Pages was not involved. I pasted it into Gmail as a draft first and then copied it from gmail to Sigil.
|
![]() |
![]() |
![]() |
#15 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
White Background | KyBunnies | Calibre Companion | 13 | 08-05-2017 03:34 AM |
How to Get Rid of Tan Background in Calibre Companion | pmatch1104 | Devices | 3 | 01-19-2015 09:55 AM |
How to get rid of the grey background on news from taz.de? | MacLake | Recipes | 4 | 02-02-2012 06:45 AM |
White text on white background in dialog boxes | Kikker123 | Kobo Tablets | 1 | 12-24-2011 06:20 PM |
calibre 0.7.49 and white background | gmarco | Conversion | 1 | 03-13-2011 03:26 AM |