Tweak minsize of editor ColorPickerButtons
This commit is contained in:
parent
b9bb3de6a1
commit
9a1054d942
6 changed files with 31 additions and 3 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue