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();