Merge pull request #61071 from timothyqiu/leading-stylebox
This commit is contained in:
commit
75e4d24ace
1 changed files with 4 additions and 2 deletions
|
@ -3211,11 +3211,13 @@ void ThemeTypeEditor::_update_stylebox_from_leading() {
|
|||
edited_theme->get_stylebox_list(edited_type, &names);
|
||||
List<Ref<StyleBox>> styleboxes;
|
||||
for (const StringName &E : names) {
|
||||
if (E == leading_stylebox.item_name) {
|
||||
Ref<StyleBox> sb = edited_theme->get_stylebox(E, edited_type);
|
||||
|
||||
// Avoid itself, stylebox can be shared between items.
|
||||
if (sb == leading_stylebox.stylebox) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Ref<StyleBox> sb = edited_theme->get_stylebox(E, edited_type);
|
||||
if (sb->get_class() == leading_stylebox.stylebox->get_class()) {
|
||||
styleboxes.push_back(sb);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue