forked from qt-creator/qt-creator
Icon refresh: First step towards the new Qt Creator themes
http://blog.qt.io/blog/author/didesous/ announced new designs/themes for Qt Creator. This patch replaces many of the existing toolbar icons with recolorizable masks for better theming support. Change-Id: I557aa485205fe2624f33724226f698c303342b40 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include <utils/navigationtreeview.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
#include <utils/themehelper.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QSettings>
|
||||
@@ -233,7 +234,8 @@ ProjectTreeWidget::ProjectTreeWidget(QWidget *parent)
|
||||
this, SLOT(saveExpandData()));
|
||||
|
||||
m_toggleSync = new QToolButton;
|
||||
m_toggleSync->setIcon(QIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||
m_toggleSync->setIcon(
|
||||
Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_LINK)));
|
||||
m_toggleSync->setCheckable(true);
|
||||
m_toggleSync->setChecked(autoSynchronization());
|
||||
m_toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||
@@ -586,7 +588,7 @@ NavigationView ProjectTreeWidgetFactory::createWidget()
|
||||
n.widget = ptw;
|
||||
|
||||
QToolButton *filter = new QToolButton;
|
||||
filter->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||
filter->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_FILTER)));
|
||||
filter->setToolTip(tr("Filter Tree"));
|
||||
filter->setPopupMode(QToolButton::InstantPopup);
|
||||
filter->setProperty("noArrow", true);
|
||||
|
||||
Reference in New Issue
Block a user