summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-11 10:48:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-11 10:48:49 +0200
commit1415684af98c371137bc3b22e71835895f44eca3 (patch)
treebd8f04b73486d53981c920ab11aca8718acf56c6 /editor
parent0a9f2d2262298e1686fe18f09c79408ad6cb143a (diff)
parent721a663aa30839cd0153a3df856f750ec0dbd6b8 (diff)
downloadredot-engine-1415684af98c371137bc3b22e71835895f44eca3.tar.gz
Merge pull request #92701 from bruvzg/button_align
[Button] Adds theme option to align button text and icon to either largest or current stylebox.
Diffstat (limited to 'editor')
-rw-r--r--editor/themes/editor_theme_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp
index 5adf31592c..10b7c64999 100644
--- a/editor/themes/editor_theme_manager.cpp
+++ b/editor/themes/editor_theme_manager.cpp
@@ -737,6 +737,8 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
p_theme->set_constant("h_separation", "Button", 4 * EDSCALE);
p_theme->set_constant("outline_size", "Button", 0);
+ p_theme->set_constant("align_to_largest_stylebox", "Button", 1); // Enabled.
+
// MenuButton.
p_theme->set_stylebox(CoreStringName(normal), "MenuButton", p_config.panel_container_style);