mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Use of system icon theme can now be disabled
This commit is contained in:
parent
5dfca9c685
commit
83ff66e0b1
27 changed files with 329 additions and 151 deletions
|
@ -36,6 +36,9 @@
|
|||
#include "json.h"
|
||||
#include "qbtsession.h"
|
||||
#include "misc.h"
|
||||
#ifndef DISABLE_GUI
|
||||
#include "iconprovider.h"
|
||||
#endif
|
||||
#include <QTcpSocket>
|
||||
#include <QDateTime>
|
||||
#include <QStringList>
|
||||
|
@ -240,7 +243,11 @@ void HttpConnection::respond() {
|
|||
// Icons from theme
|
||||
qDebug() << "list[0]" << list[0];
|
||||
if(list[0] == "theme" && list.size() == 2) {
|
||||
url = misc::getIconPath(list[1]);
|
||||
#ifdef DISABLE_GUI
|
||||
url = ":/Icons/oxygen/"+list[1]+".png";
|
||||
#else
|
||||
url = IconProvider::instance()->getIconPath(list[1]);
|
||||
#endif
|
||||
qDebug() << "There icon:" << url;
|
||||
} else {
|
||||
if (list[0] == "images") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue