Skip to content

Commit deace09

Browse files
committed
Merge pull request #114155 from Arnklit/improve-color-key-selection-visibility
Improve the visibility of the selection of Color value keys
2 parents b7eb50d + db60d48 commit deace09

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

editor/animation/animation_track_editor_plugins.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ void AnimationTrackEditColor::draw_key(int p_index, float p_pixels_sec, int p_x,
182182
if (p_selected) {
183183
Color accent = get_theme_color(SNAME("accent_color"), EditorStringName(Editor));
184184
draw_rect_clipped(rect, accent, false);
185+
if (color.get_luminance() > 0.3) {
186+
draw_rect_clipped(rect.grow(-1), Color(0.0, 0.0, 0.0, 0.5), false);
187+
}
185188
}
186189
}
187190

0 commit comments

Comments
 (0)