Change of background color
This commit is contained in:
parent
5c0095dbb2
commit
378ef72efc
|
|
@ -80,7 +80,7 @@ public class JPanelChessBoard extends JPanel {
|
|||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
this.setBackground(new Color(115, 149, 82));
|
||||
this.setBackground(new Color(238,236,208));
|
||||
if(pieceSelectorMode) {
|
||||
g.drawImage(
|
||||
spriteSheet,
|
||||
|
|
@ -97,7 +97,7 @@ public class JPanelChessBoard extends JPanel {
|
|||
float cellWidth = cellWidth();
|
||||
float cellHeight = cellHeight();
|
||||
|
||||
g.setColor(new Color(238,236,208));
|
||||
g.setColor(new Color(115, 149, 82));
|
||||
for(int x=0; x<myGame.getWidth();x++) {
|
||||
for (int y=0; y<myGame.getHeight(); y++) {
|
||||
boolean isSelect = myGame.isSelected(x,y);
|
||||
|
|
@ -117,7 +117,7 @@ public class JPanelChessBoard extends JPanel {
|
|||
);
|
||||
}
|
||||
if(isHighlight || isSelect) {
|
||||
g.setColor(new Color(238,238,210));
|
||||
g.setColor(new Color(115, 149, 82));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue