# HG changeset patch # User Patric Stout # Date 2021-01-13 13:55:55 # Node ID 66b379079421c57cb8de7ba4e745ce91ad3b39a2 # Parent 2d91fb756d3b8f4fb45fbb101bc7ed852e24e20f Change: darken the background of all graph to increase contrast (#8557) Now lines like Mauve, Dark Green and Purple are much more visible without hurting the other colours. diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -325,6 +325,9 @@ protected: /* Where to draw the X axis. Use floating point to avoid overflowing and results of zero. */ x_axis_offset = (int)((r.bottom - r.top) * (double)interval.highest / (double)interval_size); + /* Draw the background of the graph itself. */ + GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(2)); + /* Draw the vertical grid lines. */ /* Don't draw the first line, as that's where the axis will be. */