Merge pull request #100171 from Giganzo/editor-focus
Fix missing focus outline for 2D and 3D editor viewports
This commit is contained in:
commit
4f5982c83b
1 changed files with 0 additions and 2 deletions
|
|
@ -1830,8 +1830,6 @@ void EditorThemeManager::_populate_editor_styles(const Ref<EditorTheme> &p_theme
|
|||
p_theme->set_stylebox("Focus", EditorStringName(EditorStyles), p_config.button_style_focus);
|
||||
|
||||
Ref<StyleBoxFlat> 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue