summaryrefslogtreecommitdiffstats
path: root/editor/editor_about.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-09-06 14:49:02 +0200
committerYuri Sizov <yuris@humnom.net>2023-09-06 14:49:02 +0200
commit3c63dce3cd19f1cc7540418f9a45e4c38e78994e (patch)
tree72c2b81bc63bd4d254fbceb99fffd03a5eabedee /editor/editor_about.cpp
parentbceac8c34f2cd6f9f156b3b1b9cbd012bc45d928 (diff)
parent6de34fde27f650f738a1e46992f1b783f2cf9e76 (diff)
downloadredot-engine-3c63dce3cd19f1cc7540418f9a45e4c38e78994e.tar.gz
Merge pull request #80573 from KoBeWi/2k_lines_of_changes_created_at_2AM
Add EditorStringNames singleton
Diffstat (limited to 'editor/editor_about.cpp')
-rw-r--r--editor/editor_about.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/editor_about.cpp b/editor/editor_about.cpp
index a4147acade..848510f9c3 100644
--- a/editor/editor_about.cpp
+++ b/editor/editor_about.cpp
@@ -34,20 +34,21 @@
#include "core/donors.gen.h"
#include "core/license.gen.h"
#include "core/version.h"
+#include "editor/editor_string_names.h"
// The metadata key used to store and retrieve the version text to copy to the clipboard.
const String EditorAbout::META_TEXT_TO_COPY = "text_to_copy";
void EditorAbout::_theme_changed() {
- const Ref<Font> font = get_theme_font(SNAME("source"), SNAME("EditorFonts"));
- const int font_size = get_theme_font_size(SNAME("source_size"), SNAME("EditorFonts"));
+ const Ref<Font> font = get_theme_font(SNAME("source"), EditorStringName(EditorFonts));
+ const int font_size = get_theme_font_size(SNAME("source_size"), EditorStringName(EditorFonts));
_tpl_text->add_theme_font_override("normal_font", font);
_tpl_text->add_theme_font_size_override("normal_font_size", font_size);
_tpl_text->add_theme_constant_override("line_separation", 4 * EDSCALE);
_license_text->add_theme_font_override("normal_font", font);
_license_text->add_theme_font_size_override("normal_font_size", font_size);
_license_text->add_theme_constant_override("line_separation", 4 * EDSCALE);
- _logo->set_texture(get_theme_icon(SNAME("Logo"), SNAME("EditorIcons")));
+ _logo->set_texture(get_editor_theme_icon(SNAME("Logo")));
}
void EditorAbout::_notification(int p_what) {