UI: Darken game-as-background a bit more for UI legibility

This commit is contained in:
Henrik Rydgård 2022-12-01 15:06:46 +01:00
parent 40ae99073b
commit 7f7af003ce

View file

@ -379,7 +379,7 @@ void DrawGameBackground(UIContext &dc, const Path &gamePath, float x, float y, f
dc.Begin();
if (darkenBackground) {
uint32_t color = colorAlpha(colorBlend(dc.GetTheme().backgroundColor, 0, 0.5f), 0.45f);
uint32_t color = colorAlpha(colorBlend(dc.GetTheme().backgroundColor, 0, 0.5f), 0.65f);
dc.FillRect(UI::Drawable(color), dc.GetBounds());
dc.Flush();
}