Add the default icon of the settings search item.

This commit is contained in:
baijunjie 2021-12-31 15:45:34 +08:00 committed by iaom
parent 4f5e12a57d
commit 28ca6873c1
3 changed files with 39 additions and 2 deletions

View File

@ -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")); //返回控制面板应用图标
}
/**

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="控制面板" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<title>128</title>
<g id="图层_170">
<g id="_128">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="64" y1="6" x2="64" y2="122" gradientTransform="matrix(1 0 0 -1 0 128)">
<stop offset="0" style="stop-color:#A6A6A6"/>
<stop offset="1" style="stop-color:#BFBFBF"/>
</linearGradient>
<circle fill="url(#SVGID_1_)" cx="64" cy="64" r="58"/>
<path fill="#EBECED" d="M64,7c31.5,0,57,25.5,57,57s-25.5,57-57,57S7,95.5,7,64C7,32.5,32.5,7,64,7 M64,5C31.4,5,5,31.4,5,64
s26.4,59,59,59s59-26.4,59-59S96.6,5,64,5z"/>
<path fill="#303030" d="M64,41c-12.7,0-23,10.3-23,23s10.3,23,23,23s23-10.3,23-23l0,0C87,51.3,76.7,41,64,41z M64,75.5
c-6.4,0-11.5-5.2-11.5-11.5S57.7,52.5,64,52.5c6.3,0,11.5,5.2,11.5,11.5C75.5,70.4,70.4,75.5,64,75.5C64,75.5,64,75.5,64,75.5z"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="63.9949" y1="20.0112" x2="63.9949" y2="108.0218" gradientTransform="matrix(1 0 0 -1 0 128)">
<stop offset="0" style="stop-color:#242424"/>
<stop offset="1" style="stop-color:#383838"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M106,72.8c-3.5-1.5-5.7-5-5.5-8.8c-0.2-3.8,2-7.3,5.5-8.8c1.5-0.5,2.3-2,1.9-3.5
c-1-3.5-2.3-6.8-4.1-9.9c-0.8-1.4-2.5-1.9-3.9-1.2c-3.5,1.4-7.6,0.5-10.1-2.3c-2.8-2.6-3.7-6.6-2.3-10.1c0.7-1.4,0.2-3.1-1.2-3.9
c-3.1-1.8-6.5-3.1-9.9-4.1c-1.5-0.4-3.1,0.4-3.6,1.9c-1.5,3.5-5,5.7-8.8,5.5c-3.8,0.2-7.3-2-8.8-5.5c-0.5-1.5-2.1-2.3-3.6-1.9
c-3.5,1-6.8,2.3-9.9,4.1c-1.4,0.8-1.9,2.5-1.2,3.9c1.4,3.5,0.5,7.6-2.3,10.1c-2.6,2.8-6.6,3.7-10.1,2.3c-1.4-0.7-3.1-0.2-3.9,1.2
c-1.8,3.1-3.1,6.5-4.1,9.9c-0.4,1.5,0.4,3.1,1.9,3.6c3.5,1.5,5.7,5,5.5,8.8c0.2,3.8-2,7.3-5.5,8.8c-1.5,0.5-2.3,2-1.9,3.6
c1,3.5,2.3,6.8,4.1,9.9c0.8,1.4,2.5,1.9,3.9,1.2c3.5-1.4,7.6-0.5,10.1,2.3c2.8,2.6,3.7,6.6,2.3,10.1c-0.7,1.4-0.2,3.1,1.2,3.9
c3.1,1.8,6.5,3.1,9.9,4.1c1.5,0.4,3.1-0.4,3.6-1.9c1.5-3.5,5-5.7,8.8-5.5c3.8-0.2,7.3,2,8.8,5.5c0.4,1.2,1.5,2,2.8,2
c0.3,0,0.5,0,0.8-0.1c3.5-1,6.8-2.3,9.9-4.1c1.3-0.8,1.9-2.5,1.2-3.9c-1.8-5.1,0.9-10.7,6-12.5c2.1-0.7,4.4-0.7,6.5,0
c1.4,0.7,3.1,0.2,3.9-1.2c1.8-3.1,3.1-6.5,4.1-9.9C108.3,74.9,107.5,73.3,106,72.8z M64,90.4c-14.6,0-26.4-11.8-26.4-26.4
c0-14.6,11.8-26.4,26.4-26.4c14.6,0,26.4,11.8,26.4,26.4C90.4,78.6,78.6,90.4,64,90.4C64,90.4,64,90.4,64,90.4z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -10,5 +10,7 @@
<file>res/icons/search-web-icon.svg</file>
<file>res/icons/search-web-dark.svg</file>
<file>res/icons/search-web-default.svg</file>
<file>res/icons/unknown.svg</file>
<file>res/icons/ukui-control-center.svg</file>
</qresource>
</RCC>