mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-14 07:52:56 +00:00
FIX:fix three icons in dark mode not switching
jira: none Change-Id: I0b49e3dc2e4d9ae7f53e45e456de830736f0acc8 (cherry picked from commit 38abdcdcdc1e49455e131b20cc29af888d56531c)
This commit is contained in:
@@ -3678,7 +3678,7 @@ void ObjectList::update_variable_layer_obj_num(ObjectDataViewModelNode* obj_node
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selections/* = nullptr*/, bool added_object/* = false*/)
|
||||
void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray *selections /* = nullptr*/, bool added_object /* = false*/, bool color_mode_changed /* = false*/)
|
||||
{
|
||||
// BBS
|
||||
if (obj_idx >= m_objects->size())
|
||||
@@ -3736,6 +3736,9 @@ void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selectio
|
||||
else if (!shows && should_show) {
|
||||
m_objects_model->SetSupportPaintState(true, item_obj);
|
||||
}
|
||||
if (color_mode_changed && shows) {
|
||||
m_objects_model->SetSupportPaintState(true, item_obj,true);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
@@ -3751,6 +3754,9 @@ void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selectio
|
||||
else if (!shows && should_show) {
|
||||
m_objects_model->SetColorPaintState(true, item_obj);
|
||||
}
|
||||
if (color_mode_changed && shows) {
|
||||
m_objects_model->SetColorPaintState(true, item_obj, true);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
@@ -3763,6 +3769,9 @@ void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selectio
|
||||
else if (!shows && should_show) {
|
||||
m_objects_model->SetSinkState(true, item_obj);
|
||||
}
|
||||
if (color_mode_changed && shows) {
|
||||
m_objects_model->SetSinkState(true, item_obj, true);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user