summaryrefslogtreecommitdiff
path: root/src/backgroundwidget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-23 00:14:44 +0000
committerDana Jansens <danakj@orodu.net>2003-01-23 00:14:44 +0000
commitdd6f90684899e8e26e653af4b2e7e7eab1abf798 (patch)
tree6abc26138d2e929dc05cad1435ec02664eb4c988 /src/backgroundwidget.cc
parent17d63184998b747e1a0554dc4364a36238b039e1 (diff)
compiles with the new render subsystem...
Diffstat (limited to 'src/backgroundwidget.cc')
-rw-r--r--src/backgroundwidget.cc16
1 files changed, 8 insertions, 8 deletions
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;