Improve the animation track editor drawing

- Draw a background on alternate lines to ease readability of
  animations with many tracks.
- Draw a background on the currently hovered line.
- Use the editor focus stylebox instead of a custom rectangle
  for the focused track.
This commit is contained in:
Hugo Locurcio 2022-03-21 21:55:33 +01:00
parent 422a45a69e
commit 313c672dc8
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
2 changed files with 19 additions and 1 deletions

View file

@ -171,6 +171,7 @@ class AnimationTrackEdit : public Control {
PopupMenu *menu;
bool hovered = false;
bool clicking_on_name = false;
void _zoom_changed();