fix: change min icon size

Change-Id: Id5b16c9223a94450d023841df8e5f9dc784cc5dd
This commit is contained in:
haruyukilxz 2018-11-09 17:11:30 +08:00
parent 7c65094f0d
commit 40490788db
No known key found for this signature in database
GPG Key ID: 593AFD577C1B1A60
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,13 @@
<a name="4.7.7"></a>
### 4.7.7 (2018-11-09)
#### Bug Fixes
* change min icon size ([8af71fae](https://github.com/linuxdeepin/dde-dock/commit/8af71faef3440ac18c1bb8c0c8a1141ca1b30378))
<a name="4.7.6"></a>
## 4.7.6 (2018-11-09)

View File

@ -80,7 +80,7 @@ const QPixmap ThemeAppIcon::getIcon(const QString iconName, const int size)
}
const QIcon icon = QIcon::fromTheme(iconName, QIcon::fromTheme("application-x-desktop"));
const int fakeSize = std::max(24, s); // cannot use 16x16, cause 16x16 is label icon
const int fakeSize = std::max(48, s); // cannot use 16x16, cause 16x16 is label icon
pixmap = icon.pixmap(QSize(fakeSize, fakeSize));
if (!pixmap.isNull())
break;
@ -102,4 +102,3 @@ const QPixmap ThemeAppIcon::getIcon(const QString iconName, const int size)
return pixmap;
}