|
|
|
@ -65,13 +65,13 @@ void StatusBarSpaceInfo::paintEvent(TQPaintEvent* /* event */)
|
|
|
|
|
const int widthDec = 3; // visual decrement for the available width
|
|
|
|
|
|
|
|
|
|
const TQColor c1 = colorGroup().background();
|
|
|
|
|
const TQColor c2 = KGlobalSettings::buttonTextColor();
|
|
|
|
|
const TQColor c2 = TDEGlobalSettings::buttonTextColor();
|
|
|
|
|
const TQColor frameColor((c1.red() + c2.red()) / 2,
|
|
|
|
|
(c1.green() + c2.green()) / 2,
|
|
|
|
|
(c1.blue() + c2.blue()) / 2);
|
|
|
|
|
painter.setPen(frameColor);
|
|
|
|
|
|
|
|
|
|
const TQColor backgrColor = KGlobalSettings::baseColor();
|
|
|
|
|
const TQColor backgrColor = TDEGlobalSettings::baseColor();
|
|
|
|
|
painter.setBrush(backgrColor);
|
|
|
|
|
|
|
|
|
|
painter.drawRect(TQRect(0, barTop + 1 , barWidth - widthDec, barHeight));
|
|
|
|
@ -103,7 +103,7 @@ void StatusBarSpaceInfo::paintEvent(TQPaintEvent* /* event */)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// draw text (usually 'Y GB free')
|
|
|
|
|
painter.setPen(KGlobalSettings::textColor());
|
|
|
|
|
painter.setPen(TDEGlobalSettings::textColor());
|
|
|
|
|
painter.drawText(TQRect(1, 1, barWidth - 2, barHeight + 4),
|
|
|
|
|
TQt::AlignHCenter | TQt::AlignVCenter | TQt::WordBreak,
|
|
|
|
|
text);
|
|
|
|
@ -166,7 +166,7 @@ void StatusBarSpaceInfo::refresh()
|
|
|
|
|
|
|
|
|
|
TQColor StatusBarSpaceInfo::progressColor(const TQColor& bgColor) const
|
|
|
|
|
{
|
|
|
|
|
TQColor color = KGlobalSettings::buttonBackground();
|
|
|
|
|
TQColor color = TDEGlobalSettings::buttonBackground();
|
|
|
|
|
|
|
|
|
|
// assure that enough contrast is given between the background color
|
|
|
|
|
// and the progressbar color
|
|
|
|
|