diff options
author | Eric M <itsjusteza@gmail.com> | 2021-02-04 23:03:36 +1000 |
---|---|---|
committer | Eric M <itsjusteza@gmail.com> | 2021-02-15 15:45:25 +1000 |
commit | 26c29cc0d7452da51c266751dcfb9df23c93249a (patch) | |
tree | b530c2314aec376d806e1d3815c7213e67482b07 /scene/resources/default_theme/default_theme.cpp | |
parent | 8fa92c70eacd180866535a42d409e1c9e1074d73 (diff) | |
download | redot-engine-26c29cc0d7452da51c266751dcfb9df23c93249a.tar.gz |
Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.
Diffstat (limited to 'scene/resources/default_theme/default_theme.cpp')
-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 |