horizontal align custom binds

This commit is contained in:
RadsammyT 2026-03-25 19:23:36 -04:00
commit f54bc677f1
No known key found for this signature in database

View file

@ -1893,9 +1893,14 @@ fn positionWidgets(ptr: *anyopaque) !void {
state.brightness_up_label.positionXY(last_label
.childrenPosition()
.addX(1));
for (state.custom_binds.items, 1..) |*item, i| {
item.lbl.positionXY(state.edge_margin
.addY(@intCast(i)));
for (state.custom_binds.items, 0..) |*item, i| {
if (i == 0)
item.lbl.positionXY(state.edge_margin
.addY(1))
else
item.lbl.positionXY(state.custom_binds.items[i-1].lbl.childrenPosition()
.addX(1)
.removeY(1));
}
}
for (state.custom_info.items, 0..) |*item, i| {