Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.

This commit is contained in:
Eric M 2021-02-04 23:03:36 +10:00
parent 8fa92c70ea
commit 26c29cc0d7
3 changed files with 25 additions and 8 deletions

View file

@ -644,6 +644,8 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_constant("hseparation", "PopupMenu", 4 * scale);
theme->set_constant("vseparation", "PopupMenu", 4 * scale);
theme->set_constant("outline_size", "PopupMenu", 0);
theme->set_constant("item_start_padding", "PopupMenu", 2 * scale);
theme->set_constant("item_end_padding", "PopupMenu", 2 * scale);
// GraphNode