mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 15:19:13 +02:00
labels positioned regardless of hiding key hints
This commit is contained in:
parent
3c54c1613a
commit
eeefc1657c
1 changed files with 8 additions and 8 deletions
16
src/main.zig
16
src/main.zig
|
|
@ -1926,14 +1926,14 @@ fn positionWidgets(ptr: *anyopaque) !void {
|
|||
item.lbl.positionXY(state.edge_margin
|
||||
.addY(@intCast(i)));
|
||||
}
|
||||
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));
|
||||
}
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
||||
state.battery_label.positionXY(state.edge_margin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue