summaryrefslogtreecommitdiff
path: root/editor/editor_properties.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-19 17:26:13 +0200
committerGitHub <noreply@github.com>2022-05-19 17:26:13 +0200
commit920ca6252888489ca72647ad8d5ef721d5e5e686 (patch)
tree3d17d6dfcbc6e1f6bafd39a498fc2564d1832937 /editor/editor_properties.cpp
parent3aa83a023591bb510ce898b68882466f59ae1ceb (diff)
parent9a1054d942f80efa6780253b4c3abdf6d8fdafa2 (diff)
Merge pull request #61133 from KoBeWi/polor_kicker
Tweak minsize of editor ColorPickerButtons
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r--editor/editor_properties.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 9541033fe8..c6bf7e6d9e 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2752,7 +2752,13 @@ void EditorPropertyColor::_picker_opening() {
last_color = picker->get_pick_color();
}
-void EditorPropertyColor::_bind_methods() {
+void EditorPropertyColor::_notification(int p_what) {
+ switch (p_what) {
+ case NOTIFICATION_ENTER_TREE:
+ case NOTIFICATION_THEME_CHANGED: {
+ picker->set_custom_minimum_size(Size2(0, get_theme_constant(SNAME("color_picker_button_height"), SNAME("Editor"))));
+ } break;
+ }
}
void EditorPropertyColor::update_property() {