Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2025, 11:33 AM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 791
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
All Books' Live CSS Show color: rgb(221, 221, 221)

EDIT: It looks like that color: rgb(221, 221, 221) code is because I'm using a Dark theme. If I switch to a Light theme, it goes away. So, I assume it's there simply so the editor can render the book with that dark theme. It doesn't appear to carry over to the books I send over to my ereader. So, I guess this can be ignored.

OP:I don't remember this being present before. In the Calibre Editor, the Live CSS tab for every book that I've tried (even a basic HTML file that I just added and had Calibre convert to Epub) now contains:
Code:
color: rgb(221, 221, 221)
.
As far as I can see, there's nothing in the book setting that color.

For instance, in the HTML I just imported (nothing but an old bookmark file), the Live CSS says things like:

"Inherited from body @9"

and

"Inherited from html @2"

But, line 2 of this particular file is:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
and line 9 is:
Code:
<body class="calibre"><h1 class="calibre7" id="calibre_pb_0">Bookmarks</h1>
There's nothing about color at all in the stylesheet.

If I remove all css from the book completely (nothing in the stylesheet and nothing in the HTML file), that color stuff is still there. Is it supposed to be? What's causing it and where is that color supposed to show up?

Last edited by enuddleyarbl; 09-06-2025 at 11:44 AM.
enuddleyarbl is offline   Reply With Quote
Old 09-06-2025, 03:40 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,634
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
I would expect it is setting the colour theme for the editor live viewer panel which you can amend in the editor settings.

Now that I check, I only see that when highlighting the <html> tag and the background-colour does match the colour in my preview panel.
Attached Thumbnails
Click image for larger version

Name:	cssColour1.jpg
Views:	19
Size:	30.0 KB
ID:	217931   Click image for larger version

Name:	cssColour2.jpg
Views:	20
Size:	42.5 KB
ID:	217932  
Karellen is online now   Reply With Quote
Old 09-06-2025, 05:10 PM   #3
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 791
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
I get that color code in the CSS Live panel no matter where I am in the HTML file. Oddly, my File Preview panel is black and white. I guess that's following my Dark theme, though Edit > Preferences > Editor Settings > Color Scheme is set to pyte-light. I swear that yesterday the whole Editor UI was pyte-light. I'm not sure if I updated to Calibre 8.10 in between the possibly-hallucinated difference or not (I'm on Windows 11).

EDIT: the following site seems to be showing that color matching the background color of the code(?) panel:

https://rgb.to/rgb/221,221,221
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-09-06 160541.png
Views:	23
Size:	261.2 KB
ID:	217935  

Last edited by enuddleyarbl; 09-06-2025 at 05:16 PM.
enuddleyarbl is offline   Reply With Quote
Old 09-06-2025, 05:12 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,138
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by enuddleyarbl View Post
I get that color code in the CSS Live panel no matter where I am in the HTML file. Oddly, my File Preview panel is black and white. I guess that's following my Dark theme, though Edit > Preferences > Editor Settings > Color Scheme is set to pyte-light. I swear that yesterday the whole Editor UI was pyte-light. I'm not sure if I updated to Calibre 8.10 in between the possibly-hallucinated difference or not (I'm on Windows 11).
Would you mind changing your color palate to something readable? You're live CSS is unreadable as the contrast is that poor. Then you can report for screen grab. Thanks.
JSWolf is offline   Reply With Quote
Old 09-06-2025, 05:31 PM   #5
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 791
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
I'm actually in the process of trying to figure out how to do change that color scheme. As I mentioned above, I don't think that Live CSS panel looked that way yesterday and I don't know what changed.

EDIT: Well, the only way I could get a reasonable color scheme in Calibre was to change to a Light theme in both the main Calibre program and in the Editor (without spending a lot of time trying to figure out how to set up a custom theme). All the Dark themes have some odd colors and the Live CSS and File Preview panes follow the Dark theme regardless of my setting a light theme in the editor. But, with a Light theme, that color code isn't present in the Live CSS pane. As @Karellen mentioned, I guess that code's there for displaying within the editor. But, it seems odd that code would appear in the Live CSS pane merely for the editor's purpose and not the book's.

Last edited by enuddleyarbl; 09-06-2025 at 07:09 PM.
enuddleyarbl is offline   Reply With Quote
Old 09-06-2025, 07:09 PM   #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,476
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Go to preview settings section of the editor preferences and change the background color back to no change.
kovidgoyal is offline   Reply With Quote
Old 09-06-2025, 07:17 PM   #7
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 791
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Thanks, Kovid. That returned the background color of the File Preview pane to white and got rid of that color: rgb(...) entry in the Live CSS pane. Is there any way to have the Live CSS pane also have a white background?
enuddleyarbl is offline   Reply With Quote
Old 09-06-2025, 07:25 PM   #8
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,476
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, it follows your UI colors. Looking at your screenshot it looks like you have customised those, I suggest you remove that customisation then you will find the default dark mode colors for Live CSS quite useable.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	20
Size:	433.0 KB
ID:	217939  
kovidgoyal is offline   Reply With Quote
Old 09-06-2025, 08:30 PM   #9
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 791
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
I'm guessing your screenshot was with the Calibre main program set to use a Dark theme and the editor to use the automatic wombat-dark theme. For my screenshot, I was using a Dark theme at the Calibre level and the pyte-light Editor theme. No custom colors anywhere. For some reason, at least on this Windows 11 installation, the combination of a Dark Calibre theme and any Light Editor theme results in some form of poor readability in some aspect of the editor.

Dark/Dark or Light/Light combinations seem fine. I initially tried a Dark/Dark combo (I'm pretty sure the best was Dark/wombat-dark), but found the main "code" panel to be a tad difficult to work with. So, I went to that Dark/pyte-light combo as the best of the Dark/Light combos. But, then I ran across that color rgb code and started noticing the visibility issues more. Changing over to a Light/Light (Light/pyte-light) theme works fine, though. I've used that for years without problem and just thought I'd give the Dark theme at the Calibre level a try.
enuddleyarbl is offline   Reply With Quote
Old 09-06-2025, 09:08 PM   #10
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,476
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah yes, I had forgotten that the Live CSS panel does use colors from the code view theme for its text, while its background is the UI colors.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Short Fiction Various: Past Masters 221, v1, 29 May 2025 Pulpmeister Other Books 0 05-28-2025 11:04 PM
Short Fiction Various: Past Masters 221, v1, 29 May 2025 Pulpmeister Kindle Books 0 05-28-2025 11:03 PM
Short Fiction Various: Past Masters 221, v1, 29 May 2025 Pulpmeister ePub Books 0 05-28-2025 11:02 PM
Mystery and Crime Kabel, Walther: Harald Harst (221) - Große Schwindlerkonzer. V1.0 [German] 18.12.2023 Zentaurus ePub Books 0 12-18-2023 08:17 AM
Calibre PDF Output: Adding Background Rgb colors customization options and Font Color Lodan PDF 7 02-17-2019 09:09 AM


All times are GMT -4. The time now is 03:36 AM.


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