summaryrefslogtreecommitdiffstats
path: root/scene/theme/default_theme.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-14 12:07:03 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-14 12:07:03 +0200
commitbdefe5399279ccc37d3f402215236a0ad9642b99 (patch)
tree35bf85a05f58b3f5d56232621205b1ea8b4ad275 /scene/theme/default_theme.cpp
parente58eb6a26763de8263ecc2eae93119e4817e4016 (diff)
parent413c11357d039a03a8dca440a01951a637ae936b (diff)
downloadredot-engine-bdefe5399279ccc37d3f402215236a0ad9642b99.tar.gz
Merge pull request #91909 from KoBeWi/have_fun_reviewing_this
Use Core/Scene stringnames consistently
Diffstat (limited to 'scene/theme/default_theme.cpp')
-rw-r--r--scene/theme/default_theme.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/theme/default_theme.cpp b/scene/theme/default_theme.cpp
index d1d8854b18..c92d03feaa 100644
--- a/scene/theme/default_theme.cpp
+++ b/scene/theme/default_theme.cpp
@@ -39,6 +39,7 @@
#include "scene/resources/style_box_flat.h"
#include "scene/resources/style_box_line.h"
#include "scene/resources/theme.h"
+#include "scene/scene_string_names.h"
#include "scene/theme/theme_db.h"
#include "servers/text_server.h"
@@ -864,7 +865,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("h_separation", "ItemList", Math::round(4 * scale));
theme->set_constant("v_separation", "ItemList", Math::round(4 * scale));
theme->set_constant("icon_margin", "ItemList", Math::round(4 * scale));
- theme->set_constant("line_separation", "ItemList", Math::round(2 * scale));
+ theme->set_constant(SceneStringName(line_separation), "ItemList", Math::round(2 * scale));
theme->set_font("font", "ItemList", Ref<Font>());
theme->set_font_size("font_size", "ItemList", -1);
@@ -1125,7 +1126,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("shadow_offset_y", "RichTextLabel", Math::round(1 * scale));
theme->set_constant("shadow_outline_size", "RichTextLabel", Math::round(1 * scale));
- theme->set_constant("line_separation", "RichTextLabel", 0);
+ theme->set_constant(SceneStringName(line_separation), "RichTextLabel", 0);
theme->set_constant("table_h_separation", "RichTextLabel", Math::round(3 * scale));
theme->set_constant("table_v_separation", "RichTextLabel", Math::round(3 * scale));