pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.45k stars 272 forks source link

TimeLineCells rewrite part 1 #1880

Open MrStevns opened 5 days ago

MrStevns commented 5 days ago

This PR consists of a rewrite of the timeline cells part where:

Here's what the timeline look like now:

image

A bunch of other changes and improvements made along the way:

You can see the improvements in action here: timeline-rewrite

TLDR

The left part of the timeline, namely the layer cells has been rewritten to use widgets, are now easier to maintain and extend. The right part of the timeline, namely the track cells have been left mostly untouched and in large parts have just been moved into it's own component but still uses QPainter and contain the same logic as before.

fixes https://github.com/pencil2d/pencil/issues/1849