fixed a stupid bug
[kboard.git] / data / themes / squares / Default / theme.lua
blob6a7fb2abd9407904a29e3528cc1ab5495450ca40
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")
7 dark_square.a = 224
8 light_square.a = 224
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)
15 return i
16 end
19 theme.name = "Default"
20 theme.description = "Default squares"
21 theme.variants = { "Chess[default]", "Shogi", "XiangQi" }