Improve the visibility of the selection of Color value keys

This commit is contained in:
Kasper Arnklit Frandsen 2025-12-18 15:17:40 +00:00
parent 79603b2f28
commit db60d48f43

View file

@ -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);
}
}
}