diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-28 12:54:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 12:54:03 +0100 |
commit | aaa9751de3ef6b39217113aa26f018b25d5878e8 (patch) | |
tree | 862933a0c2abd953f3798ed22b436b1bf3f68a75 /scene/resources | |
parent | 5014baf34be94d5dbfaf80e778c1b90c8998340f (diff) | |
parent | d92123ed978ab3599baec0db76c42cfa8f8e2bcd (diff) |
Merge pull request #33120 from YeldhamDev/popup_dialog_panel_style
Add "panel" style to PopupDialog
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 1a053a18c9..e82819f270 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -558,9 +558,14 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_stylebox("panel", "PopupPanel", style_pp); + // PopupDialog + + Ref<StyleBoxTexture> style_pd = make_stylebox(popup_bg_png, 4, 4, 4, 4, 10, 10, 10, 10); + theme->set_stylebox("panel", "PopupDialog", style_pd); + // PopupMenu - theme->set_stylebox("panel", "PopupMenu", make_stylebox(popup_bg_png, 4, 4, 4, 4, 10, 10, 10, 10)); + theme->set_stylebox("panel", "PopupMenu", style_pd); theme->set_stylebox("panel_disabled", "PopupMenu", make_stylebox(popup_bg_disabled_png, 4, 4, 4, 4)); theme->set_stylebox("hover", "PopupMenu", selected); theme->set_stylebox("separator", "PopupMenu", make_stylebox(vseparator_png, 3, 3, 3, 3)); |