Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2020, 03:08 AM   #1
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
[REQUEST] Dark mode setting

I would really like to use the Dark mode, but (if I understand correctly) you cannot activate it yourself.
You need to have Windows set to use Dark mode, which is what I don't want to use.

So my request is a Calibre setting to be able to switch between light and dark mode.
jist is offline   Reply With Quote
Old 11-14-2020, 03:40 AM   #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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
CALIBRE_USE_DARK_PALETTE https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is offline   Reply With Quote
Advert
Old 11-14-2020, 04:39 AM   #3
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
Thanks, I gave it a shot, and it's probably me, but I couldn't figure it out.
Also, I would like to be able to switch easily between light and dark mode. (daytime use vs. night time use)

For some software you can use a customized shortcut with some 'switch' code in it for such purposes.
Could that perhaps be achieved with Calibre too?
jist is offline   Reply With Quote
Old 11-14-2020, 06:51 AM   #4
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by jist View Post
Thanks, I gave it a shot, and it's probably me, but I couldn't figure it out.
Also, I would like to be able to switch easily between light and dark mode. (daytime use vs. night time use)

For some software you can use a customized shortcut with some 'switch' code in it for such purposes.
Could that perhaps be achieved with Calibre too?
If your Windows is set to light mode, you can do this:

1) Create a new shortcut on you desktop and rename it to Calibre-Dark (or something like that);
2) Right-click it and go to Properties;
3) On the Properties window, edit the target to this:
Code:
C:\Windows\System32\cmd.exe /c SET CALIBRE_USE_DARK_PALETTE=1 && START calibre
4) Click on Change Icon and ponint it to: %ProgramFiles%\Calibre2\calibre.exe

Now, when you want to open calibre in light mode, just open as always (start menu, taskbar, etc). When you want dark mode, use this new shortcut.
thiago.eec is offline   Reply With Quote
Old 11-14-2020, 09:28 AM   #5
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
Quote:
Originally Posted by thiago.eec View Post
If your Windows is set to light mode, you can do this:
Thnx, that looks very promising thiago.eec

But... I am using a portable installation.
I tried editing the code, but I can't make it work.
Is this doable for portable? If so can you assist with that too?
jist is offline   Reply With Quote
Advert
Old 11-14-2020, 10:44 AM   #6
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: 74,025
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Have a watch and you'll see how to set an environment variable for Windows 10.

JSWolf is online now   Reply With Quote
Old 11-14-2020, 11:50 AM   #7
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by jist View Post
Thnx, that looks very promising thiago.eec

But... I am using a portable installation.
I tried editing the code, but I can't make it work.
Is this doable for portable? If so can you assist with that too?
Then, use it like this:

Code:
C:\Windows\System32\cmd.exe /c "SET CALIBRE_USE_DARK_PALETTE=1 && START /D ^"Full_Path_Calibre_Portable^" calibre-portable.exe"
Edit Full_Path_Calibre_Portable accordingly.

P.S.: To avoid the CMD window flashing up when you click the shortcut, go to its properties and choose "Run: Minimized".

Last edited by thiago.eec; 11-14-2020 at 02:32 PM.
thiago.eec is offline   Reply With Quote
Old 11-15-2020, 03:24 AM   #8
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
Thanks againthiago.eec

I got it to work, but it turns out flawed.
Things like the header bar and main panels remain white.

I am guessing it has to do with running a portable install. Well, it's even more complicated: I am running the normal calibre.exe from the deeper Calibre\Calibre Portable\Calibre folder.
(because else Calibre won't work with libraries on other drives/partitions.)

I'm giving up for now, thanks for helping to give it a try, much appreciated.
jist is offline   Reply With Quote
Old 11-15-2020, 05:21 AM   #9
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by jist View Post
Thanks againthiago.eec

I got it to work, but it turns out flawed.
Things like the header bar and main panels remain white.
The window header is white for me too, even without using environment variables.

Quote:
Originally Posted by jist View Post
I am guessing it has to do with running a portable install. Well, it's even more complicated: I am running the normal calibre.exe from the deeper Calibre\Calibre Portable\Calibre folder.
(because else Calibre won't work with libraries on other drives/partitions.)

I'm giving up for now, thanks for helping to give it a try, much appreciated.
I've tried pointing to calibre.exe here, and it worked just the same. I really don't know what the problem might be.
thiago.eec is offline   Reply With Quote
Old 11-15-2020, 07:04 AM   #10
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: 74,025
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@jist, did you watch the video?
JSWolf is online now   Reply With Quote
Old 11-15-2020, 07:50 AM   #11
jist
Enthusiast
jist began at the beginning.
 
Posts: 40
Karma: 10
Join Date: May 2018
Device: Onyx Note Lite - Win10
Quote:
Originally Posted by JSWolf View Post
@jist, did you watch the video?
Yes I did, and thanks for the link.
But it was wasted on me. It looked like some course on learning Environment Variables part II.
It just didn't connect to me, and I am probably a bit too lazy to put in much effort in this. It feels like too much of a hassle with limited chances of succes.

I hope it helps others though.
jist is offline   Reply With Quote
Reply

Tags
dark mode, windows


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What uses more juice, default mode or dark mode? Luffy Amazon Kindle 38 09-28-2020 02:49 PM
Feature Request: Dark Mode menu color/border Katsunami Calibre 3 09-01-2020 05:18 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
Voyage light setting in dark room j.p.s Amazon Kindle 8 11-29-2017 03:10 AM


All times are GMT -4. The time now is 07:12 PM.


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