Merge pull request #92482 from passivestar/ratio-space

Add missing space around the ratio lock button
This commit is contained in:
Rémi Verschelde 2024-06-03 10:35:50 +02:00
commit f882f12807
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 5 additions and 0 deletions

View File

@ -31,7 +31,9 @@
#include "editor_properties_vector.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/gui/editor_spin_slider.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/box_container.h"
#include "scene/gui/texture_button.h"
@ -135,8 +137,11 @@ void EditorPropertyVectorN::_notification(int p_what) {
} break;
case NOTIFICATION_THEME_CHANGED: {
int icon_size = get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor));
linked->set_texture_normal(get_editor_theme_icon(SNAME("Unlinked")));
linked->set_texture_pressed(get_editor_theme_icon(SNAME("Instance")));
linked->set_custom_minimum_size(Size2(icon_size + 8 * EDSCALE, 0));
const Color *colors = _get_property_colors();
for (int i = 0; i < component_count; i++) {