From db60d48f43f5b2404b7022f46b9dfed57e9b8a2b Mon Sep 17 00:00:00 2001 From: Kasper Arnklit Frandsen Date: Thu, 18 Dec 2025 15:17:40 +0000 Subject: [PATCH] Improve the visibility of the selection of Color value keys --- editor/animation/animation_track_editor_plugins.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/animation/animation_track_editor_plugins.cpp b/editor/animation/animation_track_editor_plugins.cpp index f11551a781..d7e9069122 100644 --- a/editor/animation/animation_track_editor_plugins.cpp +++ b/editor/animation/animation_track_editor_plugins.cpp @@ -182,6 +182,9 @@ void AnimationTrackEditColor::draw_key(int p_index, float p_pixels_sec, int p_x, if (p_selected) { Color accent = get_theme_color(SNAME("accent_color"), EditorStringName(Editor)); draw_rect_clipped(rect, accent, false); + if (color.get_luminance() > 0.3) { + draw_rect_clipped(rect.grow(-1), Color(0.0, 0.0, 0.0, 0.5), false); + } } }