diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-07-12 22:24:05 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-07-12 22:35:03 +0200 |
commit | 576980f96046d0ef53f723dc93aec83bd765edbc (patch) | |
tree | fbb504165734ea7fa9849e78888fe565e494760c /scene/resources/default_theme | |
parent | 287f3aa4e95f84b6647fd24fd0c5e475de288f6c (diff) | |
download | redot-engine-576980f96046d0ef53f723dc93aec83bd765edbc.tar.gz |
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.
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 07f38473cb..4281e4057d 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -595,6 +595,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const // Window theme->set_stylebox("embedded_border", "Window", sb_expand(make_flat_stylebox(style_popup_color, 10, 28, 10, 8), 8, 32, 8, 6)); + theme->set_stylebox("embedded_unfocused_border", "Window", sb_expand(make_flat_stylebox(style_popup_hover_color, 10, 28, 10, 8), 8, 32, 8, 6)); theme->set_font("title_font", "Window", Ref<Font>()); theme->set_font_size("title_font_size", "Window", -1); |