summaryrefslogtreecommitdiffstats
path: root/src/komposetaskwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/komposetaskwidget.cpp')
-rw-r--r--src/komposetaskwidget.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/komposetaskwidget.cpp b/src/komposetaskwidget.cpp
index 2d94343..d8f92f4 100644
--- a/src/komposetaskwidget.cpp
+++ b/src/komposetaskwidget.cpp
@@ -205,19 +205,26 @@ void KomposeTaskWidget::drawWidget()
}
// Border
- if (!highlight)
+ TQColor borderColor;
+ int borderWidth, borderStyle;
+
+ if (highlight)
{
- TQPen pen( gray, 1, TQt::SolidLine );
- p.setPen( pen );
- p.drawRect(rect());
+ borderColor = KomposeSettings::instance()->getWindowBorderActiveColor();
+ borderWidth = KomposeSettings::instance()->getWindowBorderActiveWidth();
+ borderStyle = KomposeSettings::instance()->getWindowBorderActiveStyle();
}
else
{
- TQPen pen( black, 2, TQt::DotLine );
- p.setPen( pen );
- p.drawRect( TQRect( 1, 1, rect().width()-1, rect().height()-1 ) );
+ borderColor = KomposeSettings::instance()->getWindowBorderInactiveColor();
+ borderWidth = KomposeSettings::instance()->getWindowBorderInactiveWidth();
+ borderStyle = KomposeSettings::instance()->getWindowBorderInactiveStyle();
}
+ TQPen pen(borderColor, borderWidth, static_cast<TQt::PenStyle>(borderStyle));
+
+ p.setPen(pen);
+ p.drawRect(rect());
p.end();
}