From be6cdae0466199a60c3e3e749a2b331c762dc6fc Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 27 Sep 2022 12:05:01 +0200 Subject: [PATCH] gui: Allow for 4-digit image IDs on 80-character terminals. Currently, the first digit of a 4-digit image ID get truncated to three characters if the width of the terminal window is at its minimal size of 80 characters. We can squeeze out two more characters from the previous field, so this is easy to fix. This only affects the colorful blackness theme. --- gui_theme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui_theme.c b/gui_theme.c index 6f4acf37..f71e802b 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -122,16 +122,16 @@ static void init_theme_colorful_blackness(struct gui_theme *t) d[SI_status_flags].align = LEFT; d[SI_status_flags].x = 11; d[SI_status_flags].y = 17; - d[SI_status_flags].len = 10; + d[SI_status_flags].len = 8; d[SI_image_id].prefix = "img: "; d[SI_image_id].postfix = ""; d[SI_image_id].color.fg = COLOR_RED; d[SI_image_id].color.bg = COLOR_BLACK; d[SI_image_id].align = CENTER; - d[SI_image_id].x = 21; + d[SI_image_id].x = 19; d[SI_image_id].y = 17; - d[SI_image_id].len = 10; + d[SI_image_id].len = 12; d[SI_lyrics_id].prefix = "lyr: "; d[SI_lyrics_id].postfix = ""; -- 2.39.2