mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Merge pull request #59728 from timothyqiu/clip-key
This commit is contained in:
commit
368fb62a22
@ -339,11 +339,11 @@ void AnimationTrackEditAudio::draw_key(int p_index, float p_pixels_sec, int p_x,
|
||||
Rect2 rect(Vector2(p_x, int(get_size().height - fh) / 2), Size2(fh, fh));
|
||||
|
||||
Color color = get_theme_color(SNAME("font_color"), SNAME("Label"));
|
||||
draw_rect(rect, color);
|
||||
draw_rect_clipped(rect, color);
|
||||
|
||||
if (p_selected) {
|
||||
Color accent = get_theme_color(SNAME("accent_color"), SNAME("Editor"));
|
||||
draw_rect(rect, accent, false);
|
||||
draw_rect_clipped(rect, accent, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -712,11 +712,11 @@ void AnimationTrackEditSubAnim::draw_key(int p_index, float p_pixels_sec, int p_
|
||||
Rect2 rect(Vector2(p_x, int(get_size().height - fh) / 2), Size2(fh, fh));
|
||||
|
||||
Color color = get_theme_color(SNAME("font_color"), SNAME("Label"));
|
||||
draw_rect(rect, color);
|
||||
draw_rect_clipped(rect, color);
|
||||
|
||||
if (p_selected) {
|
||||
Color accent = get_theme_color(SNAME("accent_color"), SNAME("Editor"));
|
||||
draw_rect(rect, accent, false);
|
||||
draw_rect_clipped(rect, accent, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1287,11 +1287,11 @@ void AnimationTrackEditTypeAnimation::draw_key(int p_index, float p_pixels_sec,
|
||||
Rect2 rect(Vector2(p_x, int(get_size().height - fh) / 2), Size2(fh, fh));
|
||||
|
||||
Color color = get_theme_color(SNAME("font_color"), SNAME("Label"));
|
||||
draw_rect(rect, color);
|
||||
draw_rect_clipped(rect, color);
|
||||
|
||||
if (p_selected) {
|
||||
Color accent = get_theme_color(SNAME("accent_color"), SNAME("Editor"));
|
||||
draw_rect(rect, accent, false);
|
||||
draw_rect_clipped(rect, accent, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user