summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-18 16:34:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-18 16:34:50 +0100
commit33f3511241b0ae90ee995879bf2c7eec33221327 (patch)
tree4a29817427285c0c92fb19c10278a5ab8e187681 /editor/editor_node.cpp
parentf3fd668a026a1ac8b255b4f2d2fa12df272bdc60 (diff)
parent45eedba1fa992d9ce8fe8e5624a4b8c93875207c (diff)
downloadredot-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/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
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."));