From: Andre Noll Date: Fri, 9 Aug 2024 20:53:00 +0000 (+0200) Subject: gui: Fix formatting of amp value. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=74ba3e055775f552c86f13967c2bb56c675b9310;p=paraslash.git gui: Fix formatting of amp value. It was observed on a 178 column wide xterm window that for the colorful blackness theme the amp value shown in the top window of para_gui wrapped into the subsequent line under some circumstances. Adjust the corresponding value in gui_theme.c to fix this. Also add the missing space character to the prefix and fix a whitespace issue while at it. --- diff --git a/gui_theme.c b/gui_theme.c index 81bbe0f6..ab5e4292 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -87,7 +87,6 @@ static void init_theme_colorful_blackness(struct gui_theme *t) t->dflt.bg = COLOR_BLACK; t->dflt.fg = COLOR_MAGENTA; - d[SI_play_time].prefix = ""; d[SI_play_time].postfix = ""; d[SI_play_time].color.fg = COLOR_CYAN; @@ -259,12 +258,12 @@ static void init_theme_colorful_blackness(struct gui_theme *t) d[SI_chunk_time].y = 27; d[SI_chunk_time].len = 8; - d[SI_amplification].prefix = "amp:"; + d[SI_amplification].prefix = "amp: "; d[SI_amplification].postfix = ""; d[SI_amplification].color.fg = COLOR_MAGENTA; d[SI_amplification].color.bg = COLOR_BLACK; d[SI_amplification].align = RIGHT; - d[SI_amplification].x = 92; + d[SI_amplification].x = 91; d[SI_amplification].y = 27; d[SI_amplification].len = 9;