summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorEric M <itsjusteza@gmail.com>2021-02-04 23:03:36 +1000
committerEric M <itsjusteza@gmail.com>2021-02-15 15:45:25 +1000
commit26c29cc0d7452da51c266751dcfb9df23c93249a (patch)
treeb530c2314aec376d806e1d3815c7213e67482b07 /scene/resources
parent8fa92c70eacd180866535a42d409e1c9e1074d73 (diff)
downloadredot-engine-26c29cc0d7452da51c266751dcfb9df23c93249a.tar.gz
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