From ad86d9b3add9ed62082e60610ca76fd550f1f20a Mon Sep 17 00:00:00 2001 From: jixiaoxu Date: Mon, 18 Apr 2022 16:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E9=A1=B5=E6=90=9C=E7=B4=A2=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E5=9B=BE=E6=9B=BF=E6=8D=A2=EF=BC=8C=E5=B0=BA=E5=AF=B8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/res/icons/search-web-dark.svg | 23 +++++++++++------- libsearch/res/icons/search-web-default.svg | 27 ++++++++++++---------- libsearch/websearch/web-search-plugin.cpp | 14 +++++------ 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/libsearch/res/icons/search-web-dark.svg b/libsearch/res/icons/search-web-dark.svg index 4d603c9..ac0fd32 100644 --- a/libsearch/res/icons/search-web-dark.svg +++ b/libsearch/res/icons/search-web-dark.svg @@ -1,13 +1,20 @@ - + Search-web-深色模式 - - - - - - - + + + + + + + + + + + + + + diff --git a/libsearch/res/icons/search-web-default.svg b/libsearch/res/icons/search-web-default.svg index c0de464..01502c9 100644 --- a/libsearch/res/icons/search-web-default.svg +++ b/libsearch/res/icons/search-web-default.svg @@ -1,17 +1,20 @@ - + Search-web-浅色模式 - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/libsearch/websearch/web-search-plugin.cpp b/libsearch/websearch/web-search-plugin.cpp index d210790..347d18c 100644 --- a/libsearch/websearch/web-search-plugin.cpp +++ b/libsearch/websearch/web-search-plugin.cpp @@ -94,16 +94,16 @@ void UkuiSearch::WebSearchPlugin::initDetailPage() m_iconLabel->setAlignment(Qt::AlignCenter); QString type = GlobalSettings::getInstance()->getValue(STYLE_NAME_KEY).toString(); if (type == "ukui-dark") { - m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-dark.svg").pixmap(100, 96)); + m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-dark.svg").pixmap(128, 128)); } else { - m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-default.svg").pixmap(100, 96)); + m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-default.svg").pixmap(128, 128)); } connect(qApp, &QApplication::paletteChanged, this, [=] () { QString type = GlobalSettings::getInstance()->getValue(STYLE_NAME_KEY).toString(); if (type == "ukui-dark") { - m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-dark.svg").pixmap(100, 96)); + m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-dark.svg").pixmap(128, 128)); } else { - m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-default.svg").pixmap(100, 96)); + m_iconLabel->setPixmap(QIcon(":/res/icons/search-web-default.svg").pixmap(128, 128)); } }); @@ -114,12 +114,12 @@ void UkuiSearch::WebSearchPlugin::initDetailPage() m_actionLabel1 = new ActionLabel(tr("Start browser search"), m_currentActionKey, m_actionFrame); m_actionLabel1->adjustSize(); - m_actionFrameLyt->addWidget(m_actionLabel1);; + m_actionFrameLyt->addWidget(m_actionLabel1); m_actionFrame->setLayout(m_actionFrameLyt); - m_detailLyt->addSpacing(166); + m_detailLyt->addSpacing(146); m_detailLyt->addWidget(m_iconLabel); - m_detailLyt->addSpacing(6); + //m_detailLyt->addSpacing(6); m_detailLyt->addWidget(m_actionFrame); m_detailPage->setLayout(m_detailLyt); m_detailLyt->addStretch();