Skip to content

Commit

Permalink
Merge pull request #92482 from passivestar/ratio-space
Browse files Browse the repository at this point in the history
Add missing space around the ratio lock button
  • Loading branch information
akien-mga committed Jun 3, 2024
2 parents e716ea6 + 065e2c1 commit f882f12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/editor_properties_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit f882f12

Please sign in to comment.