mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
stylesheets: UI Colors fixes
This commit is contained in:
parent
a822d990d2
commit
ee98683538
7 changed files with 32 additions and 23 deletions
|
|
@ -1138,18 +1138,11 @@ void main_window::CreateConnects()
|
|||
connect(&dlg, &settings_dialog::GuiSettingsSaveRequest, this, &main_window::SaveWindowState);
|
||||
connect(&dlg, &settings_dialog::GuiSettingsSyncRequest, [=]() {ConfigureGuiFromSettings(true); });
|
||||
connect(&dlg, &settings_dialog::GuiStylesheetRequest, this, &main_window::RequestGlobalStylesheetChange);
|
||||
connect(&dlg, &settings_dialog::ToolBarRepaintRequest, this, &main_window::RepaintToolBarIcons);
|
||||
connect(&dlg, &settings_dialog::ToolBarRepaintRequest, gameListFrame, &game_list_frame::RepaintToolBarIcons);
|
||||
connect(&dlg, &settings_dialog::accepted, [this](){
|
||||
if (guiSettings->GetValue(GUI::m_enableUIColors).toBool())
|
||||
{
|
||||
gameListFrame->RepaintIcons(guiSettings->GetValue(GUI::gl_iconColor).value<QColor>());
|
||||
}
|
||||
else
|
||||
{
|
||||
gameListFrame->RepaintIcons(GUI::get_Label_Color("gamelist_icon_background_color"));
|
||||
}
|
||||
connect(&dlg, &settings_dialog::GuiRepaintRequest, [this](){
|
||||
gameListFrame->RepaintIcons(true);
|
||||
gameListFrame->RepaintToolBarIcons();
|
||||
RepaintToolbar();
|
||||
RepaintToolBarIcons();
|
||||
});
|
||||
dlg.exec();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue