Skip to content

Commit

Permalink
fix reversed home/away playerboard
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanfrans committed Apr 13, 2024
1 parent b3ddc82 commit fec050a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/cxt/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ import { MessageType } from "../lib/model/MessageType";
const hidePlayerboard = playersState.hidePlayers;

playerboardElement.style.visibility = hidePlayerboard ? "hidden" : "visible";
playerboardElement.awayGradient = toGradientValue(teams.awayGradient);
playerboardElement.homeGradient = toGradientValue(teams.homeGradient);
// todo fix home away reversed
playerboardElement.homeGradient = toGradientValue(teams.awayGradient);
playerboardElement.awayGradient = toGradientValue(teams.homeGradient);
playerboardElement.layoutGradient = toGradientValue(options.style.background2);
playerboardElement.backgroundGradient = toGradientValue(options.style.background1);
playerboardElement.fontColorDark = options.style.fontColor2;
Expand Down

0 comments on commit fec050a

Please sign in to comment.