Fix the regression of mark margin colour for dark theme

pull/9085/head
Don HO 4 years ago
parent 0689a94453
commit 3c9d58176b
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -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;

Loading…
Cancel
Save