mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 05:45:21 +00:00
fix dark theme switching on initial welcome dialog (#16373)
This commit is contained in:
parent
05d12f68ad
commit
24655fd975
5 changed files with 13 additions and 23 deletions
|
|
@ -161,19 +161,7 @@ bool gui_application::Init()
|
|||
{
|
||||
welcome_dialog* welcome = new welcome_dialog(m_gui_settings, false);
|
||||
|
||||
bool use_dark_theme = false;
|
||||
|
||||
connect(welcome, &QDialog::accepted, this, [&]()
|
||||
{
|
||||
use_dark_theme = welcome->does_user_want_dark_theme();
|
||||
});
|
||||
|
||||
welcome->exec();
|
||||
|
||||
if (use_dark_theme)
|
||||
{
|
||||
m_gui_settings->SetValue(gui::m_currentStylesheet, "Darker Style by TheMitoSan");
|
||||
}
|
||||
}
|
||||
|
||||
// Check maxfiles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue