mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
feat: allow changing icon on macOS by not overriding icon in Info.plist
This commit is contained in:
parent
48a6efec62
commit
91a4e31018
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue