Merge pull request #5546 from ligfx/qtdynamicthemes

DolphinQt2: live updates to UI theme
This commit is contained in:
shuffle2
2017-06-05 17:15:17 -07:00
committed by GitHub
9 changed files with 54 additions and 21 deletions

View File

@ -27,6 +27,12 @@ Settings& Settings::Instance()
return settings;
}
void Settings::SetThemeName(const QString& theme_name)
{
SConfig::GetInstance().theme_name = theme_name.toStdString();
emit ThemeChanged();
}
QString Settings::GetThemeDir() const
{
return QString::fromStdString(File::GetThemeDir(SConfig::GetInstance().theme_name));