From 3c9d58176b0fd890d26e96d0208d2d981f1544e4 Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 27 Oct 2020 16:01:48 +0100 Subject: [PATCH] Fix the regression of mark margin colour for dark theme --- .../src/ScitillaComponent/ScintillaEditView.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index d07f6175..d1957de0 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -2635,7 +2635,16 @@ void ScintillaEditView::performGlobalStyles() COLORREF bookmarkMarginColor = veryLiteGrey; i = stylers.getStylerIndexByName(TEXT("Bookmark margin")); - if (i != -1) + if (i == -1) + { + int j = stylers.getStylerIndexByName(TEXT("Line number margin")); + if (j != -1) + { + Style & style = stylers.getStyler(j); + bookmarkMarginColor = style._bgColor; + } + } + else { Style & style = stylers.getStyler(i); bookmarkMarginColor = style._bgColor;