Fix Change history margin in black color issue
Use Line number margin style color for Change history margin, if not defined in 'theme.xml'. Fix #12764, fix #13593, close #13594pull/13616/head
parent
6b194453b8
commit
2d5c241e2b
|
@ -2808,12 +2808,22 @@ void ScintillaEditView::performGlobalStyles()
|
||||||
execute(SCI_SETMARGINTYPEN, _SC_MARGE_SYMBOL, SC_MARGIN_COLOUR);
|
execute(SCI_SETMARGINTYPEN, _SC_MARGE_SYMBOL, SC_MARGIN_COLOUR);
|
||||||
execute(SCI_SETMARGINBACKN, _SC_MARGE_SYMBOL, bookmarkMarginColor);
|
execute(SCI_SETMARGINBACKN, _SC_MARGE_SYMBOL, bookmarkMarginColor);
|
||||||
|
|
||||||
|
COLORREF changeHistoryMarginColor = veryLiteGrey;
|
||||||
pStyle = stylers.findByName(TEXT("Change History margin"));
|
pStyle = stylers.findByName(TEXT("Change History margin"));
|
||||||
if (pStyle)
|
if (!pStyle)
|
||||||
{
|
{
|
||||||
execute(SCI_SETMARGINTYPEN, _SC_MARGE_CHANGEHISTORY, SC_MARGIN_COLOUR);
|
pStyle = stylers.findByName(TEXT("Line number margin"));
|
||||||
execute(SCI_SETMARGINBACKN, _SC_MARGE_CHANGEHISTORY, pStyle->_bgColor);
|
if (pStyle)
|
||||||
|
{
|
||||||
|
changeHistoryMarginColor = pStyle->_bgColor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
changeHistoryMarginColor = pStyle->_bgColor;
|
||||||
|
}
|
||||||
|
execute(SCI_SETMARGINTYPEN, _SC_MARGE_CHANGEHISTORY, SC_MARGIN_COLOUR);
|
||||||
|
execute(SCI_SETMARGINBACKN, _SC_MARGE_CHANGEHISTORY, changeHistoryMarginColor);
|
||||||
|
|
||||||
COLORREF urlHoveredFG = grey;
|
COLORREF urlHoveredFG = grey;
|
||||||
pStyle = stylers.findByName(TEXT("URL hovered"));
|
pStyle = stylers.findByName(TEXT("URL hovered"));
|
||||||
|
|
Loading…
Reference in New Issue