respect colorsetting for window title
svn path=/trunk/KDE/kdebase/workspace/; revision=715938icc-effect-5.14.5
parent
cc57137f16
commit
a717c047a3
|
@ -64,14 +64,6 @@ void renderDot(QPainter *p, const QPointF &point, qreal diameter)
|
||||||
p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter));
|
p->drawEllipse(QRectF(point.x()-diameter/2, point.y()-diameter/2, diameter, diameter));
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
// OxygenClient Class //
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
// OxygenClient()
|
|
||||||
// ---------------
|
|
||||||
// Constructor
|
|
||||||
|
|
||||||
OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f)
|
OxygenClient::OxygenClient(KDecorationBridge *b, KDecorationFactory *f)
|
||||||
: KCommonDecoration(b, f) { ; }
|
: KCommonDecoration(b, f) { ; }
|
||||||
|
@ -211,11 +203,6 @@ KCommonDecorationButton *OxygenClient::createButton(::ButtonType type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
// paintEvent()
|
|
||||||
// ------------
|
|
||||||
// Repaint the window
|
|
||||||
|
|
||||||
void OxygenClient::paintEvent(QPaintEvent *e)
|
void OxygenClient::paintEvent(QPaintEvent *e)
|
||||||
{
|
{
|
||||||
Q_UNUSED(e)
|
Q_UNUSED(e)
|
||||||
|
@ -276,11 +263,10 @@ void OxygenClient::paintEvent(QPaintEvent *e)
|
||||||
|
|
||||||
// draw title text
|
// draw title text
|
||||||
painter.setFont(options()->font(isActive(), false));
|
painter.setFont(options()->font(isActive(), false));
|
||||||
painter.setBrush(palette.windowText());
|
painter.setPen(palette.windowText());
|
||||||
painter.drawText(titleLeft, titleTop, titleWidth, titleHeight,
|
painter.drawText(titleLeft, titleTop, titleWidth, titleHeight,
|
||||||
OxygenFactory::titleAlign() | Qt::AlignVCenter, caption());
|
OxygenFactory::titleAlign() | Qt::AlignVCenter, caption());
|
||||||
|
|
||||||
|
|
||||||
painter.setRenderHint(QPainter::Antialiasing);
|
painter.setRenderHint(QPainter::Antialiasing);
|
||||||
|
|
||||||
// shadows of the frame
|
// shadows of the frame
|
||||||
|
|
Loading…
Reference in New Issue