Skip to content

Commit b7da275

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

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
@@ -806,7 +806,12 @@ int main( int argc, char *argv[] )
806806

807807
QgsApplication myApp( argc, argv, myUseGuiFlag, configpath );
808808

809+
#ifdef Q_OS_MAC
810+
// Set 1024x1024 icon for dock, app switcher, etc., rendering
811+
myApp.setWindowIcon( QIcon( QgsApplication::iconsPath() + QLatin1String( "qgis-icon-macos.png" ) ) );
812+
#else
809813
myApp.setWindowIcon( QIcon( QgsApplication::appIconPath() ) );
814+
#endif
810815

811816
//
812817
// Set up the QSettings environment must be done after qapp is created

0 commit comments

Comments
 (0)