mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-23 14:04:20 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
9b00df4337
3 changed files with 10 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue