order of labels aligns with order of definitions in config

This commit is contained in:
RadsammyT 2026-03-27 17:06:09 -04:00
commit f8a314aa73
No known key found for this signature in database

View file

@ -1907,11 +1907,11 @@ fn positionWidgets(ptr: *anyopaque) !void {
}
for (state.custom_info.items, 0..) |*item, i| {
item.lbl.positionXY(state.edge_margin
.addY(@intCast(i))
.invertX(state.buffer.width)
.removeX(item.lbl.text.len)
.invertY(state.buffer.height)
.removeY(1));
.removeY(state.custom_info.items.len)
.addY(i));
}
state.battery_label.positionXY(state.edge_margin