mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Merge pull request #5546 from ligfx/qtdynamicthemes
DolphinQt2: live updates to UI theme
This commit is contained in:
commit
b8f2e24dd5
9 changed files with 54 additions and 21 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue