TextureEditorPlugin: Add borders to 3D and Layered editors

This commit is contained in:
BlueCube3310 2025-04-12 12:45:47 +02:00
parent 215acd52e8
commit b0626fefa1
6 changed files with 38 additions and 12 deletions

View file

@ -45,6 +45,10 @@ class TexturePreview : public MarginContainer {
GDCLASS(TexturePreview, MarginContainer);
private:
struct ThemeCache {
Color outline_color;
} theme_cache;
TextureRect *texture_display = nullptr;
MarginContainer *margin_container = nullptr;
@ -57,8 +61,6 @@ private:
ColorChannelSelector *channel_selector = nullptr;
Color cached_outline_color;
void _draw_outline();
void _update_metadata_label_text();