mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Explicitly set a fixed-width font for scintilla editors
This commit is contained in:
@@ -45,6 +45,8 @@ PythonShell::PythonShell(ICaptureContext &ctx, QWidget *parent)
|
||||
|
||||
scriptEditor = new ScintillaEdit(this);
|
||||
|
||||
scriptEditor->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
|
||||
|
||||
scriptEditor->setMarginLeft(4);
|
||||
scriptEditor->setMarginWidthN(0, 32);
|
||||
scriptEditor->setMarginWidthN(1, 0);
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
******************************************************************************/
|
||||
|
||||
#include "ShaderViewer.h"
|
||||
#include <QFontDatabase>
|
||||
#include <QHBoxLayout>
|
||||
#include <QListWidget>
|
||||
#include <QMenu>
|
||||
@@ -559,6 +560,8 @@ ScintillaEdit *ShaderViewer::MakeEditor(const QString &name, const QString &text
|
||||
ret->setMarginWidthN(2, 16);
|
||||
ret->setObjectName(name);
|
||||
|
||||
ret->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
|
||||
|
||||
// C# DarkGreen
|
||||
ret->indicSetFore(INDICATOR_REGHIGHLIGHT, SCINTILLA_COLOUR(0, 100, 0));
|
||||
ret->indicSetStyle(INDICATOR_REGHIGHLIGHT, INDIC_ROUNDBOX);
|
||||
|
||||
Reference in New Issue
Block a user