mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add "panel" style to PopupDialog
This commit is contained in:
parent
816341af25
commit
d92123ed97
4 changed files with 16 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue