Skip to content

UI improvements for layer groups in timeline#5758

Merged
dacap merged 3 commits into
aseprite:betafrom
dacap:better-groups-in-timeline
Apr 20, 2026
Merged

UI improvements for layer groups in timeline#5758
dacap merged 3 commits into
aseprite:betafrom
dacap:better-groups-in-timeline

Conversation

@dacap

@dacap dacap commented Apr 20, 2026

Copy link
Copy Markdown
Member

Some progress to improve layer groups in timeline (fix #5651)

image

@aseprite-bot aseprite-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

Comment thread src/app/ui/timeline/timeline.cpp Outdated
false,
is_hover,
true);
drawPart(g, boundsBox, nullptr, bgStyle, false, is_hover, true);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: repeated branch body in conditional chain [bugprone-branch-clone]

    drawPart(g, boundsBox, nullptr, bgStyle, false, is_hover, true);
    ^
Additional context

src/app/ui/timeline/timeline.cpp:2479: end of the original

    drawPart(g, boundsBox, nullptr, bgStyle, false, is_hover, true);
                                                                   ^

src/app/ui/timeline/timeline.cpp:2481: clone 1 starts here

    drawPart(g, boundsBox, nullptr, bgStyle, false, is_hover, true);
    ^

const int t = std::clamp(thumb_bounds.w / 8, 4, 16);
draw_checkered_grid(g, thumb_bounds, gfx::Size(t, t), docPref());
if (!thumb_bounds.isEmpty()) {
if (os::SurfaceRef surface =

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'surface' of type 'os::SurfaceRef' (aka 'Refos::Surface') can be declared 'const' [misc-const-correctness]

Suggested change
if (os::SurfaceRef surface =
if (os::SurfaceRef const surface =

@dacap dacap changed the title Paint layer groups as one block/without cel boxes (w/user color if de… UI improvements for layer groups in timeline Apr 20, 2026
@dacap dacap force-pushed the better-groups-in-timeline branch from 5b141d5 to 18708b2 Compare April 20, 2026 19:20
@dacap dacap self-assigned this Apr 20, 2026
@dacap dacap added this to the v1.3.18-beta2 milestone Apr 20, 2026
@dacap dacap force-pushed the better-groups-in-timeline branch from 18708b2 to 48bcd76 Compare April 20, 2026 20:34
@dacap dacap marked this pull request as ready for review April 20, 2026 20:36

@aseprite-bot aseprite-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

while (parent && parent != root) {
u -= frameBoxWithWithoutZoom;
gfx::Rect b2(u, textBounds.y, frameBoxWithWithoutZoom, textBounds.h);
gfx::Rect b3 = b2;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'b3' of type 'gfx::Rect' (aka 'RectT') can be declared 'const' [misc-const-correctness]

Suggested change
gfx::Rect b3 = b2;
gfx::Rect const b3 = b2;

@dacap dacap force-pushed the better-groups-in-timeline branch from 48bcd76 to 719fda4 Compare April 20, 2026 20:41
@dacap dacap merged commit 719fda4 into aseprite:beta Apr 20, 2026
12 checks passed
@dacap dacap deleted the better-groups-in-timeline branch April 20, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants