From 0b087e40f17c442095f20f5e86f79cf4fc4a722d Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Fri, 21 Jul 2023 14:34:09 +0800 Subject: [PATCH] opt: replace lsa dictionary icon and zipsound icon --- icons/lsasound.svg | 381 ++++++++++++++++++++++++++++++++++++++++++ icons/zipsound.svg | 367 ++++++++++++++++++++++++++++++++++++++++ resources.qrc | 2 + src/dict/lsa.cc | 2 +- src/dict/zipsounds.cc | 2 +- 5 files changed, 752 insertions(+), 2 deletions(-) create mode 100644 icons/lsasound.svg create mode 100644 icons/zipsound.svg diff --git a/icons/lsasound.svg b/icons/lsasound.svg new file mode 100644 index 00000000..58d761c6 --- /dev/null +++ b/icons/lsasound.svg @@ -0,0 +1,381 @@ + + + +image/svg+xmlJakub Steinerhttp://jimmac.musichall.cz/packagearchivetarballtarbzipgzipziparjtarjarlsa diff --git a/icons/zipsound.svg b/icons/zipsound.svg new file mode 100644 index 00000000..6046da3f --- /dev/null +++ b/icons/zipsound.svg @@ -0,0 +1,367 @@ + + + +image/svg+xmlJakub Steinerhttp://jimmac.musichall.cz/packagearchivetarballtarbzipgzipziparjtarjar diff --git a/resources.qrc b/resources.qrc index c3fcddb7..a7be5876 100644 --- a/resources.qrc +++ b/resources.qrc @@ -65,6 +65,8 @@ icons/next.svg icons/playsound_color.svg icons/sounddir.svg + icons/zipsound.svg + icons/lsasound.svg icons/previous.svg icons/print.svg icons/programs.svg diff --git a/src/dict/lsa.cc b/src/dict/lsa.cc index 11b3c82c..78ba5d99 100644 --- a/src/dict/lsa.cc +++ b/src/dict/lsa.cc @@ -483,7 +483,7 @@ void LsaDictionary::loadIcon() noexcept if ( !loadIconFromFile( fileName ) ) { // Load failed -- use default icons - dictionaryIcon = QIcon( ":/icons/playsound_full.png" ); + dictionaryIcon = QIcon( ":/icons/lsasound.svg" ); } dictionaryIconLoaded = true; diff --git a/src/dict/zipsounds.cc b/src/dict/zipsounds.cc index 1a9698b1..77bfda02 100644 --- a/src/dict/zipsounds.cc +++ b/src/dict/zipsounds.cc @@ -365,7 +365,7 @@ void ZipSoundsDictionary::loadIcon() noexcept if ( !loadIconFromFile( fileName ) ) { // Load failed -- use default icons - dictionaryIcon = QIcon( ":/icons/playsound_full.png" ); + dictionaryIcon = QIcon( ":/icons/zipsound.svg" ); } dictionaryIconLoaded = true;