From: Andre Noll Date: Tue, 27 Sep 2022 10:05:01 +0000 (+0200) Subject: gui: Allow for 4-digit image IDs on 80-character terminals. X-Git-Tag: v0.7.2~21 X-Git-Url: http://git.tuebingen.mpg.de/versions/paraslash-0.3.1.tar.bz2.asc?a=commitdiff_plain;h=be6cdae0466199a60c3e3e749a2b331c762dc6fc;p=paraslash.git 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. --- 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 = "";