Support folder based UI Themes

Support folder based Themes in UIThemeManager.
Add option to select config.json as them file.

PR #15888.
This commit is contained in:
Prince Gupta 2022-01-03 11:41:12 +05:30 committed by GitHub
parent 61504ae3b1
commit 7e8a176751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 121 additions and 29 deletions

View file

@ -256,7 +256,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
m_ui->customThemeFilePath->setSelectedPath(Preferences::instance()->customUIThemePath());
m_ui->customThemeFilePath->setMode(FileSystemPathEdit::Mode::FileOpen);
m_ui->customThemeFilePath->setDialogCaption(tr("Select qBittorrent UI Theme file"));
m_ui->customThemeFilePath->setFileNameFilter(tr("qBittorrent UI Theme file (*.qbtheme)"));
m_ui->customThemeFilePath->setFileNameFilter(tr("qBittorrent UI Theme file (*.qbtheme config.json)"));
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
m_ui->checkUseSystemIcon->setChecked(Preferences::instance()->useSystemIconTheme());