Link graph GUI: Fix poor contrast in graph legend window cargo labels.

Select foreground colour depending on brightness of background.
This commit is contained in:
Jonathan G Rennison
2016-11-21 23:08:13 +00:00
parent 55057110a5
commit fa261207ae
3 changed files with 5 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ inline int GetCharacterHeight(FontSize size)
extern DrawPixelInfo *_cur_dpi;
TextColour GetContrastColour(uint8 background);
TextColour GetContrastColour(uint8 background, uint8 threshold = 128);
/**
* All 16 colour gradients