|
|
@ -1819,9 +1819,9 @@ void KLegacyStyle::polish(TQApplication *app) {
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Active));
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Active));
|
|
|
|
pal.setBrush(TQPalette::Active, TQColorGroup::Button, brush);
|
|
|
|
pal.setBrush(TQPalette::Active, TQColorGroup::Button, brush);
|
|
|
|
|
|
|
|
|
|
|
|
brush = pal.brush(TQPalette::Normal, TQColorGroup::Button);
|
|
|
|
brush = pal.brush(TQPalette::Active, TQColorGroup::Button);
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Normal));
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Normal));
|
|
|
|
pal.setBrush(TQPalette::Normal, TQColorGroup::Button, brush);
|
|
|
|
pal.setBrush(TQPalette::Active, TQColorGroup::Button, brush);
|
|
|
|
|
|
|
|
|
|
|
|
brush = pal.brush(TQPalette::Disabled, TQColorGroup::Button);
|
|
|
|
brush = pal.brush(TQPalette::Disabled, TQColorGroup::Button);
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Insensitive));
|
|
|
|
brush.setColor(gobj->backColor(KLegacy::Insensitive));
|
|
|
@ -3275,11 +3275,11 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
|
|
|
|
|
|
|
|
|
|
|
|
if (pix && (! pix->isNull())) {
|
|
|
|
if (pix && (! pix->isNull())) {
|
|
|
|
TQPalette pal = w->palette();
|
|
|
|
TQPalette pal = w->palette();
|
|
|
|
TQBrush brush = pal.brush(TQPalette::Normal,
|
|
|
|
TQBrush brush = pal.brush(TQPalette::Active,
|
|
|
|
TQColorGroup::Background);
|
|
|
|
TQColorGroup::Background);
|
|
|
|
|
|
|
|
|
|
|
|
brush.setPixmap(*pix);
|
|
|
|
brush.setPixmap(*pix);
|
|
|
|
pal.setBrush(TQPalette::Normal,
|
|
|
|
pal.setBrush(TQPalette::Active,
|
|
|
|
TQColorGroup::Background, brush);
|
|
|
|
TQColorGroup::Background, brush);
|
|
|
|
|
|
|
|
|
|
|
|
w->setPalette(pal);
|
|
|
|
w->setPalette(pal);
|
|
|
@ -3303,11 +3303,11 @@ bool KLegacyStyle::eventFilter(TQObject *obj, TQEvent *e) {
|
|
|
|
|
|
|
|
|
|
|
|
if (pix && (! pix->isNull())) {
|
|
|
|
if (pix && (! pix->isNull())) {
|
|
|
|
TQPalette pal = w->palette();
|
|
|
|
TQPalette pal = w->palette();
|
|
|
|
TQBrush brush = pal.brush(TQPalette::Normal,
|
|
|
|
TQBrush brush = pal.brush(TQPalette::Active,
|
|
|
|
TQColorGroup::Background);
|
|
|
|
TQColorGroup::Background);
|
|
|
|
|
|
|
|
|
|
|
|
brush.setPixmap(*pix);
|
|
|
|
brush.setPixmap(*pix);
|
|
|
|
pal.setBrush(TQPalette::Normal,
|
|
|
|
pal.setBrush(TQPalette::Active,
|
|
|
|
TQColorGroup::Background, brush);
|
|
|
|
TQColorGroup::Background, brush);
|
|
|
|
|
|
|
|
|
|
|
|
w->setPalette(pal);
|
|
|
|
w->setPalette(pal);
|
|
|
|