diff options
author | Yuri Sizov <yuris@humnom.net> | 2024-01-17 15:03:55 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2024-01-17 15:16:53 +0100 |
commit | 45eedba1fa992d9ce8fe8e5624a4b8c93875207c (patch) | |
tree | 9a327c58264ebdf448079ddfaec117ef8a186b9d /editor/editor_node.cpp | |
parent | 107f2961ccfac179af7682eb5f6e7ea91e80040c (diff) | |
download | redot-engine-45eedba1fa992d9ce8fe8e5624a4b8c93875207c.tar.gz |
Improve editor theme generation after the refactor
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 521477d470..87d5531806 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -808,7 +808,7 @@ void EditorNode::_update_update_spinner() { // as this feature should only be enabled for troubleshooting purposes. // Make the icon modulate color overbright because icons are not completely white on a dark theme. // On a light theme, icons are dark, so we need to modulate them with an even brighter color. - const bool dark_theme = EditorSettings::get_singleton()->is_dark_theme(); + const bool dark_theme = EditorThemeManager::is_dark_theme(); update_spinner->set_self_modulate(theme->get_color(SNAME("error_color"), EditorStringName(Editor)) * (dark_theme ? Color(1.1, 1.1, 1.1) : Color(4.25, 4.25, 4.25))); } else { update_spinner->set_tooltip_text(TTR("Spins when the editor window redraws.")); |