diff options
author | Neil <nyamatongwe@gmail.com> | 2015-02-15 23:51:05 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-02-15 23:51:05 +1100 |
commit | 4e705edb0910461ebe675eb57d8fd08cc94495ec (patch) | |
tree | 1752b16a47f18b341d6cc96a4bf09dd4a730c78d /src/ViewStyle.cxx | |
parent | 982ee92ffbbd5c2f223a06ec5bf42910cefc4894 (diff) | |
download | scintilla-mirror-4e705edb0910461ebe675eb57d8fd08cc94495ec.tar.gz |
Add SC_INDICFLAG_VALUEFORE and INDIC_TEXTFORE to allow a wide range of indicator
colours and to change the colour of text.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 864356bc1..e56c8f375 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -102,10 +102,13 @@ ViewStyle::ViewStyle(const ViewStyle &source) { } CalcLargestMarkerHeight(); indicatorsDynamic = 0; + indicatorsSetFore = 0; for (int ind=0; ind<=INDIC_MAX; ind++) { indicators[ind] = source.indicators[ind]; if (indicators[ind].IsDynamic()) indicatorsDynamic++; + if (indicators[ind].OverridesTextFore()) + indicatorsSetFore++; } selColours = source.selColours; @@ -201,6 +204,7 @@ void ViewStyle::Init(size_t stylesSize_) { technology = SC_TECHNOLOGY_DEFAULT; indicatorsDynamic = 0; + indicatorsSetFore = 0; lineHeight = 1; lineOverlap = 0; maxAscent = 1; @@ -323,9 +327,12 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { styles[k].Copy(fr->font, *fr); } indicatorsDynamic = 0; + indicatorsSetFore = 0; for (int ind = 0; ind <= INDIC_MAX; ind++) { if (indicators[ind].IsDynamic()) indicatorsDynamic++; + if (indicators[ind].OverridesTextFore()) + indicatorsSetFore++; } maxAscent = 1; maxDescent = 1; |