Add maple board and chessnut pieces, redesign theme selector

pull/672/head
Thibault Duplessis 2015-06-29 13:51:40 +02:00
parent 11901ff3ac
commit ea0187c100
8 changed files with 163 additions and 50 deletions

View File

@ -17,7 +17,8 @@ themes = [
['chess7', 'svg'],
['reillycraig', 'svg'],
['fantasy', 'svg'],
['shapes', 'svg']
['shapes', 'svg'],
['chessnut', 'svg']
]
types = {
'svg' => 'svg+xml;base64,',

View File

@ -28,10 +28,17 @@ sealed trait PieceSetObject {
object PieceSet extends PieceSetObject {
val all = NonEmptyList("cburnett", "merida", "pirouetti", "alpha", "spatial", "chess7", "reillycraig", "fantasy", "shapes") map { name => new PieceSet(name) }
val all = NonEmptyList(
"cburnett", "merida", "alpha", "pirouetti",
"chessnut", "chess7", "reillycraig", "shapes",
"fantasy", "spatial"
) map { name => new PieceSet(name) }
}
object PieceSet3d extends PieceSetObject {
val all = NonEmptyList("Basic", "Wood", "Metal", "RedVBlue", "ModernJade", "ModernWood", "Glass", "Trimmed", "Experimental") map { name => new PieceSet(name) }
val all = NonEmptyList(
"Basic", "Wood", "Metal", "RedVBlue",
"ModernJade", "ModernWood", "Glass", "Trimmed",
"Experimental") map { name => new PieceSet(name) }
}

View File

@ -29,11 +29,10 @@ sealed trait ThemeObject {
object Theme extends ThemeObject {
val all = NonEmptyList(
"brown", "blue", "green",
"wood", "blue2", "marble",
"wood3", "blue3", "leather",
"wood2", "canvas", "purple",
"olive", "grey", "metal"
"blue", "blue2", "blue3", "canvas",
"wood", "wood2", "wood3", "maple",
"green", "marble", "browsn", "leather",
"grey", "metal", "olive", "purple"
) map { name => new Theme(name) }
}

View File

@ -1,19 +1,62 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="800px" height="800px" viewBox="0 0 800 800" style="enable-background:new 0 0 800 800;" xml:space="preserve">
<g id="black_knight">
<path d="M652.9,605.9c-8-43-28.9-151-43.3-212v-40l-0.5-1.6c-13.9-41.9-33.6-85.5-44.1-109c-1-2.2-1.8-4-2.6-5.7
c11.9-19,15.2-45.7,18.4-69.4c1.3-9.9,2.5-19.3,4.2-27.3l2.9-13.7l-14,0.8c-33.7,1.7-66.1,22.4-83.6,51.9
c5.9-21.6,0.9-49.4-14.4-72.1l-5.8-8.7l-9.4,4.8c-27.5,13.9-41.8,43.2-42.6,68.7c-10.7-1.1-21.2-1.6-31.1-1.6
c-16.7,0-32,1.5-45.3,4.5c-53,12-139.4,55-200.9,99.9l-4.4,3.2v428.3h319.5L440.7,689C374,610.9,338.6,536,338.6,472.1
c0-22,3.9-43.7,11.1-63.5c-1.4,21.1,1,41.3,7.5,59.1c12.6,34.9,49.1,55.3,70.8,64.7c17.7,16.2,46,51.2,61.3,74l25.9,67.4
l139.1-59.3L652.9,605.9z"/>
<path id="nose_2_" style="fill:#F2F2F2;" d="M613.3,578.1c-19.4-10.9-33.9,3.8-22.4,25.2L613.3,578.1z"/>
<path id="eye_2_" style="fill:#F2F2F2;" d="M561.7,361.1c6.9,9.5,0.6,29.3-6,34.5c-4.5-0.6-14.1-4.4-18.6-8l-21.5-24.9l4.5-3.7
C528.8,358.9,550.8,358.9,561.7,361.1z"/>
<path id="crin_1_" style="fill:#F2F2F2;" d="M470.9,200.3l-0.6-2.9c-31.1-5.1-73-6-97.3-6c-45.7,0-148,58.8-209.5,104.1v55.1
c45-43.5,141.2-118.8,196.3-135.8C397,203.3,433.9,199.1,470.9,200.3z"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="800px"
height="800px"
viewBox="0 0 800 800"
style="enable-background:new 0 0 800 800;"
xml:space="preserve"
inkscape:version="0.91 r13725"
sodipodi:docname="bN.svg"><metadata
id="metadata4314"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs4312" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1039"
id="namedview4310"
showgrid="false"
inkscape:zoom="0.295"
inkscape:cx="-216.94915"
inkscape:cy="400"
inkscape:window-x="0"
inkscape:window-y="20"
inkscape:window-maximized="0"
inkscape:current-layer="Layer_1" /><g
id="black_knight"
transform="matrix(-1,0,0,1,790.7,0)"><path
d="m 652.9,605.9 c -8,-43 -28.9,-151 -43.3,-212 l 0,-40 -0.5,-1.6 c -13.9,-41.9 -33.6,-85.5 -44.1,-109 -1,-2.2 -1.8,-4 -2.6,-5.7 11.9,-19 15.2,-45.7 18.4,-69.4 1.3,-9.9 2.5,-19.3 4.2,-27.3 l 2.9,-13.7 -14,0.8 c -33.7,1.7 -66.1,22.4 -83.6,51.9 5.9,-21.6 0.9,-49.4 -14.4,-72.1 l -5.8,-8.7 -9.4,4.8 c -27.5,13.9 -41.8,43.2 -42.6,68.7 -10.7,-1.1 -21.2,-1.6 -31.1,-1.6 -16.7,0 -32,1.5 -45.3,4.5 -53,12 -139.4,55 -200.9,99.9 l -4.4,3.2 0,428.3 319.5,0 L 440.7,689 C 374,610.9 338.6,536 338.6,472.1 c 0,-22 3.9,-43.7 11.1,-63.5 -1.4,21.1 1,41.3 7.5,59.1 12.6,34.9 49.1,55.3 70.8,64.7 17.7,16.2 46,51.2 61.3,74 l 25.9,67.4 139.1,-59.3 -1.4,-8.6 z"
id="path4305"
inkscape:connector-curvature="0" /><path
id="nose_2_"
style="fill:#f2f2f2"
d="m 613.3,578.1 c -19.4,-10.9 -33.9,3.8 -22.4,25.2 l 22.4,-25.2 z"
inkscape:connector-curvature="0" /><path
id="eye_2_"
style="fill:#f2f2f2"
d="m 561.7,361.1 c 6.9,9.5 0.6,29.3 -6,34.5 -4.5,-0.6 -14.1,-4.4 -18.6,-8 l -21.5,-24.9 4.5,-3.7 c 8.7,-0.1 30.7,-0.1 41.6,2.1 z"
inkscape:connector-curvature="0" /><path
id="crin_1_"
style="fill:#f2f2f2"
d="m 470.9,200.3 -0.6,-2.9 c -31.1,-5.1 -73,-6 -97.3,-6 -45.7,0 -148,58.8 -209.5,104.1 l 0,55.1 c 45,-43.5 141.2,-118.8 196.3,-135.8 37.2,-11.5 74.1,-15.7 111.1,-14.5 z"
inkscape:connector-curvature="0" /></g></svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,19 +1,63 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="800px" height="800px" viewBox="0 0 800 800" style="enable-background:new 0 0 800 800;" xml:space="preserve">
<g id="white_knight">
<path id="head_3_" style="fill:#FFFFFF;stroke:#000000;stroke-width:29.16;stroke-linecap:round;stroke-miterlimit:10;" d="
M148.9,692.2V280.6c57.2-41.8,142.3-85.8,196.6-98.1c42.6-9.7,101.3-2.1,148.6,13.2c13.3-34.9,48-58.6,81.5-60.4
c-6.3,29.6-5.9,74.3-24.3,97.7c7,16.2,32.1,69.4,48.7,119.3v39.4c13.9,59.1,34.9,166.2,43.4,212.8l-120.9,51.5l-22.4-58.1
c-15.2-22.7-45.7-60.9-65.1-78.2c-24.4-10.3-55.8-29.4-66.6-59.2c-14-38.4-6.3-84.3,10.5-119.9c-31,30.2-50,77-50,127.8
c0,68.1,38.1,145.9,104.7,223.7H148.9L148.9,692.2z"/>
<path id="nose_3_" style="stroke:#000000;stroke-width:9.169;stroke-miterlimit:10;" d="M614.4,574.8
c-19.4-10.9-33.9,3.8-22.4,25.2L614.4,574.8z"/>
<path id="eye_3_" style="stroke:#000000;stroke-width:0.9518;stroke-miterlimit:10;" d="M562.7,357.9c6.9,9.5,0.6,29.3-6,34.5
c-4.5-0.6-14.1-4.4-18.6-8l-21.5-24.9l4.5-3.7C529.9,355.7,551.8,355.7,562.7,357.9z"/>
<path id="ear_1_" style="fill:#FFFFFF;stroke:#000000;stroke-width:23.76;stroke-linecap:square;stroke-miterlimit:10;" d="
M474.1,186c12.5-17.9,9.9-49.7-7-75.1c-28.2,14.3-39.7,47.4-35.1,70.6"/>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="800px"
height="800px"
viewBox="0 0 800 800"
style="enable-background:new 0 0 800 800;"
xml:space="preserve"
inkscape:version="0.91 r13725"
sodipodi:docname="wN.svg"><metadata
id="metadata4260"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs4258" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1039"
id="namedview4256"
showgrid="false"
inkscape:zoom="1.07625"
inkscape:cx="400"
inkscape:cy="400"
inkscape:window-x="0"
inkscape:window-y="20"
inkscape:window-maximized="0"
inkscape:current-layer="Layer_1" /><g
id="white_knight"
transform="matrix(-1,0,0,1,794.15431,0)"><path
id="head_3_"
style="fill:#ffffff;stroke:#000000;stroke-width:29.15999985;stroke-linecap:round;stroke-miterlimit:10"
d="m 148.9,692.2 0,-411.6 c 57.2,-41.8 142.3,-85.8 196.6,-98.1 42.6,-9.7 101.3,-2.1 148.6,13.2 13.3,-34.9 48,-58.6 81.5,-60.4 -6.3,29.6 -5.9,74.3 -24.3,97.7 7,16.2 32.1,69.4 48.7,119.3 l 0,39.4 c 13.9,59.1 34.9,166.2 43.4,212.8 L 522.5,656 500.1,597.9 C 484.9,575.2 454.4,537 435,519.7 c -24.4,-10.3 -55.8,-29.4 -66.6,-59.2 -14,-38.4 -6.3,-84.3 10.5,-119.9 -31,30.2 -50,77 -50,127.8 0,68.1 38.1,145.9 104.7,223.7 l -284.7,0 0,0.1 z"
inkscape:connector-curvature="0" /><path
id="nose_3_"
style="stroke:#000000;stroke-width:9.16899967;stroke-miterlimit:10"
d="M 614.4,574.8 C 595,563.9 580.5,578.6 592,600 l 22.4,-25.2 z"
inkscape:connector-curvature="0" /><path
id="eye_3_"
style="stroke:#000000;stroke-width:0.95179999;stroke-miterlimit:10"
d="m 562.7,357.9 c 6.9,9.5 0.6,29.3 -6,34.5 -4.5,-0.6 -14.1,-4.4 -18.6,-8 l -21.5,-24.9 4.5,-3.7 c 8.8,-0.1 30.7,-0.1 41.6,2.1 z"
inkscape:connector-curvature="0" /><path
id="ear_1_"
style="fill:#ffffff;stroke:#000000;stroke-width:23.76000023;stroke-linecap:square;stroke-miterlimit:10"
d="m 474.1,186 c 12.5,-17.9 9.9,-49.7 -7,-75.1 -28.2,14.3 -39.7,47.4 -35.1,70.6"
inkscape:connector-curvature="0" /></g></svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -374,6 +374,10 @@ div.lichess_board {
#top div.color_demo.metal {
background-image: url(../images/board/metal-1024.jpg);
}
.maple .is2d .cg-board,
#top div.color_demo.maple {
background-image: url(../images/board/maple.jpg);
}
/* KotH boards */
.blue .is2d .kingOfTheHill .cg-board {
@ -916,6 +920,9 @@ div.lichess_board {
#top .cg-piece.shapes {
background-image: url(../piece/shapes/wN.svg);
}
#top .cg-piece.chessnut {
background-image: url(../piece/chessnut/wN.svg);
}
.pirouetti .is2d .cg-piece.piece.white {
-webkit-filter: drop-shadow(0 0 0.5px #000);
}

View File

@ -1523,7 +1523,7 @@ div.auth input.login {
}
#themepicker.shown .dropdown {
display: block;
width: 241px;
width: 321px;
text-align: center;
}
body #themepicker div.is2d,
@ -1592,7 +1592,7 @@ body #themepicker div.is3d,
}
#themepicker div.toggles {
display: inline-block;
margin: 20px 7px 10px 7px;
margin: 20px 20px 10px 20px;
text-align: center;
}
#themepicker div.toggles a {
@ -1610,12 +1610,12 @@ body #themepicker div.is3d,
margin-bottom: 5px;
}
#themepicker .zoom_control i {
font-size: 18px;
font-size: 24px;
margin-right: 5px;
}
#themepicker .zoom_control .slider {
margin: auto;
width: 120px;
width: 220px;
height: 10px;
display: inline-block;
}

File diff suppressed because one or more lines are too long