mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: change min icon size
Change-Id: Id5b16c9223a94450d023841df8e5f9dc784cc5dd
This commit is contained in:
parent
7c65094f0d
commit
40490788db
10
CHANGELOG.md
10
CHANGELOG.md
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user