From 9fdd26e3a5682eb73fa6b22258e19b4efd84b72b Mon Sep 17 00:00:00 2001 From: "Jamin W. Collins" Date: Thu, 11 Apr 2024 21:13:39 -0600 Subject: [PATCH] light/dark mode fixes for custom gcode editor Signed-off-by: Jamin W. Collins --- src/slic3r/GUI/EditGCodeDialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/EditGCodeDialog.cpp b/src/slic3r/GUI/EditGCodeDialog.cpp index 54ec6db8bc6..291aa0de91a 100644 --- a/src/slic3r/GUI/EditGCodeDialog.cpp +++ b/src/slic3r/GUI/EditGCodeDialog.cpp @@ -156,6 +156,7 @@ void EditGCodeDialog::init_params_list(const std::string& custom_gcode_name) custom_gcode_placeholders.at(custom_gcode_name) : t_config_option_keys({}); // Add slicing states placeholders + m_params_list->SetForegroundColour(wxColour(0, 0, 0)); wxDataViewItem slicing_state = m_params_list->AppendGroup(_L("[Global] Slicing State"), "custom-gcode_slicing-state_global"); if (!cgp_ro_slicing_states_config_def.empty()) { @@ -239,6 +240,8 @@ void EditGCodeDialog::init_params_list(const std::string& custom_gcode_name) if (!cgp_other_presets_config_def.empty()) for (const auto& [opt_key, def] : cgp_other_presets_config_def.options) m_params_list->AppendParam(presets, get_type(opt_key, def), opt_key); + + wxGetApp().UpdateDarkUI(m_params_list); } wxDataViewItem EditGCodeDialog::add_presets_placeholders()