Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Psheng
krunner-translator
01_icon_fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 01_icon_fix.patch of Package krunner-translator
diff -uNr a/src/provider/baidu.cpp b/src/provider/baidu.cpp --- a/src/provider/baidu.cpp 2024-08-14 05:55:07.664101592 +0800 +++ b/src/provider/baidu.cpp 2024-08-14 05:57:27.502794778 +0800 @@ -84,7 +84,7 @@ for (const QJsonValue result: results) { Plasma::QueryMatch match(m_runner); match.setType(Plasma::QueryMatch::InformationalMatch); - match.setIcon(QIcon::fromTheme("applications-education-language")); + match.setIcon(QIcon::fromTheme("baidu-translate")); match.setText(result.toObject().find("dst").value().toString()); match.setSubtext(QStringLiteral("Baidu Translate")); match.setMultiLine(true); diff -uNr a/src/provider/Bing.cpp b/src/provider/Bing.cpp --- a/src/provider/Bing.cpp 2024-08-14 05:55:07.664101592 +0800 +++ b/src/provider/Bing.cpp 2024-08-14 05:58:09.295599672 +0800 @@ -31,7 +31,7 @@ } else { match.setData(QStringLiteral("audio")); match.setType(Plasma::QueryMatch::ExactMatch); - match.setIcon(QIcon::fromTheme(QStringLiteral("applications-education-language"))); + match.setIcon(QIcon::fromTheme(QStringLiteral("bing-translate"))); match.setText(result); match.setMultiLine(true); match.setSubtext(QStringLiteral("Bing Translate")); diff -uNr a/src/provider/deepl.cpp b/src/provider/deepl.cpp --- a/src/provider/deepl.cpp 2024-08-14 05:55:07.664101592 +0800 +++ b/src/provider/deepl.cpp 2024-08-14 05:58:47.756340396 +0800 @@ -66,7 +66,7 @@ for (const QJsonValue result: results) { Plasma::QueryMatch match(m_runner); match.setType(Plasma::QueryMatch::InformationalMatch); - match.setIcon(QIcon::fromTheme("applications-education-language")); + match.setIcon(QIcon::fromTheme("deepl-translate")); match.setText(result.toObject().value("text").toString()); match.setMultiLine(true); match.setSubtext(QStringLiteral("Deepl Translate")); diff -uNr a/src/provider/GoogleTranslate.cpp b/src/provider/GoogleTranslate.cpp --- a/src/provider/GoogleTranslate.cpp 2024-08-14 05:55:07.664101592 +0800 +++ b/src/provider/GoogleTranslate.cpp 2024-08-14 05:59:31.677186278 +0800 @@ -28,7 +28,7 @@ QString result = process.translate(language, text); match.setData(QStringLiteral("audio")); match.setType(Plasma::QueryMatch::ExactMatch); - match.setIcon(QIcon::fromTheme(QStringLiteral("applications-education-language"))); + match.setIcon(QIcon::fromTheme(QStringLiteral("google-translate"))); match.setText(result); match.setMultiLine(true); match.setSubtext(QStringLiteral("Google Translate")); diff -uNr a/src/provider/youdao.cpp b/src/provider/youdao.cpp --- a/src/provider/youdao.cpp 2024-08-14 05:55:07.664101592 +0800 +++ b/src/provider/youdao.cpp 2024-08-14 06:00:46.606629361 +0800 @@ -89,7 +89,7 @@ for (const QJsonValue result: results) { Plasma::QueryMatch match(m_runner); match.setType(Plasma::QueryMatch::InformationalMatch); - match.setIcon(QIcon::fromTheme("applications-education-language")); + match.setIcon(QIcon::fromTheme("youdao-translate")); match.setText(result.toString()); match.setSubtext(QStringLiteral("Youdao Translate")); match.setMultiLine(true); @@ -104,7 +104,7 @@ for (const QJsonValue explain: baseExplains) { Plasma::QueryMatch match(m_runner); match.setType(Plasma::QueryMatch::InformationalMatch); - match.setIcon(QIcon::fromTheme("applications-education-language")); + match.setIcon(QIcon::fromTheme("youdao-dictionary")); match.setText(explain.toString()); match.setSubtext(QStringLiteral("Youdao Dictionary")); match.setMultiLine(true);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor