forked from qt-creator/qt-creator
Core: Use our own PREV and NEXT icons for find toolbar in light mode
Those definitely have the needed contrast against the background color. Change-Id: If084e4084ac0dccd53def876e2ad75c561126e46 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -973,16 +973,12 @@ void FindToolBar::setBackward(bool backward)
|
|||||||
void FindToolBar::setLightColoredIcon(bool lightColored)
|
void FindToolBar::setLightColoredIcon(bool lightColored)
|
||||||
{
|
{
|
||||||
if (lightColored) {
|
if (lightColored) {
|
||||||
m_ui.findNextButton->setIcon(QIcon());
|
m_ui.findNextButton->setIcon(Utils::Icons::NEXT.icon());
|
||||||
m_ui.findNextButton->setArrowType(Qt::RightArrow);
|
m_ui.findPreviousButton->setIcon(Utils::Icons::PREV.icon());
|
||||||
m_ui.findPreviousButton->setIcon(QIcon());
|
|
||||||
m_ui.findPreviousButton->setArrowType(Qt::LeftArrow);
|
|
||||||
m_ui.close->setIcon(Utils::Icons::CLOSE_FOREGROUND.icon());
|
m_ui.close->setIcon(Utils::Icons::CLOSE_FOREGROUND.icon());
|
||||||
} else {
|
} else {
|
||||||
m_ui.findNextButton->setIcon(Utils::Icons::NEXT_TOOLBAR.icon());
|
m_ui.findNextButton->setIcon(Utils::Icons::NEXT_TOOLBAR.icon());
|
||||||
m_ui.findNextButton->setArrowType(Qt::NoArrow);
|
|
||||||
m_ui.findPreviousButton->setIcon(Utils::Icons::PREV_TOOLBAR.icon());
|
m_ui.findPreviousButton->setIcon(Utils::Icons::PREV_TOOLBAR.icon());
|
||||||
m_ui.findPreviousButton->setArrowType(Qt::NoArrow);
|
|
||||||
m_ui.close->setIcon(Utils::Icons::CLOSE_TOOLBAR.icon());
|
m_ui.close->setIcon(Utils::Icons::CLOSE_TOOLBAR.icon());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user