mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
settings_dialog: add color picker for main window tool icons
This commit is contained in:
parent
fb191693d1
commit
cfa7d04c49
@ -81,6 +81,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
||||
}
|
||||
std::vector<std::string> selected_ls = std::vector<std::string>(selectedlle.begin(), selectedlle.end());
|
||||
xemu_settings->SaveSelectedLibraries(selected_ls);
|
||||
ToolBarRepaintRequest();
|
||||
});
|
||||
connect(ui->okButton, &QAbstractButton::clicked, xemu_settings.get(), &emu_settings::SaveSettings);
|
||||
connect(ui->okButton, &QAbstractButton::clicked, this, &QDialog::accept);
|
||||
@ -704,6 +705,7 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
|
||||
};
|
||||
connect(ui->pb_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::gl_iconColor, "Choose icon color"); });
|
||||
connect(ui->pb_tool_bar_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::mw_toolBarColor, "Choose tool bar color"); });
|
||||
connect(ui->pb_tool_icon_color, &QAbstractButton::clicked, [=]() { colorDialog(GUI::mw_toolIconColor, "Choose tool icon color"); });
|
||||
|
||||
AddConfigs();
|
||||
AddStylesheets();
|
||||
|
@ -24,6 +24,7 @@ Q_SIGNALS:
|
||||
void GuiSettingsSyncRequest();
|
||||
void GuiStylesheetRequest(const QString& path);
|
||||
void GuiSettingsSaveRequest();
|
||||
void ToolBarRepaintRequest();
|
||||
private Q_SLOTS:
|
||||
void OnBackupCurrentConfig();
|
||||
void OnApplyConfig();
|
||||
|
@ -1166,6 +1166,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_tool_icon_color">
|
||||
<property name="text">
|
||||
<string>Main window tool icons</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pb_icon_color">
|
||||
<property name="text">
|
||||
|
Loading…
Reference in New Issue
Block a user