Color Pickers Respect Settings
Updated editor_node with function that sets up color pickers throughout Godot to respect editor's settings.
This commit is contained in:
parent
976cb7ea9f
commit
1b8652e86a
10 changed files with 22 additions and 23 deletions
|
|
@ -2492,6 +2492,7 @@ void ThemeTypeEditor::_update_type_items() {
|
|||
if (E.value) {
|
||||
item_editor->set_pick_color(edited_theme->get_color(E.key, edited_type));
|
||||
item_editor->connect("color_changed", callable_mp(this, &ThemeTypeEditor::_color_item_changed), varray(E.key));
|
||||
item_editor->get_popup()->connect("about_to_popup", callable_mp(EditorNode::get_singleton(), &EditorNode::setup_color_picker), varray(item_editor->get_picker()));
|
||||
} else {
|
||||
item_editor->set_pick_color(Theme::get_default()->get_color(E.key, edited_type));
|
||||
item_editor->set_disabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue