/usr/share/kde4/apps/tagua/themes/squares/Default/theme_solid.lua is in tagua-data 1.0~alpha2-15.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import("piece_theme.lua")
import("selection.lua")
theme.options = OptList {
ColorOpt("light", "Light square", "white"),
ColorOpt("dark", "Dark square", "black"),
IntOpt("alpha", "Alpha", 192, 0, 255, "slider"),
}
theme.background = function(size)
local dark_square = theme.options.dark.value
local light_square = theme.options.light.value
dark_square.a = theme.options.alpha.value
light_square.a = theme.options.alpha.value
local i = Image(size*2,size*2)
i:set_paint_over(false)
i:fill_rect(Rect(0,0,size,size), light_square)
i:fill_rect(Rect(size,0,size,size), dark_square)
i:fill_rect(Rect(0,size,size,size), dark_square)
i:fill_rect(Rect(size,size,size,size), light_square)
return i
end
|