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:
		| @@ -38,6 +38,7 @@ | ||||
| #include <QApplication> | ||||
|  | ||||
| #include <utils/tooltip/tooltip.h> | ||||
| #include <utils/themehelper.h> | ||||
|  | ||||
| namespace ClangCodeModel { | ||||
|  | ||||
| @@ -73,8 +74,8 @@ ClangTextMark::ClangTextMark(const QString &fileName, int lineNumber, ClangBackE | ||||
|  | ||||
| void ClangTextMark::setIcon(ClangBackEnd::DiagnosticSeverity severity) | ||||
| { | ||||
|     static const QIcon errorIcon{QLatin1String(Core::Constants::ICON_ERROR)}; | ||||
|     static const QIcon warningIcon{QLatin1String(Core::Constants::ICON_WARNING)}; | ||||
|     static const QIcon errorIcon{Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_ERROR))}; | ||||
|     static const QIcon warningIcon{Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_WARNING))}; | ||||
|  | ||||
|     if (isWarningOrNote(severity)) | ||||
|         TextMark::setIcon(warningIcon); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user