X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbackgroundwidget.cc;h=4d1a51d0644053f645a2bb5dbcd96cb45f66fcf3;hb=fc4885a3f4c2a023a6e64cce62fc5cde1667f2e9;hp=9d660a7939c75cc7fcd8a7332f6586fcf9dba93a;hpb=77ab46d1e35d48e73c201e6de88b26f48bb06425;p=chaz%2Fopenbox diff --git a/src/backgroundwidget.cc b/src/backgroundwidget.cc index 9d660a79..4d1a51d0 100644 --- a/src/backgroundwidget.cc +++ b/src/backgroundwidget.cc @@ -26,21 +26,21 @@ void BackgroundWidget::setTextures() switch (type()) { case Type_Titlebar: if (_focused) - setTexture(_style->getTitleFocus()); + setTexture(_style->titlebarFocusBackground()); else - setTexture(_style->getTitleUnfocus()); + setTexture(_style->titlebarUnfocusBackground()); break; case Type_Handle: if (_focused) - setTexture(_style->getHandleFocus()); + setTexture(_style->handleFocusBackground()); else - setTexture(_style->getHandleUnfocus()); + setTexture(_style->handleUnfocusBackground()); break; case Type_Plate: if (_focused) - setBorderColor(&_style->getFrameFocus()->color()); + setBorderColor(_style->clientBorderFocusColor()); else - setBorderColor(&_style->getFrameUnfocus()->color()); + setBorderColor(_style->clientBorderUnfocusColor()); break; default: assert(false); // there's no other background widgets! @@ -48,14 +48,14 @@ void BackgroundWidget::setTextures() } -void BackgroundWidget::setStyle(otk::Style *style) +void BackgroundWidget::setStyle(otk::RenderStyle *style) { Widget::setStyle(style); setTextures(); switch (type()) { case Type_Titlebar: case Type_Handle: - setBorderColor(_style->getBorderColor()); + setBorderColor(_style->frameBorderColor()); break; case Type_Plate: break;