This commit is contained in:
Maciej Caderek
2022-02-17 16:21:01 +01:00
parent 67f52a680d
commit 1bcb481574
9 changed files with 155 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ import lila from "./mono/lila";
import peach from "./mono/peach"; import peach from "./mono/peach";
import standard from "./mono/standard"; import standard from "./mono/standard";
import violet from "./mono/violet"; import violet from "./mono/violet";
import danya from "./mono/danya";
import botez from "./mono/botez";
import avocado from "./colorful/avocado"; import avocado from "./colorful/avocado";
@@ -22,6 +24,8 @@ export default {
lila, lila,
peach, peach,
violet, violet,
danya,
botez,
avocado, avocado,
calm, calm,
laguna, laguna,

View File

@@ -0,0 +1,41 @@
import { Style } from "../../../types";
const style: Style = {
name: "Botez",
category: "mono",
background: {
type: "solid",
data: {
color: "transparent",
},
},
dark: {
type: "solid",
data: {
color: "#8877b6",
},
},
light: {
type: "solid",
data: {
color: "#efefef",
},
},
moveIndicator: {
type: "color",
data: "#7dacc97f",
},
border: {
type: "solid",
data: {
color: "#554973",
},
},
coords: {
onLight: "#554973",
onDark: "#f2f2f2",
onBorder: "#efefef",
},
};
export default style;

View File

@@ -0,0 +1,41 @@
import { Style } from "../../../types";
const style: Style = {
name: "Danya",
category: "mono",
background: {
type: "solid",
data: {
color: "transparent",
},
},
dark: {
type: "solid",
data: {
color: "#4c7399",
},
},
light: {
type: "solid",
data: {
color: "#eae9d2",
},
},
moveIndicator: {
type: "color",
data: "#00a5ff7f",
},
border: {
type: "solid",
data: {
color: "#2a4057",
},
},
coords: {
onLight: "#2a4057",
onDark: "#fffff0",
onBorder: "#eae9d2",
},
};
export default style;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,12 @@
import alpha from "./alpha"; import alpha from "./alpha";
import cardinal from "./cardinal"; import cardinal from "./cardinal";
import cburnett from "./cburnett"; import cburnett from "./cburnett";
import companion from "./companion";
import fantasy from "./fantasy"; import fantasy from "./fantasy";
import gioco from "./gioco"; import gioco from "./gioco";
import governor from "./governor";
import horsey from "./horsey"; import horsey from "./horsey";
import maestro from "./maestro";
import merida from "./merida"; import merida from "./merida";
import staunty from "./staunty"; import staunty from "./staunty";
import tatiana from "./tatiana"; import tatiana from "./tatiana";
@@ -12,9 +15,12 @@ const piecesSets = {
alpha, alpha,
cardinal, cardinal,
cburnett, cburnett,
companion,
fantasy, fantasy,
gioco, gioco,
governor,
horsey, horsey,
maestro,
merida, merida,
staunty, staunty,
tatiana, tatiana,

File diff suppressed because one or more lines are too long

View File

@@ -110,6 +110,15 @@ const main = async () => {
setState({ pgn: "", fen, moves: game.getMoves(), ply: 0, game }); setState({ pgn: "", fen, moves: game.getMoves(), ply: 0, game });
window.location.hash = `v1/fen/${state.fen}`; window.location.hash = `v1/fen/${state.fen}`;
await player.load(game); await player.load(game);
setState("activeTab", "game");
if (
game.getPosition(0).turn === "b" &&
state.boardConfig.flipped === false
) {
setState("boardConfig", "flipped", true);
board.flip();
}
document.title = `SHORTCASTLE - FEN ${fen}`; document.title = `SHORTCASTLE - FEN ${fen}`;
}, },

View File

@@ -93,12 +93,14 @@ export type Piece =
| "pb"; | "pb";
export type BoardStyle = export type BoardStyle =
| "standard"
| "chesscom" | "chesscom"
| "lichess" | "lichess"
| "lila" | "lila"
| "peach" | "peach"
| "standard"
| "violet" | "violet"
| "danya"
| "botez"
| "avocado" | "avocado"
| "calm" | "calm"
| "laguna" | "laguna"
@@ -110,9 +112,12 @@ export type PiecesStyle =
| "alpha" | "alpha"
| "cardinal" | "cardinal"
| "cburnett" | "cburnett"
| "companion"
| "fantasy" | "fantasy"
| "gioco" | "gioco"
| "governor"
| "horsey" | "horsey"
| "maestro"
| "merida" | "merida"
| "staunty" | "staunty"
| "tatiana"; | "tatiana";