From 46d62ebf8c8c4385d5326abace2b79b28ff40af0 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Fri, 21 Jul 2023 14:10:40 +0800 Subject: [PATCH] opt: replace sounddir dictionary icon --- icons/sounddir.svg | 192 +++++++++++++++++++++++++++++++++++++++++++ resources.qrc | 1 + src/dict/sounddir.cc | 2 +- 3 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 icons/sounddir.svg diff --git a/icons/sounddir.svg b/icons/sounddir.svg new file mode 100644 index 00000000..6ec1446d --- /dev/null +++ b/icons/sounddir.svg @@ -0,0 +1,192 @@ + + + + diff --git a/resources.qrc b/resources.qrc index 19b5a637..c3fcddb7 100644 --- a/resources.qrc +++ b/resources.qrc @@ -64,6 +64,7 @@ icons/network.svg icons/next.svg icons/playsound_color.svg + icons/sounddir.svg icons/previous.svg icons/print.svg icons/programs.svg diff --git a/src/dict/sounddir.cc b/src/dict/sounddir.cc index d51d41d7..81d60100 100644 --- a/src/dict/sounddir.cc +++ b/src/dict/sounddir.cc @@ -299,7 +299,7 @@ void SoundDirDictionary::loadIcon() noexcept loadIconFromFile( fInfo.absoluteFilePath(), true ); } if ( dictionaryIcon.isNull() ) - dictionaryIcon = QIcon( ":/icons/playsound_full.png" ); + dictionaryIcon = QIcon( ":/icons/sounddir.svg" ); dictionaryIconLoaded = true; }