Add a default theme for unfocused Windows
At the moment it is impossible to distinguish between focused and unfocused embedded Windows. Add a new `theme_item` that is used for coloring the border of unfocused Windows.
This commit is contained in:
parent
287f3aa4e9
commit
576980f960
4 changed files with 6 additions and 1 deletions
|
|
@ -1605,6 +1605,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
|
|||
style_window->set_border_width(SIDE_TOP, 24 * EDSCALE);
|
||||
style_window->set_expand_margin(SIDE_TOP, 24 * EDSCALE);
|
||||
theme->set_stylebox("embedded_border", "Window", style_window);
|
||||
theme->set_stylebox("embedded_unfocused_border", "Window", style_window);
|
||||
|
||||
theme->set_color("title_color", "Window", font_color);
|
||||
theme->set_icon("close", "Window", theme->get_icon(SNAME("GuiClose"), SNAME("EditorIcons")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue