diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-14 12:07:03 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-14 12:07:03 +0200 |
commit | bdefe5399279ccc37d3f402215236a0ad9642b99 (patch) | |
tree | 35bf85a05f58b3f5d56232621205b1ea8b4ad275 /editor/editor_native_shader_source_visualizer.cpp | |
parent | e58eb6a26763de8263ecc2eae93119e4817e4016 (diff) | |
parent | 413c11357d039a03a8dca440a01951a637ae936b (diff) | |
download | redot-engine-bdefe5399279ccc37d3f402215236a0ad9642b99.tar.gz |
Merge pull request #91909 from KoBeWi/have_fun_reviewing_this
Use Core/Scene stringnames consistently
Diffstat (limited to 'editor/editor_native_shader_source_visualizer.cpp')
-rw-r--r-- | editor/editor_native_shader_source_visualizer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_native_shader_source_visualizer.cpp b/editor/editor_native_shader_source_visualizer.cpp index d87f17f22a..37c8bffe3d 100644 --- a/editor/editor_native_shader_source_visualizer.cpp +++ b/editor/editor_native_shader_source_visualizer.cpp @@ -32,6 +32,7 @@ #include "editor/code_editor.h" #include "editor/editor_settings.h" +#include "editor/editor_string_names.h" #include "editor/themes/editor_scale.h" #include "scene/gui/text_edit.h" #include "servers/rendering/shader_language.h" @@ -95,8 +96,8 @@ void EditorNativeShaderSourceVisualizer::_inspect_shader(RID p_shader) { CodeEdit *code_edit = memnew(CodeEdit); code_edit->set_editable(false); code_edit->set_syntax_highlighter(syntax_highlighter); - code_edit->add_theme_font_override("font", get_theme_font("source", "EditorFonts")); - code_edit->add_theme_font_size_override("font_size", get_theme_font_size("source_size", "EditorFonts")); + code_edit->add_theme_font_override("font", get_theme_font("source", EditorStringName(EditorFonts))); + code_edit->add_theme_font_size_override("font_size", get_theme_font_size("source_size", EditorStringName(EditorFonts))); code_edit->add_theme_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 6)); // Appearance: Caret |