You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add a new editor theme
Co-authored-by: passivestar <60579014+passivestar@users.noreply.github.com>
This commit is contained in:
@@ -1096,8 +1096,8 @@ 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 = 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)));
|
||||
const bool dark_icon_and_font = EditorThemeManager::is_dark_icon_and_font();
|
||||
update_spinner->set_self_modulate(theme->get_color(SNAME("error_color"), EditorStringName(Editor)) * (dark_icon_and_font ? Color(1.1, 1.1, 1.1) : Color(4.25, 4.25, 4.25)));
|
||||
} else {
|
||||
update_spinner->set_tooltip_text(TTRC("Spins when the editor window redraws."));
|
||||
update_spinner->set_self_modulate(Color(1, 1, 1));
|
||||
|
||||
Reference in New Issue
Block a user