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.
Last edited by dunhill; Yesterday at 05:19 PM.
|