summaryrefslogtreecommitdiffstats
path: root/editor/plugins/particle_process_material_editor_plugin.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-17 15:03:55 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-17 15:16:53 +0100
commit45eedba1fa992d9ce8fe8e5624a4b8c93875207c (patch)
tree9a327c58264ebdf448079ddfaec117ef8a186b9d /editor/plugins/particle_process_material_editor_plugin.cpp
parent107f2961ccfac179af7682eb5f6e7ea91e80040c (diff)
downloadredot-engine-45eedba1fa992d9ce8fe8e5624a4b8c93875207c.tar.gz
Improve editor theme generation after the refactor
Diffstat (limited to 'editor/plugins/particle_process_material_editor_plugin.cpp')
-rw-r--r--editor/plugins/particle_process_material_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/particle_process_material_editor_plugin.cpp b/editor/plugins/particle_process_material_editor_plugin.cpp
index e696da3f5e..d6ec3921d5 100644
--- a/editor/plugins/particle_process_material_editor_plugin.cpp
+++ b/editor/plugins/particle_process_material_editor_plugin.cpp
@@ -34,6 +34,7 @@
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/gui/editor_spin_slider.h"
+#include "editor/themes/editor_theme_manager.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
@@ -352,7 +353,7 @@ void ParticleProcessMaterialMinMaxPropertyEditor::_notification(int p_what) {
min_edit->add_theme_color_override(SNAME("label_color"), get_theme_color(SNAME("property_color_x"), EditorStringName(Editor)));
max_edit->add_theme_color_override(SNAME("label_color"), get_theme_color(SNAME("property_color_y"), EditorStringName(Editor)));
- const bool dark_theme = EditorSettings::get_singleton()->is_dark_theme();
+ const bool dark_theme = EditorThemeManager::is_dark_theme();
const Color accent_color = get_theme_color(SNAME("accent_color"), EditorStringName(Editor));
background_color = dark_theme ? Color(0.3, 0.3, 0.3) : Color(0.7, 0.7, 0.7);
normal_color = dark_theme ? Color(0.5, 0.5, 0.5) : Color(0.8, 0.8, 0.8);