TextEditor: Highpi-able and themable refactor marker

Change-Id: I1866e4c5eba7b1afd60e2c461644cbfd6b7efd75
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Alessandro Portale
2016-10-11 01:04:14 +02:00
parent 22d40f4dc6
commit d10d0f73e9
8 changed files with 45 additions and 2 deletions

View File

@@ -27,6 +27,8 @@
#include "textdocumentlayout.h"
#include "texteditor.h"
#include <utils/icon.h>
#include <QPainter>
#include <QDebug>
@@ -37,7 +39,9 @@ RefactorOverlay::RefactorOverlay(TextEditor::TextEditorWidget *editor) :
QObject(editor),
m_editor(editor),
m_maxWidth(0),
m_icon(QLatin1String(":/texteditor/images/refactormarker.png"))
m_icon(Utils::Icon({
{QLatin1String(":/texteditor/images/lightbulbcap.png"), Utils::Theme::PanelTextColorMid},
{QLatin1String(":/texteditor/images/lightbulb.png"), Utils::Theme::IconsWarningColor}}, Utils::Icon::Tint).icon())
{
}