From: Benjamin Auder Date: Wed, 22 Apr 2020 10:40:22 +0000 (+0200) Subject: Add orange board theme X-Git-Url: https://git.auder.net/variants/Chakart/doc/html/pieces/css/%7B%7B?a=commitdiff_plain;h=baa6f86f72e3b697ec2fcd34913986b2fa5f02eb;p=vchess.git Add orange board theme --- diff --git a/TODO b/TODO index 0766d2df..886aaf38 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,11 @@ Issue: embedded rules language not updated when language is set (in Analyse, Game and Problems) Also: if new live game starts in background, "new game" notify OK but not first move (not too serious however) +For Teleport, Chakart and Hamilton at least: a piece should be attached to mouse cursor, +waiting for a click dropping it somewhere. In BaseGame: find the appropriate place to call eg. Board::setHoverPiece(), +which should be in effect when hovering over position only (#gamePosition), and cancelled when receiving the +message stopHover() for example. + https://www.chessvariants.com/crossover.dir/koopachess.html --> Can a stunned piece capture? Maybe not. ...recover? After 5 moves? Never? + Chakart :) @@ -30,6 +35,6 @@ Yoté https://fr.wikipedia.org/wiki/Yot%C3%A9 http://www.zillionsofgames.com/cgi gess https://en.wikipedia.org/wiki/Gess weiqi (check if landed stone captures, walk on connected components), go13, go9, gomoku, reversi first click show the stone, second click confirm the move? -avalam, qoridor, xiangqi, draughts, draughts8 +avalam, qoridor (wider lines in another color, vr.lines [npt static get] for this one ?), xiangqi, draughts, draughts8 (puis quand hexaboards peut-être: hexavariants + Hex) Byo-yomi possible: 1h+b15,5m (15 pierres 5 minutes) diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 70c46b91..5a21771d 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -915,4 +915,9 @@ img.ghost background-color: #9f9fff .dark-square.chesstempo.highlight-dark background-color: #557fff + +.light-square.orangecc.highlight-light + background-color: #fef273 +.dark-square.orangecc.highlight-dark + background-color: #e8c525 diff --git a/client/src/components/Settings.vue b/client/src/components/Settings.vue index d2194dae..415e9d40 100644 --- a/client/src/components/Settings.vue +++ b/client/src/components/Settings.vue @@ -45,6 +45,7 @@ div option(value="lichess") {{ st.tr["brown"] }} option(value="chesscom") {{ st.tr["green"] }} option(value="chesstempo") {{ st.tr["blue"] }} + option(value="orangecc") {{ st.tr["orange"] }} fieldset label(for="setSound") | {{ st.tr["Sound alert at game start"] }} diff --git a/client/src/styles/_board_squares_img.sass b/client/src/styles/_board_squares_img.sass index c1adf6fc..e082f9ec 100644 --- a/client/src/styles/_board_squares_img.sass +++ b/client/src/styles/_board_squares_img.sass @@ -76,22 +76,26 @@ img.circle-square background-color: #f0d9b5 .dark-square.lichess background-color: #b58863 +.middle-square.lichess + background-color: #D3B18C .light-square.chesscom background-color: #e5e5ca .dark-square.chesscom background-color: #6f8f57 +.middle-square.chesscom + background-color: #AABA91 .light-square.chesstempo background-color: #dfdfdf .dark-square.chesstempo background-color: #7287b6 - -.middle-square.lichess - background-color: #D3B18C - -.middle-square.chesscom - background-color: #AABA91 - .middle-square.chesstempo background-color: #A9B3CB + +.light-square.orangecc + background-color: #fce4b2 +.dark-square.orangecc + background-color: #d08b18 +.middle-square.orangecc + background-color: #E6B865 diff --git a/client/src/translations/en.js b/client/src/translations/en.js index 938e96b0..4320d310 100644 --- a/client/src/translations/en.js +++ b/client/src/translations/en.js @@ -94,6 +94,7 @@ export const translations = { Observe: "Observe", "Offer draw?": "Offer draw?", "Opponent action": "Opponent action", + orange: "orange", "Participant(s):": "Participant(s):", "Play with": "Play with", Players: "Players", diff --git a/client/src/translations/es.js b/client/src/translations/es.js index 75dbf59b..c55f3968 100644 --- a/client/src/translations/es.js +++ b/client/src/translations/es.js @@ -94,6 +94,7 @@ export const translations = { "Offer draw?": "¿Ofrecer tablas?", Observe: "Observar", "Opponent action": "Acción del adversario", + orange: "naranja", "Participant(s):": "Participante(s):", "Play with": "Jugar con", Players: "Jugadores", diff --git a/client/src/translations/fr.js b/client/src/translations/fr.js index e6e8aa6c..a073797a 100644 --- a/client/src/translations/fr.js +++ b/client/src/translations/fr.js @@ -94,6 +94,7 @@ export const translations = { "Offer draw?": "Proposer nulle ?", Observe: "Observer", "Opponent action": "Action de l'adversaire", + orange: "orange", "Participant(s):": "Participant(s) :", "Play with": "Jouer avec", Players: "Joueurs",