bigger icons for small buttons

svn path=/trunk/kdebase/kwin/; revision=400826
This commit is contained in:
Sandro Giessl 2005-03-26 19:01:40 +00:00
parent b8e51cef98
commit 0e63cf7cef

View file

@ -513,15 +513,15 @@ const QBitmap &PlastikHandler::buttonBitmap(ButtonIcon type, const QSize &size,
// btn icon size...
int reduceW = 0, reduceH = 0;
if(size.width()>12) {
if(size.width()>14) {
reduceW = static_cast<int>(2*(size.width()/3.5) );
}
else
reduceW = 4;
if(size.height()>12)
reduceW = 6;
if(size.height()>14)
reduceH = static_cast<int>(2*(size.height()/3.5) );
else
reduceH = 4;
reduceH = 6;
int w = size.width() - reduceW;
int h = size.height() - reduceH;