MINOR: stats: Add dark mode support for socket rows
authorMarno Krahmer <marno.krahmer@new-work.se>
Tue, 8 Mar 2022 12:45:09 +0000 (13:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2022 13:53:48 +0000 (14:53 +0100)
In commit e9ed63e548 dark mode support was added to the stats page. The
initial commit does not include  dark mode color overwrites for the
.socket CSS class. This commit colors socket rows the same way as
backends that acre active but do not have a health check defined.

This fixes an issue where reading information from socket lines became
really hard in dark mode due to suboptimal coloring of the cell
background and the font in it.

(cherry picked from commit a690b73fba4d09ff32bc9c1e19c321ae0649a7cd)
Signed-off-by: Willy Tarreau <w@1wt.eu>

src/stats.c

index bacde28..3eecac8 100644 (file)
@@ -3331,6 +3331,7 @@ static void stats_dump_html_head(struct appctx *appctx, struct uri_auth *uri)
                      " .hr { border-color: #8c8273; }\n"
                      " .titre { background-color: #1aa6a6; color: #e8e6e3; }\n"
                      " .frontend {background: #2f3437;}\n"
+                     " .socket {background: #2a2d2f;}\n"
                      " .backend {background: #2f3437;}\n"
                      " .active_down {background: #760000;}\n"
                      " .active_going_up {background: #b99200;}\n"