Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-30-2017, 11:13 AM   #1
albertp007
Junior Member
albertp007 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Kindle Voyage, Kobo Aura One
Dark theme in Calibre for Windows 10

Hi all, there was a thread some time back about adding a couple of lines to read in a qss file to style the Calibre GUI. Not sure if anybody has done that already, but I have made a 4-liner change in the source code which hopefully won't break anything (famous last words!)

Basically, you add the environment variable "CALIBRE_QSS_PATH" and set it to be, well, the path of the qss file (absolute or relative to start directory). I took mine from https://github.com/ColinDuquesnoy/QDarkStyleSheet. The side panel on the left with the Authors, Titles, Tags etc is still light though, will need to tweak the qss a little bit. For now, I am just hiding it, I don't use it that often anyways.

If anybody is interested, let me know and I will co-ordinate to check it in. I actually don't know how to create a package so I am still running with CALIBRE_DEVELOP_FROM on. If anybody could point me somewhere, that would be very much appreciated.

Please see attached screenshot.

Cheers,
Albert
Attached Thumbnails
Click image for larger version

Name:	DarkCalibre.png
Views:	9304
Size:	75.1 KB
ID:	154641  
albertp007 is offline  
Old 01-30-2017, 12:08 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: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre (well technically Qt) on windows picks up its colors from the system theme -- so if you change your system theme it should change as well, that would likely work with the Tag Browser (the panel on the left) as well.
kovidgoyal is online now  
Advert
Old 02-02-2017, 04:05 PM   #3
zakky
Junior Member
zakky began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2017
Device: Kindle PW3
Hmmm I have my color selected to red in win 10 and only the bar with buttons to close minimise and resize Calibre is in red, but the rest is still white/lightgrey.
And I'm very interested if there is a way to change theme for whole Calibre to dark?
Can you albertp007 explain me a bit more, how did you change yours (and if it is still working or did it break anything)?
zakky is offline  
Old 02-02-2017, 04:07 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: 75,983
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I suggest you change the blue on grey. It just doesn't work.
JSWolf is online now  
Old 02-02-2017, 09:31 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: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Best support for colors comes with using the system theme in calibre (Preferences->Look & Feel->User interface style->change it to system default)
kovidgoyal is online now  
Advert
Old 02-07-2017, 04:22 AM   #6
albertp007
Junior Member
albertp007 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Kindle Voyage, Kobo Aura One
Hi Zakky, I did it by changing a couple of lines of code in a development environment. Those changes are only in my own environment.

Hi Kovid, setting the interface style to system default in Calibre won't change the background to dark. I am running on the Windows 10 anniversary update (1607) which includes an option to switch it to Dark mode. It will change certain elements to have a dark background, but not all. For example. after selecting dark mode, the background for programs like notepad, file explorer etc, including Calibre (with interface style set to system default) are still light. Background color for taskbars and some other elements do go dark, but not all. We have the option to change theme to a high contrast theme, which does turn the background of applications dark, but then it makes the color of every other element looks not very pleasant. I read from somewhere that someone manage to change the background color of many applications to dark by changing settings in the registry, but that is a path I don't want to go down. This is more like a Windows problem which doesn't give you an easy way to theme it down to individual widgets, unlike Linux. Hence my attempt to make the qss-related change . If you have other suggestions, please do let me know, I am more than eager to try out.

Hi JSWolf, yeah, agree, will need to spend some time figuring out which element it is in the qss file and make the change accordingly.

Cheers,
Albert
albertp007 is offline  
Old 02-07-2017, 05:44 AM   #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: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to customize the color theme in windows and change the text area colors to dark -- that will do it.
kovidgoyal is online now  
Old 02-26-2019, 07:59 AM   #8
jpirez
Junior Member
jpirez began at the beginning.
 
jpirez's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2016
Location: UK
Device: Kobo Forma
Lightbulb Enabling Dark Theme in Calibre

Quote:
Originally Posted by kovidgoyal View Post
You need to customize the color theme in windows and change the text area colors to dark -- that will do it.
I would like to enable the dark theme just in Calibre but not in Windows in general.

Would it be possible to implement a switch in calibre to opt for the dark theme in the app only?

Regards,

Jose
jpirez is offline  
Old 10-05-2019, 01:59 PM   #9
gootube2000
Junior Member
gootube2000 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2019
Device: Boox Nova Pro
Quote:
Originally Posted by kovidgoyal View Post
You need to customize the color theme in windows and change the text area colors to dark -- that will do it.
I can confirm with utmost certainty that this is not in any way possible in Windows 10. It has an option for a "dark theme," but this theme only applies to Universal Windows Platform applications and the file explorer. No other applications, Calibre included, are affected by this setting, and no setting in Windows can affect their colors (much unlike one can in most Linux distros). This is why there are still threads asking about this.
gootube2000 is offline  
Old 10-05-2019, 08:52 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: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by gootube2000 View Post
I can confirm with utmost certainty that this is not in any way possible in Windows 10. It has an option for a "dark theme," but this theme only applies to Universal Windows Platform applications and the file explorer. No other applications, Calibre included, are affected by this setting, and no setting in Windows can affect their colors (much unlike one can in most Linux distros). This is why there are still threads asking about this.
Change the system color theme the one in the old style control panel, not th dark mode toggle for metro apps.
kovidgoyal is online now  
Old 10-13-2019, 03:56 PM   #11
ShoeQueen
Junior Member
ShoeQueen began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2019
Device: Android
I've tried to access the old style color control panel, but it appears to have disappeared from the latest iteration of Windows 10. As a user who is on Calibre for hours at a time, I know I am not alone in the desire to see a night theme or color customization. I beg of you to consider making a Night Theme. The glare of the stark white is very hard on the eyes, and difficult for anyone with sight issues. I love the program, but a Night Theme would really make it much easier to use. Thank you.
ShoeQueen is offline  
Old 10-13-2019, 04:31 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Deviantart has Windows 10 themes, most (all ??) are built using the Ease Of Use->High Contrast feature, but they are not necessarily high contrast e.g. ==>> GreyEveTheme

Not sure how well they work with Qt based software like calibre, sigil, falkon etc

BR
BetterRed is offline  
Old 12-06-2019, 06:20 AM   #13
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
Quote:
Originally Posted by BetterRed View Post
Deviantart has Windows 10 themes, most (all ??) are built using the Ease Of Use->High Contrast feature, but they are not necessarily high contrast e.g. ==>> GreyEveTheme

Not sure how well they work with Qt based software like calibre, sigil, falkon etc

BR
thank you for this post. I'm going to give it a try.
pghaworth is offline  
Old 12-06-2019, 06:51 AM   #14
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
Quote:
Originally Posted by ShoeQueen View Post
I've tried to access the old style color control panel, but it appears to have disappeared from the latest iteration of Windows 10. As a user who is on Calibre for hours at a time, I know I am not alone in the desire to see a night theme or color customization. I beg of you to consider making a Night Theme. The glare of the stark white is very hard on the eyes, and difficult for anyone with sight issues. I love the program, but a Night Theme would really make it much easier to use. Thank you.
same experience here. no effect on Calibre and no way to make changes old style. there is dark mode or light mode and custom, which you can choose light or dark. still no effect on Calibre. my eyes are dying.

tried deviant art theme and it was awful!
pghaworth is offline  
Old 12-06-2019, 06:53 AM   #15
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
Quote:
Originally Posted by jpirez View Post
I would like to enable the dark theme just in Calibre but not in Windows in general.

Would it be possible to implement a switch in calibre to opt for the dark theme in the app only?

Regards,

Jose
this would be excellent!
pghaworth is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[THEME] CALIBRE Monstre - beta alfatreze Calibre 12 04-29-2024 09:17 AM
Theme TOC. Remember theme for each ebook erbilac Calibre 4 07-27-2016 09:20 AM
A beautiful theme for Windows antistar Deals and Resources (No Self-Promotion or Affiliate Links) 8 04-22-2013 01:46 PM
theme source for modern and sdk default theme gshank PocketBook Developer's Corner 6 07-18-2011 04:06 PM
Windows XP Energy Blue Theme TadW Lounge 0 10-31-2004 07:08 PM


All times are GMT -4. The time now is 05:00 AM.


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