feat: make status bars configurable

This commit is contained in:
CJ van den Berg 2024-08-25 20:46:18 +02:00
parent 9efff08e1f
commit 4df737e78f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
14 changed files with 131 additions and 64 deletions

View file

@ -19,7 +19,7 @@ on_event: ?Widget.EventHandler,
const Self = @This();
pub fn create(a: Allocator, parent: Plane, event_handler: ?Widget.EventHandler) !Widget {
pub fn create(a: Allocator, parent: Plane, event_handler: ?Widget.EventHandler) @import("widget.zig").CreateError!Widget {
const self: *Self = try a.create(Self);
self.* = .{
.plane = try Plane.init(&(Widget.Box{}).opts(@typeName(Self)), parent),