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:
commit
deace09d37
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue