Skip to content

Commit 0060d95

Browse files
committed
Fix transparent panel in Tilset polygon editor using Classic theme
1 parent 0fdbf05 commit 0060d95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

editor/themes/theme_classic.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,5 +2295,11 @@ void ThemeClassic::populate_editor_styles(const Ref<EditorTheme> &p_theme, Edito
22952295
p_theme->set_color("playback_color", "GraphStateMachine", p_config.font_color);
22962296
p_theme->set_color("playback_background_color", "GraphStateMachine", p_config.font_color * Color(1, 1, 1, 0.3));
22972297
}
2298+
2299+
// TileSet editor.
2300+
// This editor is using Tree panel for the panel container of expanded view, while the theme
2301+
// needs trees to be transparent, so it needs to have its own style.
2302+
Ref<StyleBoxFlat> tile_expand_style = p_config.tree_panel_style->duplicate();
2303+
p_theme->set_stylebox("expand_panel", "TileSetEditor", tile_expand_style);
22982304
}
22992305
}

0 commit comments

Comments
 (0)