01-30-2017, 11:13 AM | #1 |
Junior Member
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 |
01-30-2017, 12:08 PM | #2 |
creator of calibre
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.
|
Advert | |
|
02-02-2017, 04:05 PM | #3 |
Junior Member
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)? |
02-02-2017, 04:07 PM | #4 |
Resident Curmudgeon
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.
|
02-02-2017, 09:31 PM | #5 |
creator of calibre
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)
|
Advert | |
|
02-07-2017, 04:22 AM | #6 |
Junior Member
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 |
02-07-2017, 05:44 AM | #7 |
creator of calibre
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.
|
02-26-2019, 07:59 AM | #8 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2016
Location: UK
Device: Kobo Forma
|
Enabling Dark Theme in Calibre
Quote:
Would it be possible to implement a switch in calibre to opt for the dark theme in the app only? Regards, Jose |
|
10-05-2019, 01:59 PM | #9 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2019
Device: Boox Nova Pro
|
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.
|
10-05-2019, 08:52 PM | #10 | |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
10-13-2019, 03:56 PM | #11 |
Junior Member
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.
|
10-13-2019, 04:31 PM | #12 |
null operator (he/him)
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 |
12-06-2019, 06:20 AM | #13 | |
Fervent Pleasure Seeker
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
|
|
12-06-2019, 06:51 AM | #14 | |
Fervent Pleasure Seeker
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
Quote:
tried deviant art theme and it was awful! |
|
12-06-2019, 06:53 AM | #15 |
Fervent Pleasure Seeker
Posts: 1,220
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
|
|
Thread Tools | Search this Thread |
|
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 |