mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
settings_dialog: add color picker for main window tool icons
This commit is contained in:
parent
fb191693d1
commit
cfa7d04c49
3 changed files with 10 additions and 0 deletions
|
@ -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());
|
std::vector<std::string> selected_ls = std::vector<std::string>(selectedlle.begin(), selectedlle.end());
|
||||||
xemu_settings->SaveSelectedLibraries(selected_ls);
|
xemu_settings->SaveSelectedLibraries(selected_ls);
|
||||||
|
ToolBarRepaintRequest();
|
||||||
});
|
});
|
||||||
connect(ui->okButton, &QAbstractButton::clicked, xemu_settings.get(), &emu_settings::SaveSettings);
|
connect(ui->okButton, &QAbstractButton::clicked, xemu_settings.get(), &emu_settings::SaveSettings);
|
||||||
connect(ui->okButton, &QAbstractButton::clicked, this, &QDialog::accept);
|
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_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_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();
|
AddConfigs();
|
||||||
AddStylesheets();
|
AddStylesheets();
|
||||||
|
|
|
@ -24,6 +24,7 @@ Q_SIGNALS:
|
||||||
void GuiSettingsSyncRequest();
|
void GuiSettingsSyncRequest();
|
||||||
void GuiStylesheetRequest(const QString& path);
|
void GuiStylesheetRequest(const QString& path);
|
||||||
void GuiSettingsSaveRequest();
|
void GuiSettingsSaveRequest();
|
||||||
|
void ToolBarRepaintRequest();
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void OnBackupCurrentConfig();
|
void OnBackupCurrentConfig();
|
||||||
void OnApplyConfig();
|
void OnApplyConfig();
|
||||||
|
|
|
@ -1166,6 +1166,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pb_tool_icon_color">
|
||||||
|
<property name="text">
|
||||||
|
<string>Main window tool icons</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_icon_color">
|
<widget class="QPushButton" name="pb_icon_color">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue