From 6469044391346306295090819711124692326986 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 1 Feb 2023 17:00:31 -0500 Subject: Add tokentype for braces --- binaryninjacore.h | 11 ++++++++++- ui/render.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/binaryninjacore.h b/binaryninjacore.h index bb5ef1f8..67454a43 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -351,6 +351,7 @@ extern "C" OperationToken = 36, BaseStructureNameToken = 37, BaseStructureSeparatorToken = 38, + BraceToken = 39, // The following are output by the analysis system automatically, these should // not be used directly by the architecture plugins CodeSymbolToken = 64, @@ -1840,7 +1841,15 @@ extern "C" // Pane colors ActivePaneBackgroundColor, - InactivePaneBackgroundColor + InactivePaneBackgroundColor, + + // Brace colors + BraceOption1Color, + BraceOption2Color, + BraceOption3Color, + BraceOption4Color, + BraceOption5Color, + BraceOption6Color }; // The following edge styles map to Qt's Qt::PenStyle enumeration diff --git a/ui/render.h b/ui/render.h index 5d08c278..02b0a66c 100644 --- a/ui/render.h +++ b/ui/render.h @@ -87,6 +87,7 @@ class BINARYNINJAUIAPI RenderContext QWidget* m_owner; FontParameters m_fontParams; bool m_drawIndents; + std::vector m_braceColors; public: RenderContext(QWidget* parent, float fontScale = 1.0f); -- cgit v1.3.1