mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Show better icons in Preferences for oxygen icon theme
- only when oxygen icon theme is actually used
This commit is contained in:
parent
62ac0e2fde
commit
a046ec4ece
|
@ -59,7 +59,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
|||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
ui->setupUi(this);
|
||||
|
||||
if (mApp->currentStyle() == QLatin1String("oxygen")) {
|
||||
if (QIcon::themeName().toLower() == QLatin1String("oxygen")) {
|
||||
ui->listWidget->item(0)->setIcon(QIcon::fromTheme("preferences-desktop", QIcon(":/icons/preferences/preferences-desktop.png")));
|
||||
ui->listWidget->item(1)->setIcon(QIcon::fromTheme("format-stroke-color", QIcon(":/icons/preferences/application-x-theme.png")));
|
||||
ui->listWidget->item(2)->setIcon(QIcon::fromTheme("tab-new-background", QIcon(":/icons/preferences/applications-internet.png")));
|
||||
|
|
Loading…
Reference in New Issue
Block a user