mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Add edge margin to numlock & capslock
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -734,8 +734,10 @@ pub fn main() !void {
|
|||||||
break :draw_lock_state;
|
break :draw_lock_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
var lock_state_x = buffer.width - @min(buffer.width, lang.numlock.len);
|
var lock_state_x = buffer.width - @min(buffer.width, lang.numlock.len) - config.edge_margin;
|
||||||
const lock_state_y: usize = if (config.clock != null) 1 else 0;
|
var lock_state_y: usize = config.edge_margin;
|
||||||
|
|
||||||
|
if (config.clock != null) lock_state_y += 1;
|
||||||
|
|
||||||
if (lock_state.numlock) buffer.drawLabel(lang.numlock, lock_state_x, lock_state_y);
|
if (lock_state.numlock) buffer.drawLabel(lang.numlock, lock_state_x, lock_state_y);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user