You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Improve editor theme generation after the refactor
This commit is contained in:
@@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user