]> git.tue.mpg.de Git - paraslash.git/commitdiff
gui: Fix formatting of amp value.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 9 Aug 2024 20:53:00 +0000 (22:53 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 10 Sep 2024 13:45:32 +0000 (15:45 +0200)
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.

gui_theme.c

index 81bbe0f6760b82f88fb9f97f45f2f5a42ed494ab..ab5e4292e971b41ac0ea72648629dd96120869af 100644 (file)
@@ -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;