mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Allow styling with QSS stylesheets
This commit is contained in:
@@ -105,6 +105,27 @@ void Preferences::setLocale(const QString &locale)
|
||||
setValue("Preferences/General/Locale", locale);
|
||||
}
|
||||
|
||||
bool Preferences::useCustomUITheme() const
|
||||
{
|
||||
return value("Preferences/General/UseCustomUITheme", false).toBool()
|
||||
&& !customUIThemePath().isEmpty();
|
||||
}
|
||||
|
||||
void Preferences::setUseCustomUITheme(const bool use)
|
||||
{
|
||||
setValue("Preferences/General/UseCustomUITheme", use);
|
||||
}
|
||||
|
||||
QString Preferences::customUIThemePath() const
|
||||
{
|
||||
return value("Preferences/General/CustomUIThemePath").toString();
|
||||
}
|
||||
|
||||
void Preferences::setCustomUIThemePath(const QString &path)
|
||||
{
|
||||
setValue("Preferences/General/CustomUIThemePath", path);
|
||||
}
|
||||
|
||||
bool Preferences::deleteTorrentFilesAsDefault() const
|
||||
{
|
||||
return value("Preferences/General/DeleteTorrentsFilesAsDefault", false).toBool();
|
||||
|
||||
@@ -98,6 +98,10 @@ public:
|
||||
// General options
|
||||
QString getLocale() const;
|
||||
void setLocale(const QString &locale);
|
||||
bool useCustomUITheme() const;
|
||||
void setUseCustomUITheme(bool use);
|
||||
QString customUIThemePath() const;
|
||||
void setCustomUIThemePath(const QString &path);
|
||||
bool deleteTorrentFilesAsDefault() const;
|
||||
void setDeleteTorrentFilesAsDefault(bool del);
|
||||
bool confirmOnExit() const;
|
||||
|
||||
Reference in New Issue
Block a user