settings_dialog: add color picker for main window tool icons

This commit is contained in:
Megamouse 2017-07-12 18:54:28 +02:00 committed by Ivan
parent fb191693d1
commit cfa7d04c49
3 changed files with 10 additions and 0 deletions

View File

@ -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();

View File

@ -24,6 +24,7 @@ Q_SIGNALS:
void GuiSettingsSyncRequest();
void GuiStylesheetRequest(const QString& path);
void GuiSettingsSaveRequest();
void ToolBarRepaintRequest();
private Q_SLOTS:
void OnBackupCurrentConfig();
void OnApplyConfig();

View File

@ -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">