Fix the regression of mark margin colour for dark theme

This commit is contained in:
Don HO 2020-10-27 16:01:48 +01:00
parent 0689a94453
commit 3c9d58176b
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2635,7 +2635,16 @@ void ScintillaEditView::performGlobalStyles()
COLORREF bookmarkMarginColor = veryLiteGrey; COLORREF bookmarkMarginColor = veryLiteGrey;
i = stylers.getStylerIndexByName(TEXT("Bookmark margin")); 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); Style & style = stylers.getStyler(i);
bookmarkMarginColor = style._bgColor; bookmarkMarginColor = style._bgColor;