diff options
| author | Neil <nyamatongwe@gmail.com> | 2015-02-04 08:04:06 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2015-02-04 08:04:06 +1100 | 
| commit | ca6e6726ea248cc86dad9a3eddf649abe98add60 (patch) | |
| tree | 39dd457627c279bf35444c81c2ab69068dde1577 /src/ViewStyle.cxx | |
| parent | 2a01e4a708c371b061a9669ea3204a295e835ada (diff) | |
| download | scintilla-mirror-ca6e6726ea248cc86dad9a3eddf649abe98add60.tar.gz | |
Implement hover style and colour for indicators.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index b60905caf..864356bc1 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -101,8 +101,11 @@ ViewStyle::ViewStyle(const ViewStyle &source) {  		markers[mrk] = source.markers[mrk];  	}  	CalcLargestMarkerHeight(); +	indicatorsDynamic = 0;  	for (int ind=0; ind<=INDIC_MAX; ind++) {  		indicators[ind] = source.indicators[ind]; +		if (indicators[ind].IsDynamic()) +			indicatorsDynamic++;  	}  	selColours = source.selColours; @@ -197,6 +200,7 @@ void ViewStyle::Init(size_t stylesSize_) {  	indicators[2] = Indicator(INDIC_PLAIN, ColourDesired(0xff, 0, 0));  	technology = SC_TECHNOLOGY_DEFAULT; +	indicatorsDynamic = 0;  	lineHeight = 1;  	lineOverlap = 0;  	maxAscent = 1; @@ -318,6 +322,11 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) {  		FontRealised *fr = Find(styles[k]);  		styles[k].Copy(fr->font, *fr);  	} +	indicatorsDynamic = 0; +	for (int ind = 0; ind <= INDIC_MAX; ind++) { +		if (indicators[ind].IsDynamic()) +			indicatorsDynamic++; +	}  	maxAscent = 1;  	maxDescent = 1;  	FindMaxAscentDescent(); | 
