MSW_DarkMode: Next Improvements

* Refreshed title bar for all Dialogs and MainFrame
* Refreshed header of the DataViewCtrl and ListView
* Refresh tooltips
* Redraw SpinCtrls
* Use system menu with is colored in respect to the color mode
* Preferences: Added parameter "Use system menu for application" and moved to the "Dark mode" tab with "Enable Dark mode parameter"
This commit is contained in:
YuSanka 2021-11-01 16:24:31 +01:00
parent 7520e2f193
commit aff9e1f7ea
10 changed files with 123 additions and 33 deletions

View file

@ -401,6 +401,18 @@ void OptionsSearcher::show_dialog()
search_dialog->Popup();
}
void OptionsSearcher::dlg_sys_color_changed()
{
if (search_dialog)
search_dialog->on_sys_color_changed();
}
void OptionsSearcher::dlg_msw_rescale()
{
if (search_dialog)
search_dialog->msw_rescale();
}
void OptionsSearcher::add_key(const std::string& opt_key, Preset::Type type, const wxString& group, const wxString& category)
{
groups_and_categories[get_key(opt_key, type)] = GroupAndCategory{group, category};
@ -666,7 +678,7 @@ void SearchDialog::OnLeftDown(wxMouseEvent& event)
ProcessSelection(search_list->GetSelection());
}
void SearchDialog::on_dpi_changed(const wxRect& suggested_rect)
void SearchDialog::msw_rescale()
{
const int& em = em_unit();