Merge pull request #114155 from Arnklit/improve-color-key-selection-visibility

Improve the visibility of the selection of Color value keys
This commit is contained in:
Thaddeus Crews 2026-02-24 09:29:26 -06:00
commit deace09d37
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

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