![]() |
#46 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#47 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,683
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Thanks Kovid.
Available in 4.6 BR |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
I just tried the dark mode on macOS. I like it a lot. One thing about various EPUBs is that they can sometimes use various font and background colors. As links are forced to be a certain color in night mode, can the same be done for fonts, and background colors (none)? iOS Books does as such since it is the most reliable way to ensure all text displays well in dark mode.
if custom CSS could also respond to a media-query for dark mode (@media (prefers-color-scheme: dark)), that'd also help. Last edited by democrite; 12-12-2019 at 08:47 PM. |
![]() |
![]() |
![]() |
#49 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 882
Karma: 409970
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Windows 10: Add support for the dark mode.
If you turn on dark mode under the Windows Settings->Personalisation->Colors and restart calibre it will use dark colors. Can also be enabled by setting the CALIBRE_USE_DARK_PALETTE environment variable. This only implemented for Windows 10? Alternative for linux ???? |
![]() |
![]() |
![]() |
#50 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,981
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Oh My
![]() ![]() ![]() ![]() ![]() I did not know I need this that much. ![]() ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#51 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
And if you want to use the custom dark palette, without changing system colors, set the environment variable it works on linux as well. |
|
![]() |
![]() |
![]() |
#52 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@democrite: I'm not a fan of overriding colors in books, the colors could be used for semantic meaning. If you wish to do that, you can do it yourself via the user stylesheet. Sadly the dark mode media query does not work in webengine, but I can easily add a class to body for it.
|
![]() |
![]() |
![]() |
#53 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
I can understand how colors are meant to have semantic meaning, though in dark mode, often colors will not display well. An example, indeed text boxes (divs) can have a background to highlight some important text though they become unreadable, e.g. white text on a gray background. I think what iOS Books does is the best compromise, forcing all text to be light on dark and removing background colors. It's not ideal but without EPUBs specifically targeting dark mode, it is the most readable.
For dark mode, would you consider a different font color? White on black I think is a bit harsh. iOS indeed defaults to that for most apps in dark mode, though iOS Books uses #bebebe, gray on black, which I think is much easier on the eyes, particularly when reading in low light or in the dark. |
![]() |
![]() |
![]() |
#54 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can set whatever color you want in the viewer preferences. By default it follows the system colors. And again, you can easily override all colors via a user stylesheet.
|
![]() |
![]() |
![]() |
#55 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 441
Karma: 77256
Join Date: Sep 2011
Device: none
|
but such applies only to dark mode. If it were possible to override some settings only for dark, I would have done so. Sensible defaults that make EPUBs as readable as possible, given the wide variation in possible CSS markup, I think is good design.
|
![]() |
![]() |
![]() |
#56 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,058
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
I tried dark mode on my Windows 10 system using the environment variable instead of the system-wide setting. It works well for the built-in dialogs, but the dialogs popped up by plugins open with a white background that quickly changes dark.
Is there anything plugin developers can do to prevent this white flash? |
![]() |
![]() |
![]() |
#57 |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
flawless and love it. thanks so much for this.
|
![]() |
![]() |
![]() |
#58 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Like I said, I will add a class to body in dark mode so you can apply your css only for dark themes.
|
![]() |
![]() |
![]() |
#59 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#60 |
Fervent Pleasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
on my calibre the highlight for each book line is blue. is it possible for me to change that to another color? thank you.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
night mode | cybmole | Kindle Fire | 9 | 04-27-2015 01:43 AM |
Glo Night mode ? | Ethanaul | Kobo Reader | 1 | 07-23-2013 10:23 PM |
Odyssey Anyone using Night-Mode? | DuckieTigger | Bookeen | 2 | 01-28-2012 12:13 PM |
help with night mode | golfgirl | Kobo Tablets | 5 | 11-04-2011 10:40 AM |
Is there a night mode? | zeroh | Nook Color & Nook Tablet | 5 | 12-04-2010 10:24 AM |