From cee7ea7474dbf33f425989bd84d4ee9449e9131a Mon Sep 17 00:00:00 2001 From: songyih Date: Sun, 23 Feb 2020 19:47:47 -0800 Subject: [PATCH] changed color combination for doudizhu gameboard and probability area --- src/assets/doudizhu.scss | 2 +- src/view/DoudizhuGameView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/doudizhu.scss b/src/assets/doudizhu.scss index 3e8143d..70d2d59 100644 --- a/src/assets/doudizhu.scss +++ b/src/assets/doudizhu.scss @@ -3,7 +3,7 @@ .doudizhu-wrapper { width: 100%; height: 100%; - background-color: #FEF9E7; + background-color: #C3CDFF; background-image: url("./images/table.png"); background-repeat: no-repeat; background-size: 100% 70%; diff --git a/src/view/DoudizhuGameView.js b/src/view/DoudizhuGameView.js index eb8bfeb..678463b 100644 --- a/src/view/DoudizhuGameView.js +++ b/src/view/DoudizhuGameView.js @@ -272,7 +272,7 @@ class DoudizhuGameView extends React.Component { computeProbabilityItem(idx){ if(this.state.gameInfo.gameStatus !== "ready" && this.state.gameInfo.turn < this.moveHistory.length){ let style = {}; - style["backgroundColor"] = this.moveHistory[this.state.gameInfo.turn].probabilities.length > idx ? `rgba(245, 176, 65 , ${this.moveHistory[this.state.gameInfo.turn].probabilities[idx].probability})` : "#bdbdbd"; + style["backgroundColor"] = this.moveHistory[this.state.gameInfo.turn].probabilities.length > idx ? `rgba(130, 151, 255 , ${this.moveHistory[this.state.gameInfo.turn].probabilities[idx].probability})` : "#bdbdbd"; return (