You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page contains the necessary information to get started developing custom themes for qBittorrent. They are supported since version 4.2.2.
What are .qbttheme files?
These are theme bundles for qBittorrent.
They should contain all files required to support theming in qBittorrent and are packed using Qt's Resource Compiler.
qBittorrent accesses files inside .qbttheme using Qt's Resource System.
Currently, qBittorrent only searches for a stylesheet.qss and config.json inside a .qbttheme file but you can also add your own custom resources (read more here).
How to create your own theme bundles?
You can check out this Python script(here) for the easy creation of .qbttheme files.
At runtime, qBittorrent loads only stylesheet.qss to support theming and config.json which currently only manages GUI colors. You can include custom resources with your bundle files to use it with stylesheet.qss
Managing overall feel of GUI
stylesheet.qss is a Qt stylesheet, which is basically custom CSS for Qt.
You can read more about Qt stylesheet syntax here. A reference is also available here.
Changing QBittorrent specific colors
for changing qBittorrent specific GUI colors, you have to use config.json, NOTE: A large part of colors is already changeable from stylesheet but the following are QBitTorrent's specific context-sensitive colors,
Palette referes to QPalette, and following string(after .) denotes Color roles
Log refers to log messages and the following string (after .) denotes the type of messages
Transfer List refers to central view containing all of your torrents entries and the following string(after .) denotes torrent state on which based on which row colors would be decided.
<color> value supports normal rgb values(#rrggbb) or svg color names. It follows Qt's named color convention convention
This is introduced in qBittorrent v4.3.0
Using custom resources with bundles
qBittorrent uses QResources::registerResource to use the bundle file, you can imagine it like QBittorrent extracts bundle file in a special path which is :/uitheme, so every file should be referenced accordingly f.e let's see you have to change the image QRadiaButtons indicator, so to reference a light/radio_button.svg inside your bundle file, you should do something like this
Following way of changing TransferList row's color is removed after version 4.2.5, please change your bundle files accordingly and instead use config.json
Creating a theme for qBitTorrent doesn't look fun at all.
Here's an example: Dracula
Copy of qBitTorrent's official docs page:
The text was updated successfully, but these errors were encountered: