Skip to content

Commit

Permalink
Adjust map display colors to preserve contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Jan 21, 2022
1 parent 81331c3 commit eed7125
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/src/components/website/match/MapDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ export default {
return this.match.teams.find(t => t.id === cleanID(this.map.winner.id));
},
imageCSS() {
let mapTheme = { color: "#ffffff" };
if (!this.map?.image && this.theme) {
mapTheme = themeBackground(this.theme);
}
return {
...cssImage("backgroundImage", this.map, ["image"], 160),
...(this.theme ? themeBackground(this.theme) : {})
...mapTheme
};
},
complete() {
Expand Down

0 comments on commit eed7125

Please sign in to comment.