mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 02:36:15 +03:00
separate content
parent
09386ce52a
commit
8a6d8ebab5
1 changed files with 2 additions and 36 deletions
|
@ -13,40 +13,6 @@ After you have downloaded your chosen `.qbtheme` theme file, using it is quite e
|
||||||
|
|
||||||
![example theme setup](https://user-images.githubusercontent.com/36061843/77887653-cef5f680-721f-11ea-88ab-d7b33c190f9b.png)
|
![example theme setup](https://user-images.githubusercontent.com/36061843/77887653-cef5f680-721f-11ea-88ab-d7b33c190f9b.png)
|
||||||
|
|
||||||
# What are .qbttheme files?
|
# Developing new custom themes
|
||||||
These are theme bundles for qBittorrent. This should contain all files required to support theming in qBittorrent and are packed using [Qt's Resource Compiler](https://doc.qt.io/qt-5/rcc.html). QBittorrent accesses files inside `.qbttheme` using [Qt's Resource System](https://doc.qt.io/qt-5/resources.html), currently, QBittorrent only searches `stylesheet.qss` inside `.qbttheme` file.
|
|
||||||
|
|
||||||
# How to create your own theme bundles?
|
|
||||||
You can check out this Python script([here](https://github.com/jagannatharjun/qbt-theme/blob/master/Builds/make-resource.py)) for the easy creation of .qbttheme file. QBittorrent loads `stylesheet.qss` to support theming. `stylesheet.qss` is basically a [Qt's style sheet](https://doc.qt.io/qt-5/stylesheet.html). You can read more about stylesheet's syntax [here](https://doc.qt.io/Qt-5/stylesheet-syntax.html) and a reference can be found [here](https://doc.qt.io/qt-5/stylesheet.html). QBitTorrent mounts `.qbttheme` file in `:uitheme` prefix, so every file should be referenced accordingly inside `stylesheet.qss`
|
|
||||||
|
|
||||||
# Special Cases
|
|
||||||
For changing Transfer List row colors which are based on concerned torrent state, one can add the following to their `stylesheet.qss`.
|
|
||||||
|
|
||||||
```css
|
|
||||||
TransferListWidget
|
|
||||||
{
|
|
||||||
qproperty-downloadingStateForeground: limegreen;
|
|
||||||
qproperty-forcedDownloadingStateForeground: limegreen;
|
|
||||||
qproperty-downloadingMetadataStateForeground: limegreen;
|
|
||||||
qproperty-allocatingStateForeground: #cccccc;
|
|
||||||
qproperty-stalledDownloadingStateForeground: #cccccc;
|
|
||||||
qproperty-stalledUploadingStateForeground: #cccccc;
|
|
||||||
qproperty-uploadingStateForeground: #63b8ff;
|
|
||||||
qproperty-forcedUploadingStateForeground: #63b8ff;
|
|
||||||
qproperty-pausedDownloadingStateForeground: #fa8090;
|
|
||||||
qproperty-pausedUploadingStateForeground: #4f94cd;
|
|
||||||
qproperty-errorStateForeground: red;
|
|
||||||
qproperty-missingFilesStateForeground: red;
|
|
||||||
qproperty-queuedDownloadingStateForeground: #00cdcd;
|
|
||||||
qproperty-queuedUploadingStateForeground: #00cdcd;
|
|
||||||
qproperty-checkingDownloadingStateForeground: #00cdcd;
|
|
||||||
qproperty-checkingUploadingStateForeground: #00cdcd;
|
|
||||||
qproperty-checkingResumeDataStateForeground: #00cdcd;
|
|
||||||
qproperty-movingStateForeground: #00cdcd;
|
|
||||||
qproperty-unknownStateForeground: red;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If you are interested in developing new custom themes, check out [this page](https://github.com/qbittorrent/qBittorrent/wiki/Create-custom-themes-for-qBittorrent).
|
Loading…
Reference in a new issue