2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix blurry App Switcher icon on macOS.

Fixes #5267.
This commit is contained in:
John Preston
2018-10-24 12:28:11 +04:00
parent f0e18ac619
commit 6db4972208
6 changed files with 25 additions and 8 deletions

View File

@@ -90,16 +90,11 @@ void ConvertIconToBlack(QImage &image) {
}
QIcon CreateOfficialIcon() {
auto useNoMarginLogo = (cPlatform() == dbipMac);
auto image = [&] {
if (const auto messenger = Messenger::InstancePointer()) {
return useNoMarginLogo
? messenger->logoNoMargin()
: messenger->logo();
return messenger->logo();
}
return useNoMarginLogo
? LoadLogoNoMargin()
: LoadLogo();
return LoadLogo();
}();
if (AuthSession::Exists() && Auth().supportMode()) {
ConvertIconToBlack(image);