diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-05-14 15:57:29 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-06-18 17:24:27 +0200 |
commit | d519715d94dc1062addcfc8efad47abb494fa4c5 (patch) | |
tree | f0a07687df7c9ce6f6d31874a44a4e0dedc836f9 /editor/editor_native_shader_source_visualizer.cpp | |
parent | b435551682f93cf49f606d260b28e13ff5526beb (diff) | |
download | redot-engine-d519715d94dc1062addcfc8efad47abb494fa4c5.tar.gz |
[Scene] Add `SceneStringNames::font(_size/_color)`
Diffstat (limited to 'editor/editor_native_shader_source_visualizer.cpp')
-rw-r--r-- | editor/editor_native_shader_source_visualizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_native_shader_source_visualizer.cpp b/editor/editor_native_shader_source_visualizer.cpp index 37c8bffe3d..3d7d37c94e 100644 --- a/editor/editor_native_shader_source_visualizer.cpp +++ b/editor/editor_native_shader_source_visualizer.cpp @@ -96,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", EditorStringName(EditorFonts))); - code_edit->add_theme_font_size_override("font_size", get_theme_font_size("source_size", EditorStringName(EditorFonts))); + code_edit->add_theme_font_override(SceneStringName(font), get_theme_font("source", EditorStringName(EditorFonts))); + code_edit->add_theme_font_size_override(SceneStringName(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 |