Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2022, 04:38 PM   #1
marinheiro
Enthusiast
marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.
 
Posts: 30
Karma: 377922
Join Date: Nov 2010
Device: Sony PRS-T1, Pocketbook, Kobo Aura, Kobo Elipsa
turning off dark mode

I have a vision problem (temporary I hope) which is making it hard for me to read on a computer and almost impossible in dark mode. I am using Calibre 5.43.0 running on Manjaro Linux, and it is in dark mode. I can't find a way to rurn dark mode off - I've looked in Preferences/Look and Feel and can't see anything, but I could easily be missing it. Or maybe its fixed by Manjaro? (I generally only use the most basic functions of calibre, don't know how to set up my own themes, etc - I'm hoping for a simple 'off' switch somewhere)

Any advice?

Graham
marinheiro is offline   Reply With Quote
Old 07-01-2022, 11:11 PM   #2
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre will follow your system color preferences. Or you can use an environment variable to control it. https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is offline   Reply With Quote
Advert
Old 07-02-2022, 04:30 PM   #3
marinheiro
Enthusiast
marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.
 
Posts: 30
Karma: 377922
Join Date: Nov 2010
Device: Sony PRS-T1, Pocketbook, Kobo Aura, Kobo Elipsa
Manjaro (I'm using the XFCE graphical environment) doesn't seem to have a single setting to turn dark mode on and off (and no other application I'm running is defaulting to dark mode).

I've tried setting the environment variable 'live' ie.

Quote:
export CALIBRE_USE_DARK_PALETTE=0 && calibre
and putting it in my .bashrc. printenv shows USE_DARK_PALETTE is set to zero, but Calibre still starts up in dark mode.

Graham.
marinheiro is offline   Reply With Quote
Old 07-02-2022, 04:56 PM   #4
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by marinheiro View Post
Manjaro (I'm using the XFCE graphical environment) doesn't seem to have a single setting to turn dark mode on and off (and no other application I'm running is defaulting to dark mode).

I've tried setting the environment variable 'live' ie.



and putting it in my .bashrc. printenv shows USE_DARK_PALETTE is set to zero, but Calibre still starts up in dark mode.

Graham.
You can create two shortcuts to calibre one for dark mode and one for light in the shortcut in properties write this:
caliber --detach %U
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	167
Size:	48.0 KB
ID:	194708  
dunhill is offline   Reply With Quote
Old 07-02-2022, 10:27 PM   #5
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Putting it in your bashrc is pointless, as ashrc is not sourced when launching applications via whatever GUI you use. You need to put it somewhere systemwide, where exactly depends on your distro, typically something like /etc/environment or /etc/profile or similar.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-03-2022, 07:08 PM   #6
marinheiro
Enthusiast
marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.marinheiro ought to be getting tired of karma fortunes by now.
 
Posts: 30
Karma: 377922
Join Date: Nov 2010
Device: Sony PRS-T1, Pocketbook, Kobo Aura, Kobo Elipsa
Well, I was setting it in bashrc and then calling Calibre from an xterm, so I thought it should have worked.

Regardless, I removed the setting from .bashrc and put it in /etc/environment. Printenv shows

CALIBRE_USE_DARK_PALETTE=0

but however I start Calibre it still comes up with dark background and light fonts. I tried running in debug mode, which shows up two errors, but I don't know if they are relevant::

Quote:
alibre Debug log
calibre 5.43 embedded-python: False is64bit: True
Linux-5.15.48-1-MANJARO-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.48-1-MANJARO', '#1 SMP PREEMPT Thu Jun 16 12:33:56 UTC 2022')
Python 3.10.5
Interface language: en_GB
calibre 5.43 embedded-python: False is64bit: True
Linux-5.15.48-1-MANJARO-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.15.48-1-MANJARO', '#1 SMP PREEMPT Thu Jun 16 12:33:56 UTC 2022')
Python 3.10.5
Interface language: en_GB
Not controlling automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 127.59069767441859 x 127.92124352331606
Using calibre Qt style: True
Failed to read metadata from font file: /usr/share/fonts/TTF/TSCu_Comic.ttf tuple index out of range
Failed to read metadata from font file: /usr/share/fonts/TTF/TSCu_Times.ttf tuple index out of range
[0.00] Starting up...
[0.01] Showing splash screen...
[0.06] splash screen shown
[0.06] Initializing db...
[0.10] db initialized
[0.10] Constructing main UI...
[0.82] main UI initialized...
[0.82] Hiding splash screen
Starting QuickView
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 900, resource id: 10566932, major code: 40 (TranslateCoords), minor code: 0
[3.47] splash screen hidden
[3.47] Started up in 3.47 seconds with 1322 books
Graham
marinheiro is offline   Reply With Quote
Old 07-03-2022, 09:53 PM   #7
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If it is still in dark mode then your system is using a qt theme set to dark mode.
kovidgoyal is offline   Reply With Quote
Old 07-16-2022, 09:25 AM   #8
JDesat
Connoisseur
JDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beautyJDesat does all things with Zen-like beauty
 
Posts: 99
Karma: 32768
Join Date: Dec 2012
Device: Kobo Glo HD, Kobo Clara HD
Stupid question... I've had my laptop set to dark mode ever since it was an option, but Calibre was still in light mode until I installed v6.1 a few minutes ago. From what I've read it should have been in dark mode since the system has been the whole time and I have no clue why it wasn't, but in any case. I want the system in dark mode and I want Calibre in light mode. I've read about the environment variables edit I can make, but it didn't seem to do anything when I tried it, so now we're at the stupid question:
Do I need to restart the computer after setting the variable for it to work? Or should it work immediately?
JDesat is offline   Reply With Quote
Old 07-16-2022, 10:12 AM   #9
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JDesat View Post
Stupid question... I've had my laptop set to dark mode ever since it was an option, but Calibre was still in light mode until I installed v6.1 a few minutes ago. From what I've read it should have been in dark mode since the system has been the whole time and I have no clue why it wasn't, but in any case. I want the system in dark mode and I want Calibre in light mode. I've read about the environment variables edit I can make, but it didn't seem to do anything when I tried it, so now we're at the stupid question:
Do I need to restart the computer after setting the variable for it to work? Or should it work immediately?
The environment variables are no longer used. In calibre, go to Preferences / Look & feel / Main interface, set the Color Palette to light, then restart calibre.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: Dark Mode (Windows) Book Details Pop-Up Cover Background Not Changing to Dark cgrapski Calibre 7 05-03-2021 11:45 PM
What uses more juice, default mode or dark mode? Luffy Amazon Kindle 38 09-28-2020 02:49 PM
Calibre 4.10 night mode/dark mode likeaghost Calibre 11 05-03-2020 05:43 PM
Dark mode with dark font? Darkenmal Calibre 12 11-04-2019 11:24 PM
Rooting - I may be turning to the dark side waffleman Nook Developer's Corner 7 01-21-2011 06:16 PM


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


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