From deef968ba5e09d5280030aa24251c77cc8b47736 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 15 Feb 2015 23:51:05 +1100 Subject: Add SC_INDICFLAG_VALUEFORE and INDIC_TEXTFORE to allow a wide range of indicator colours and to change the colour of text. --- src/ViewStyle.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ViewStyle.cxx') 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; -- cgit v1.2.3