From c96d9a8f79e35c34b686ae16197d5c339461af36 Mon Sep 17 00:00:00 2001 From: Giganzo <158825920+Giganzo@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:35:49 +0100 Subject: [PATCH] Fix missing focus outline for 2D and 3D editor viewports --- editor/themes/editor_theme_manager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp index 7f3adbc1b60..8f56c459cd6 100644 --- a/editor/themes/editor_theme_manager.cpp +++ b/editor/themes/editor_theme_manager.cpp @@ -1823,8 +1823,6 @@ void EditorThemeManager::_populate_editor_styles(const Ref &p_theme p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus); Ref style_widget_focus_viewport = p_config.button_style_focus->duplicate(); - // Make the focus outline appear to be flush with the buttons it's focusing, so not draw on top of the content. - style_widget_focus_viewport->set_expand_margin_all(2); // Use a less opaque color to be less distracting for the 2D and 3D editor viewports. style_widget_focus_viewport->set_border_color(p_config.accent_color * Color(1, 1, 1, 0.5)); p_theme->set_stylebox("FocusViewport", EditorStringName(EditorStyles), style_widget_focus_viewport);