You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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:
@@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user