this is what i use in one of my themes....
using a white t-molding and changing RGB on the
options menu.
class UserConfig
{
</ label="color t-molding or white", help="Select tolding color", options="white,red,green,black,yellow" order=1 /> enable_image="white";
}
local my_config = fe.get_config();
//**t-molding config
if ( my_config["enable_image"] == "white")
{
local tmold = fe.add_image( "", 0, 0, flw, flh );
}
if ( my_config["enable_image"] == "red")
{
local tmold = fe.add_image( "images/tmold.png", 0, 0, flw, flh );
tmold.set_rgb( 255, 0, 0 );
tmold.alpha = 210;
}
if ( my_config["enable_image"] == "green")
{
local tmold = fe.add_image( "images/tmold.png", 0, 0, flw, flh );
tmold.set_rgb( 0, 255, 0 );
tmold.alpha = 180;
}
if ( my_config["enable_image"] == "black")
{
local tmold = fe.add_image( "images/tmold.png", 0, 0, flw, flh );
tmold.set_rgb( 0, 0, 0 );
tmold.alpha = 210;
}
if ( my_config["enable_image"] == "yellow")
{
local tmold = fe.add_image( "images/tmold.png", 0, 0, flw, flh );
tmold.set_rgb( 246, 255, 0 );
tmold.alpha = 190;
}