use hard-coded iconscale for menu button, and fixed centering to match oxygen windeco
svn path=/trunk/KDE/kdebase/workspace/; revision=1016858
This commit is contained in:
parent
f17068e815
commit
f825e35471
1 changed files with 2 additions and 5 deletions
|
@ -168,12 +168,9 @@ namespace Nitrogen
|
||||||
if (type_ == ButtonMenu)
|
if (type_ == ButtonMenu)
|
||||||
{
|
{
|
||||||
|
|
||||||
// we paint the mini icon using 0.72xbuttonsize() as a scale
|
const QPixmap& pixmap( client_.icon().pixmap( client_.configuration().iconScale() ) );
|
||||||
// this roughtly corresponds to 16 for default button size
|
|
||||||
double scale = 0.72;
|
|
||||||
const QPixmap& pixmap( client_.icon().pixmap( scale*width() ) );
|
|
||||||
double offset = 0.5*(width()-pixmap.width() );
|
double offset = 0.5*(width()-pixmap.width() );
|
||||||
painter.drawPixmap(offset, offset, pixmap );
|
painter.drawPixmap(offset, offset-1, pixmap );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue