mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Redraw shape controls when ColorPicker theme changes
This commit is contained in:
parent
4ed8c45abd
commit
502f49d7f9
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ void ColorPicker::_notification(int p_what) {
|
||||||
for (ColorPickerShape *shape : shapes) {
|
for (ColorPickerShape *shape : shapes) {
|
||||||
if (shape->is_initialized) {
|
if (shape->is_initialized) {
|
||||||
shape->update_theme();
|
shape->update_theme();
|
||||||
|
for (Control *c : shape->controls) {
|
||||||
|
c->queue_redraw();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
shape_popup->set_item_icon(i, shape->get_icon());
|
shape_popup->set_item_icon(i, shape->get_icon());
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue