Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 04:54 PM   #1
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: 910
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Help Getting a Plugin to Work

Theme Switcher Plugin for Calibre
This interface plugin allows you to apply custom visual themes in Calibre using palette files (*.calibre-palette) and stylesheets (*.qss). Its goal is to offer a modular and reproducible way to change the look of the graphical interface, including background colors, text, buttons, and scroll bars.

🔧 What does it do?
Adds an icon to the Calibre toolbar to access the theme switcher.

Automatically detects .calibre-palette files located in ~/.config/calibre/themes/.

Allows you to select and apply a theme from a popup window.

Applies the color palette using Qt's QPalette.

Apply additional visual styles (such as scroll bars) using .qss files from the plugin's resources/ folder.

Supports multiple themes: dark, light, custom, and any others added manually.

📁 Structure Requirements
Themes must be in ~/.config/calibre/themes/ with an INI file and a .calibre-palette extension.

The .qss styles must be in resources/ within the plugin, with names like scrollbar-dark.qss, scrollbar-light.qss, etc.

The plugin icon must be in images/icon.png.

But the icon doesn't appear in the toolbar. If someone could review it to make it functional, I'd be happy to share the credits.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	8
Size:	55.7 KB
ID:	218095  
Attached Files
File Type: zip theme_switcher.zip (4.6 KB, 3 views)

Last edited by dunhill; Today at 05:19 PM.
dunhill is offline   Reply With Quote
Old Today, 08:07 PM   #2
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: 21,888
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice
@dunhill

Asking for help in developing a plugin is not the intended purpose of the Plugin ideas thread. This is where it belongs… Developer's Corner

BR
BetterRed is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FootnoteLinker plugin won't work on Sigil 2.42. md029 Sigil 5 05-20-2025 05:45 PM
Plugin code example don't work un_pogaz Plugins 3 03-03-2020 12:25 PM
How does the KOReader Evernote plugin work? maximus83 KOReader 3 01-27-2019 03:27 PM
DRM removal plugin doesn't work joro Conversion 1 01-12-2019 09:54 PM
my first plugin did not work yang738 Development 5 07-24-2014 10:43 PM


All times are GMT -4. The time now is 09:20 PM.


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