summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-02-15 13:38:47 +0100
committerGitHub <noreply@github.com>2021-02-15 13:38:47 +0100
commit9d511ff924b0772973cb73d4deac5048d12cc89d (patch)
treee541640baebc1dcc05d8dbecee18a8c7b9a3e84a /scene/resources
parente13312db7976fd78a75b29944e0f96a174653a1c (diff)
parent26c29cc0d7452da51c266751dcfb9df23c93249a (diff)
downloadredot-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.cpp2
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