Add the cascade animation as a separate widget

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-02-10 17:43:55 +01:00
parent f320d3f666
commit d268d5bb45
15 changed files with 276 additions and 148 deletions

View File

@@ -140,7 +140,7 @@ pub fn childrenPosition(self: BigLabel) Position {
return self.children_pos;
}
pub fn draw(self: *BigLabel) void {
fn draw(self: *BigLabel) void {
for (self.text, 0..) |c, i| {
const clock_cell = clockCell(
c,
@@ -159,7 +159,7 @@ pub fn draw(self: *BigLabel) void {
}
}
pub fn update(self: *BigLabel, context: *anyopaque) !void {
fn update(self: *BigLabel, context: *anyopaque) !void {
if (self.update_fn) |update_fn| {
return @call(
.auto,