mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -427,9 +427,14 @@ pub fn main() !void {
|
||||
if (auth_fails < config.auth_fails) {
|
||||
_ = termbox.tb_clear();
|
||||
|
||||
var length: usize = 0;
|
||||
|
||||
if (!animation_timed_out) animation.draw();
|
||||
|
||||
buffer.drawLabel(ly_top_str, 0, 0);
|
||||
if (!config.hide_version_string) {
|
||||
buffer.drawLabel(ly_top_str, length, 0);
|
||||
length += ly_top_str.len + 1;
|
||||
}
|
||||
|
||||
if (config.bigclock != .none and buffer.box_height + (bigclock.HEIGHT + 2) * 2 < buffer.height) draw_big_clock: {
|
||||
const format = "%H:%M";
|
||||
@@ -490,8 +495,6 @@ pub fn main() !void {
|
||||
info_line.label.draw();
|
||||
|
||||
if (!config.hide_key_hints) {
|
||||
var length: usize = ly_top_str.len + 1;
|
||||
|
||||
buffer.drawLabel(config.shutdown_key, length, 0);
|
||||
length += config.shutdown_key.len + 1;
|
||||
buffer.drawLabel(" ", length - 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user