opt: unify windows icon

This commit is contained in:
YiFang Xiao 2023-06-20 08:31:44 +08:00
parent 6104a16a4b
commit 7f0cb26cda
4 changed files with 1 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

View file

@ -20,7 +20,6 @@
<file>icons/lingualibre.svg</file>
<file>CREDITS.txt</file>
<file>icons/highlighter.png</file>
<file>icons/macicon.png</file>
<file>icons/icon32_sdict.png</file>
<file>icons/icon32_aard.png</file>
<file>icons/expand_opt.png</file>

View file

@ -12,11 +12,7 @@ Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( par
setWindowFlags( Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
Qt::WindowMinimizeButtonHint );
#ifndef Q_OS_MAC
setWindowIcon( QIcon( ":/icons/programicon.png" ) );
#else
setWindowIcon( QIcon( ":/icons/macicon.png" ) );
#endif
if ( showOnStartup )
{

View file

@ -289,9 +289,7 @@ int main( int argc, char ** argv )
QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
#ifndef Q_OS_MAC
QHotkeyApplication::setWindowIcon( QIcon( ":/icons/programicon.png" ) );
#endif
#if defined(USE_BREAKPAD)
QString appDirPath = QCoreApplication::applicationDirPath() + "/crash";