Skip to content

Commit 4f5982c

Browse files
committed
Merge pull request #100171 from Giganzo/editor-focus
Fix missing focus outline for 2D and 3D editor viewports
2 parents 3a20c3e + c96d9a8 commit 4f5982c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

editor/themes/editor_theme_manager.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1830,8 +1830,6 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
18301830
p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus);
18311831

18321832
Ref<StyleBoxFlat> style_widget_focus_viewport = p_config.button_style_focus->duplicate();
1833-
// Make the focus outline appear to be flush with the buttons it's focusing, so not draw on top of the content.
1834-
style_widget_focus_viewport->set_expand_margin_all(2);
18351833
// Use a less opaque color to be less distracting for the 2D and 3D editor viewports.
18361834
style_widget_focus_viewport->set_border_color(p_config.accent_color * Color(1, 1, 1, 0.5));
18371835
p_theme->set_stylebox("FocusViewport", EditorStringName(EditorStyles), style_widget_focus_viewport);

0 commit comments

Comments
 (0)