Skip to content

Commit 11338a2

Browse files
committed
Fix low res macOS icon for dock, app switcher, etc., rendering
Use 1024x1024 size. cherry-picked from 35edc18
1 parent 10617b4 commit 11338a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

images/icons/qgis-icon-macos.png

165 KB
Loading

src/app/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,12 @@ int main( int argc, char *argv[] )
789789

790790
QgsApplication myApp( argc, argv, myUseGuiFlag, configpath );
791791

792+
#ifdef Q_OS_MAC
793+
// Set 1024x1024 icon for dock, app switcher, etc., rendering
794+
myApp.setWindowIcon( QIcon( QgsApplication::iconsPath() + QLatin1String( "qgis-icon-macos.png" ) ) );
795+
#else
792796
myApp.setWindowIcon( QIcon( QgsApplication::appIconPath() ) );
797+
#endif
793798

794799
//
795800
// Set up the QSettings environment must be done after qapp is created

0 commit comments

Comments
 (0)