I like this method of setting colours for the resize bar better, seeing
as there's no way to set it via kcontrol svn path=/trunk/kdebase/kwin/; revision=65989icc-effect-5.14.5
parent
f989df9554
commit
4a55be4548
|
@ -216,6 +216,8 @@ Static::update()
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
Palette aBut, iBut;
|
||||
QPixmap aTexture;
|
||||
QPixmap iTexture;
|
||||
|
||||
if (QPixmap::defaultDepth() > 8) {
|
||||
|
||||
|
@ -225,9 +227,8 @@ Static::update()
|
|||
setPalette(aTitlePal_, options->color(Options::TitleBar, true));
|
||||
setPalette(iTitlePal_, options->color(Options::TitleBar, false));
|
||||
|
||||
setPalette(aResizePal_, options->color(Options::Handle, true));
|
||||
setPalette(iResizePal_, options->color(Options::Handle, false));
|
||||
}
|
||||
setPalette(aResizePal_, options->color(Options::TitleBar, true));
|
||||
setPalette(iResizePal_, options->color(Options::TitleBar, false));
|
||||
|
||||
QRgb light, dark;
|
||||
QRgb * data;
|
||||
|
@ -261,10 +262,9 @@ Static::update()
|
|||
data[x] = dark;
|
||||
|
||||
|
||||
QPixmap aTexture;
|
||||
aTexture.convertFromImage(aTx);
|
||||
QPixmap iTexture;
|
||||
iTexture.convertFromImage(iTx);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Bevels
|
||||
|
@ -337,6 +337,7 @@ Static::update()
|
|||
|
||||
painter_.begin(&aTitleTextMid_);
|
||||
painter_.drawPixmap(0, 1, temp, 2, 0);
|
||||
if (QPixmap::defaultDepth() > 8)
|
||||
painter_.drawPixmap(0, 4, aTexture);
|
||||
painter_.end();
|
||||
|
||||
|
@ -345,6 +346,7 @@ Static::update()
|
|||
|
||||
painter_.begin(&iTitleTextMid_);
|
||||
painter_.drawPixmap(0, 1, temp, 2, 0);
|
||||
if (QPixmap::defaultDepth() > 8)
|
||||
painter_.drawPixmap(0, 4, iTexture);
|
||||
painter_.end();
|
||||
|
||||
|
|
Loading…
Reference in New Issue