diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp index da8d237..53451fd 100755 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -318,7 +318,7 @@ void MainWindow::initSearchUi() m_selectMenuButton->setAcceptDrops(true); m_selectMenuButton->setFocusPolicy(Qt::StrongFocus); m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true) - .pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize))); + .pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize))); //搜索框展开页 m_minSearchPage = new QWidget(); m_leftTopSearchHorizontalLayout = new QHBoxLayout(m_minSearchPage); @@ -947,7 +947,7 @@ bool MainWindow::eventFilter(QObject *target, QEvent *event) if (target == m_selectMenuButton) { m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true) - .pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize))); + .pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize))); selectIconAnimation(true); } } @@ -1151,7 +1151,7 @@ void MainWindow::searchAppSlot(QString arg) } void MainWindow::on_selectMenuButton_triggered(QAction *arg1) { - m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true).pixmap(QSize(Style::m_miniIconSize, Style::m_miniIconSize))); + m_selectMenuButton->setIcon(getCurIcon(":/data/img/mainviewwidget/downarrow.svg", true).pixmap(QSize(Style::m_minIconSize, Style::m_minIconSize))); selectIconAnimation(false); if (arg1 == m_allAction) { diff --git a/src/UtilityFunction/Style/style.cpp b/src/UtilityFunction/Style/style.cpp index abe67a1..84d71aa 100755 --- a/src/UtilityFunction/Style/style.cpp +++ b/src/UtilityFunction/Style/style.cpp @@ -95,7 +95,7 @@ int Style::m_timeWidgetTop = 81; int Style::m_timeWidgetLeft = 112; int Style::m_centerWindHeight = 0; -int Style::m_miniIconSize = 0; +int Style::m_minIconSize = 0; int Style::m_rightViewWidth = 0; int Style::m_rightViewHeight = 0; @@ -204,6 +204,7 @@ void Style::initWidStyle() m_rightViewHeight = 470; m_leftSpaceIconText = 14; m_appTextRectHeight = 30; + m_minIconSize = 8; m_appTopSpace = (m_appListItemSizeWidth - m_appSpaceBetweenIconText - m_appListIconSize - m_appTextRectHeight) / 2; m_boundaryOffset = (m_applistGridSizeWidth - m_appListItemSizeWidth) + m_appTopSpace + 10; diff --git a/src/UtilityFunction/Style/style.h b/src/UtilityFunction/Style/style.h index bf992b9..6ca2f80 100755 --- a/src/UtilityFunction/Style/style.h +++ b/src/UtilityFunction/Style/style.h @@ -158,7 +158,7 @@ public: static int m_timeWidgetTop; static int m_timeWidgetLeft; - static int m_miniIconSize; + static int m_minIconSize; static int m_rightViewWidth; static int m_rightViewHeight;