diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index 3cf12f7..a083705 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -122,7 +122,7 @@ QIcon FileUtils::getSettingIcon(const QString& setting, const bool& is_white) { if(file.exists()) { return QIcon(path); } else { - return QIcon::fromTheme("ukui-control-center"); //无插件图标时,返回控制面板应用图标 + return QIcon::fromTheme("ukui-control-center", QIcon(":/res/icons/ukui-control-center.svg")); //无插件图标时,返回控制面板应用图标 // if (is_white) { // return QIcon(QString("/usr/share/ukui-control-center/shell/res/secondaryleftmenu/%1White.svg").arg("About")); // } else { @@ -132,7 +132,7 @@ QIcon FileUtils::getSettingIcon(const QString& setting, const bool& is_white) { } QIcon FileUtils::getSettingIcon() { - return QIcon::fromTheme("ukui-control-center"); //返回控制面板应用图标 + return QIcon::fromTheme("ukui-control-center", QIcon(":/res/icons/ukui-control-center.svg")); //返回控制面板应用图标 } /** diff --git a/libsearch/res/icons/ukui-control-center.svg b/libsearch/res/icons/ukui-control-center.svg new file mode 100644 index 0000000..36f48f9 --- /dev/null +++ b/libsearch/res/icons/ukui-control-center.svg @@ -0,0 +1,35 @@ + + + +128 + + + + + + + + + + + + + + + + + + + diff --git a/libsearch/resource1.qrc b/libsearch/resource1.qrc index 9f2227b..82a7cfb 100644 --- a/libsearch/resource1.qrc +++ b/libsearch/resource1.qrc @@ -10,5 +10,7 @@ res/icons/search-web-icon.svg res/icons/search-web-dark.svg res/icons/search-web-default.svg + res/icons/unknown.svg + res/icons/ukui-control-center.svg