diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-18 16:34:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-18 16:34:50 +0100 |
| commit | 33f3511241b0ae90ee995879bf2c7eec33221327 (patch) | |
| tree | 4a29817427285c0c92fb19c10278a5ab8e187681 /editor/plugins/bone_map_editor_plugin.cpp | |
| parent | f3fd668a026a1ac8b255b4f2d2fa12df272bdc60 (diff) | |
| parent | 45eedba1fa992d9ce8fe8e5624a4b8c93875207c (diff) | |
| download | redot-engine-33f3511241b0ae90ee995879bf2c7eec33221327.tar.gz | |
Merge pull request #87293 from YuriSizov/editor-theme-a-rehashed-follow-up
Improve editor theme generation after the refactor
Diffstat (limited to 'editor/plugins/bone_map_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/bone_map_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/bone_map_editor_plugin.cpp b/editor/plugins/bone_map_editor_plugin.cpp index 38573fbaa7..3256b90aba 100644 --- a/editor/plugins/bone_map_editor_plugin.cpp +++ b/editor/plugins/bone_map_editor_plugin.cpp @@ -36,6 +36,7 @@ #include "editor/import/3d/post_import_plugin_skeleton_track_organizer.h" #include "editor/import/3d/scene_import_settings.h" #include "editor/themes/editor_scale.h" +#include "editor/themes/editor_theme_manager.h" #include "scene/gui/aspect_ratio_container.h" #include "scene/gui/separator.h" #include "scene/gui/texture_rect.h" @@ -52,7 +53,7 @@ void BoneMapperButton::fetch_textures() { set_offset(SIDE_BOTTOM, 0); // Hack to avoid handle color darkening... - set_modulate(EditorSettings::get_singleton()->is_dark_theme() ? Color(1, 1, 1) : Color(4.25, 4.25, 4.25)); + set_modulate(EditorThemeManager::is_dark_theme() ? Color(1, 1, 1) : Color(4.25, 4.25, 4.25)); circle = memnew(TextureRect); circle->set_texture(get_editor_theme_icon(SNAME("BoneMapperHandleCircle"))); |
