/* === S Y N F I G ========================================================= */
/*! \file shade.cpp
-** \brief Template Header
+** \brief Implementation of the "Shade" layer
**
** $Id$
**
{
IMPORT_PLUS(size,clamp(size));
IMPORT(type);
- IMPORT(color);
+ IMPORT_PLUS(color, { if (color.get_a() == 0) if (converted_blend_) {
+ set_blend_method(Color::BLEND_ALPHA_OVER);
+ color.set_a(1); } else transparent_color_ = true; });
IMPORT(offset);
IMPORT(invert);