|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 1044682
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
[GUI plugin] Palette Switcher
Palette Switcher is a Calibre interface plugin that lets you manage and apply custom color palettes to the Calibre GUI. It provides a modular and reproducible way to change the look and feel of Calibre
Features Adds a toolbar icon to access the palette manager. Automatically detects .calibre-palette files stored in Calibre’s configuration directory. Lets you select and apply a palette from a popup window. Applies colors using Qt’s QPalette system. Supports importing and exporting palettes for easy sharing. Optionally auto‑applies the last used palette at startup. Works with multiple variants: light, dark, custom, or any palette you add manually. Can be extended with .qss style sheets for additional UI tweaks (e.g., scrollbars). File Structure Palettes are stored in the palettes/ subdirectory inside Calibre’s configuration folder: Linux: ~/.config/calibre/palettes Windows: %APPDATA%\calibre\palettes Files must use the .calibre-palette extension. Combined palette files can include both light and dark specifications. Optional .qss style sheets can be placed in the plugin’s resources/ folder (e.g., scrollbar-dark.qss, scrollbar-light.qss). Installation Download the plugin ZIP file. In Calibre, go to Preferences > Advanced > Plugins. Click Load plugin from file and select the ZIP. Restart Calibre. The Palette Switcher icon will appear in the toolbar. Compatibility Requires Calibre 6.25 or later. Should work on Windows, macOS, and Linux. Tested primarily on Linux — feedback from macOS and Windows users is welcome. License This plugin is released under the GNU GPL v3 license. Credits Special thanks to Comfy.n for their help in making the plugin work. Release notes: Spoiler:
Last edited by dunhill; Yesterday at 08:24 PM. Reason: Moved image to MR |
|
|
|
|
|
#2 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 1044682
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
for future use
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,871
Karma: 7945227
Join Date: Sep 2020
Device: none
|
That's a good starting point, I think.
![]() I prefer the version with automatic palette refresh upon selection. I managed to make a big archive containing all palette files posted in the Color Palettes thread, imported them with a single click, and now I'm enjoying several themes I hadn't tried before. Congratulations on your first plugin and thanks for the credits. |
|
|
|
|
|
#4 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 1044682
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Thanks again. Imagine, it's midnight and I'm working flat out here. |
|
|
|
|
|
|
#5 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,871
Karma: 7945227
Join Date: Sep 2020
Device: none
|
I'm trying to figure how some themes are able to style the border outline of the *native* calibre scrollbar handle. I didn't know this is possible.
Last edited by Comfy.n; 02-07-2026 at 11:31 PM. |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 1044682
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
Code:
QScrollBar:vertical { border: 1px solid #444; background: #2b2b2b; width: 12px; margin: 0px 0px 0px 0px; } QScrollBar::handle:vertical { background: #888; min-height: 20px; border: 1px solid #555; }
|
|
|
|
|
|
|
#7 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 989
Karma: 1044682
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Here's an improved version that can instantly switch (with just a select) between palette files, supports importing from zip files, and skips duplicate palettes.
Comfy.n Update Last edited by dunhill; Yesterday at 02:08 AM. |
|
|
|
|
|
#8 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,286
Karma: 30317806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
bothI couldn't be bothered with palettes until now. I've long wanted to use different palettes for each of the calibre installs I dodge between. What I'd like now is a palette browser - wading through 5 pages of posts in the Colour palettes thread and fishing around elsewhere is tedious. For me it doesn't have to be a calibre plugin, it fact I'd rather it wasn't, maybe a github page of some sort… or DeviantArt maybe. Anyway - thanks again. BR |
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,739
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I've used it now and it works prefectly. Just a doubt... how do you go back to the default dark or light theme?
--- Forget about it, I found it. Thank you. |
|
|
|
|
|
#10 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,286
Karma: 30317806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
|
|
#11 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,739
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Preferences -> Look & Feel -> Main Interface -> Adjust Colors -> Restore defaults.
|
|
|
|
|
|
#12 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,021
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,021
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@dunhill, would you mind adding a return to default button? I know you can do it in calibre's preferences, I see many people no knowing you can do this and/or how.
|
|
|
|
|
|
#14 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,871
Karma: 7945227
Join Date: Sep 2020
Device: none
|
Sure, it's attached.
|
|
|
|
|
|
#15 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,871
Karma: 7945227
Join Date: Sep 2020
Device: none
|
And this is a compact archive that contains only the .palette files.
(the larger archive contains other files their authors chose to share on their original posts, such as readme.txt files and screenshots) |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 04:15 PM |
| [GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |
| [GUI Plugin] Virtual Library Switcher | ALshaw | Plugins | 18 | 03-02-2018 12:53 AM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |