feat: allow changing icon on macOS by not overriding icon in Info.plist

This commit is contained in:
shenleban tongying 2024-09-06 19:18:25 -04:00
parent 48a6efec62
commit 91a4e31018

View file

@ -370,7 +370,10 @@ int main( int argc, char ** argv )
QHotkeyApplication::setApplicationName( "GoldenDict-ng" ); QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" ); QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
#ifndef Q_OS_MACOS
// macOS icon is defined in Info.plist
QHotkeyApplication::setWindowIcon( QIcon( ":/icons/programicon.png" ) ); QHotkeyApplication::setWindowIcon( QIcon( ":/icons/programicon.png" ) );
#endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// TODO: Force fusion because Qt6.7's "ModernStyle"'s dark theme have problems, need to test / reconsider in future // TODO: Force fusion because Qt6.7's "ModernStyle"'s dark theme have problems, need to test / reconsider in future