From 4797a668f748972d8e248f0ca0be77ae469ddab6 Mon Sep 17 00:00:00 2001 From: tom-englert Date: Mon, 15 Mar 2021 14:52:39 +0100 Subject: [PATCH] Fix colors of fold margin --- ILSpy/TextView/DecompilerTextView.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index a07ec04c4..b979b167a 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -129,6 +129,15 @@ namespace ICSharpCode.ILSpy.TextView textEditor.TextArea.TextView.BackgroundRenderers.Add(textMarkerService); textEditor.TextArea.TextView.LineTransformers.Add(textMarkerService); + textEditor.SetResourceReference(FoldingMargin.FoldingMarkerBackgroundBrushProperty, + SystemColors.WindowBrushKey); + textEditor.SetResourceReference(FoldingMargin.SelectedFoldingMarkerBackgroundBrushProperty, + SystemColors.WindowBrushKey); + textEditor.SetResourceReference(FoldingMargin.FoldingMarkerBrushProperty, + SystemColors.ControlDarkBrushKey); + textEditor.SetResourceReference(FoldingMargin.SelectedFoldingMarkerBrushProperty, + SystemColors.ControlTextBrushKey); + ContextMenuProvider.Add(this); this.DataContextChanged += DecompilerTextView_DataContextChanged;