diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-15 13:38:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 13:38:47 +0100 |
commit | 9d511ff924b0772973cb73d4deac5048d12cc89d (patch) | |
tree | e541640baebc1dcc05d8dbecee18a8c7b9a3e84a /scene/resources | |
parent | e13312db7976fd78a75b29944e0f96a174653a1c (diff) | |
parent | 26c29cc0d7452da51c266751dcfb9df23c93249a (diff) | |
download | redot-engine-9d511ff924b0772973cb73d4deac5048d12cc89d.tar.gz |
Merge pull request #45704 from EricEzaM/PR/popup-menu-beautification
Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index e217bc94b0..943176537b 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -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 |