mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Fix changing icons' colors when switch dark and light theme
(cherry picked from commit 3d69385655
)
This commit is contained in:
parent
2bfb83c702
commit
b48015a3d1
@ -1118,7 +1118,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
beginner_node_shortcuts->set_name("BeginnerNodeShortcuts");
|
||||
node_shortcuts->add_child(beginner_node_shortcuts);
|
||||
|
||||
Button *button_2d = memnew(Button);
|
||||
button_2d = memnew(Button);
|
||||
beginner_node_shortcuts->add_child(button_2d);
|
||||
button_2d->set_text(TTR("2D Scene"));
|
||||
button_2d->set_icon(get_icon("Node2D", "EditorIcons"));
|
||||
@ -1129,7 +1129,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
button_3d->set_icon(get_icon("Spatial", "EditorIcons"));
|
||||
button_3d->connect("pressed", this, "_tool_selected", make_binds(TOOL_CREATE_3D_SCENE, false));
|
||||
|
||||
Button *button_ui = memnew(Button);
|
||||
button_ui = memnew(Button);
|
||||
beginner_node_shortcuts->add_child(button_ui);
|
||||
button_ui->set_text(TTR("User Interface"));
|
||||
button_ui->set_icon(get_icon("Control", "EditorIcons"));
|
||||
@ -1139,7 +1139,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
favorite_node_shortcuts->set_name("FavoriteNodeShortcuts");
|
||||
node_shortcuts->add_child(favorite_node_shortcuts);
|
||||
|
||||
Button *button_custom = memnew(Button);
|
||||
button_custom = memnew(Button);
|
||||
node_shortcuts->add_child(button_custom);
|
||||
button_custom->set_text(TTR("Other Node"));
|
||||
button_custom->set_icon(get_icon("Add", "EditorIcons"));
|
||||
@ -1162,6 +1162,10 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
button_instance->set_icon(get_icon("Instance", "EditorIcons"));
|
||||
button_create_script->set_icon(get_icon("ScriptCreate", "EditorIcons"));
|
||||
button_detach_script->set_icon(get_icon("ScriptRemove", "EditorIcons"));
|
||||
button_2d->set_icon(get_icon("Node2D", "EditorIcons"));
|
||||
button_3d->set_icon(get_icon("Node3D", "EditorIcons"));
|
||||
button_ui->set_icon(get_icon("Control", "EditorIcons"));
|
||||
button_custom->set_icon(get_icon("Add", "EditorIcons"));
|
||||
|
||||
filter->set_right_icon(get_icon("Search", "EditorIcons"));
|
||||
filter->set_clear_button_enabled(true);
|
||||
|
@ -112,7 +112,10 @@ class SceneTreeDock : public VBoxContainer {
|
||||
ToolButton *button_create_script;
|
||||
ToolButton *button_detach_script;
|
||||
|
||||
Button *button_2d;
|
||||
Button *button_3d;
|
||||
Button *button_ui;
|
||||
Button *button_custom;
|
||||
|
||||
HBoxContainer *button_hb;
|
||||
ToolButton *edit_local, *edit_remote;
|
||||
|
Loading…
Reference in New Issue
Block a user