mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Style scintilla to work on dark as well as light themes. Refs #862
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <QFontDatabase>
|
||||
#include "3rdparty/scintilla/include/SciLexer.h"
|
||||
#include "3rdparty/scintilla/include/qt/ScintillaEdit.h"
|
||||
#include "Code/ScintillaSyntax.h"
|
||||
#include "ui_CommentView.h"
|
||||
|
||||
CommentView::CommentView(ICaptureContext &ctx, QWidget *parent)
|
||||
@@ -39,6 +40,8 @@ CommentView::CommentView(ICaptureContext &ctx, QWidget *parent)
|
||||
STYLE_DEFAULT, QFontDatabase::systemFont(QFontDatabase::FixedFont).family().toUtf8().data());
|
||||
m_commentsEditor->setTabWidth(4);
|
||||
|
||||
ConfigureSyntax(m_commentsEditor, SCLEX_PYTHON);
|
||||
|
||||
QObject::connect(m_commentsEditor, &ScintillaEdit::modified, [this](int type, int, int, int,
|
||||
const QByteArray &, int, int,
|
||||
int) {
|
||||
|
||||
Reference in New Issue
Block a user