mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
[Scene] Add SceneStringNames::panel
This commit is contained in:
parent
755a0efbb6
commit
926afccbd8
55 changed files with 149 additions and 145 deletions
|
|
@ -1719,7 +1719,7 @@ void ScriptEditor::_notification(int p_what) {
|
|||
case NOTIFICATION_TRANSLATION_CHANGED:
|
||||
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
tab_container->add_theme_style_override("panel", get_theme_stylebox(SNAME("ScriptEditor"), EditorStringName(EditorStyles)));
|
||||
tab_container->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("ScriptEditor"), EditorStringName(EditorStyles)));
|
||||
|
||||
help_search->set_icon(get_editor_theme_icon(SNAME("HelpSearch")));
|
||||
site_search->set_icon(get_editor_theme_icon(SNAME("ExternalLink")));
|
||||
|
|
@ -1748,7 +1748,7 @@ void ScriptEditor::_notification(int p_what) {
|
|||
|
||||
case NOTIFICATION_READY: {
|
||||
// Can't set own styles in NOTIFICATION_THEME_CHANGED, so for now this will do.
|
||||
add_theme_style_override("panel", get_theme_stylebox(SNAME("ScriptEditorPanel"), EditorStringName(EditorStyles)));
|
||||
add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("ScriptEditorPanel"), EditorStringName(EditorStyles)));
|
||||
|
||||
get_tree()->connect("tree_changed", callable_mp(this, &ScriptEditor::_tree_changed));
|
||||
InspectorDock::get_singleton()->connect("request_help", callable_mp(this, &ScriptEditor::_help_class_open));
|
||||
|
|
@ -4356,9 +4356,9 @@ void ScriptEditorPlugin::_save_last_editor(const String &p_editor) {
|
|||
void ScriptEditorPlugin::_window_visibility_changed(bool p_visible) {
|
||||
_focus_another_editor();
|
||||
if (p_visible) {
|
||||
script_editor->add_theme_style_override("panel", script_editor->get_theme_stylebox("ScriptEditorPanelFloating", EditorStringName(EditorStyles)));
|
||||
script_editor->add_theme_style_override(SceneStringName(panel), script_editor->get_theme_stylebox("ScriptEditorPanelFloating", EditorStringName(EditorStyles)));
|
||||
} else {
|
||||
script_editor->add_theme_style_override("panel", script_editor->get_theme_stylebox("ScriptEditorPanel", EditorStringName(EditorStyles)));
|
||||
script_editor->add_theme_style_override(SceneStringName(panel), script_editor->get_theme_stylebox("ScriptEditorPanel", EditorStringName(EditorStyles)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue