1 import("../../pieces/common.lua")
2 import("selection.lua")
4 theme
.background
= function (size
)
5 local dark_square
= Color("#6b829c")
6 local light_square
= Color("#b8c0c0")
9 local i
= Image(size
*2,size
*2)
10 i
:set_paint_over(false);
11 i
:fill_rect(Rect(0,0,size
,size
), light_square
)
12 i
:fill_rect(Rect(size
,0,size
,size
), dark_square
)
13 i
:fill_rect(Rect(0,size
,size
,size
), dark_square
)
14 i
:fill_rect(Rect(size
,size
,size
,size
), light_square
)
19 theme
.name
= "Default"
20 theme
.description
= "Default squares"
21 theme
.variants
= { "Chess[default]", "Shogi", "XiangQi" }