+void BackgroundWidget::setStyle(otk::RenderStyle *style)
+{
+ Widget::setStyle(style);
+ setTextures();
+ switch (type()) {
+ case Type_Titlebar:
+ case Type_Handle:
+ setBorderColor(_style->frameBorderColor());
+ break;
+ case Type_Plate:
+ break;
+ default:
+ assert(false); // there's no other background widgets!
+ }