FIX:fix three icons in dark mode not switching

jira: none
Change-Id: I0b49e3dc2e4d9ae7f53e45e456de830736f0acc8
(cherry picked from commit 38abdcdcdc1e49455e131b20cc29af888d56531c)
This commit is contained in:
zhou.xu
2025-03-12 12:10:38 +08:00
committed by Noisyfox
parent aeaafff9ed
commit 616082ae12
6 changed files with 39 additions and 20 deletions

View File

@@ -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);
}
}
{