ENH: modify diff for github

Change-Id: I3a441dbfa3167de3cee9fdafe62f7860fcb6891c
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-12-08 15:12:52 +08:00 committed by Lane.Wei
parent 65ff90690f
commit 00dfd1e765
13 changed files with 48 additions and 37 deletions

View file

@ -2722,8 +2722,9 @@ void GUI_App::UpdateDarkUI(wxWindow* window, bool highlited/* = false*/, bool ju
return;
}
if (m_is_dark_mode != dark_mode())
if (m_is_dark_mode != dark_mode() )
m_is_dark_mode = dark_mode();
if (m_is_dark_mode) {
auto original_col = window->GetBackgroundColour();
@ -4372,7 +4373,7 @@ bool GUI_App::load_language(wxString language, bool initial)
else if (initial) {
// bbs supported languages
//TODO: use a global one with Preference
wxLanguage supported_languages[] {
wxLanguage supported_languages[]{
wxLANGUAGE_ENGLISH,
wxLANGUAGE_CHINESE_SIMPLIFIED,
wxLANGUAGE_GERMAN,
@ -4380,7 +4381,7 @@ bool GUI_App::load_language(wxString language, bool initial)
wxLANGUAGE_SPANISH,
wxLANGUAGE_SWEDISH,
wxLANGUAGE_DUTCH,
wxLANGUAGE_HUNGARIAN };
wxLANGUAGE_HUNGARIAN};
std::string cur_language = app_config->get("language");
if (cur_language != "") {
//cleanup the language wrongly set before