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:
@@ -35,6 +35,7 @@
|
||||
#include <utils/algorithm.h>
|
||||
|
||||
#include <utils/theme/theme.h>
|
||||
#include <utils/themehelper.h>
|
||||
|
||||
#include <QIcon>
|
||||
|
||||
@@ -99,7 +100,7 @@ QVariant TodoItemsModel::data(const QModelIndex &index, int role) const
|
||||
case Qt::DisplayRole:
|
||||
return item.text;
|
||||
case Qt::DecorationRole:
|
||||
return QVariant::fromValue(QIcon(item.iconResource));
|
||||
return QVariant::fromValue(Utils::ThemeHelper::themedIcon(item.iconResource));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user