diff options
author | Neil <nyamatongwe@gmail.com> | 2020-08-11 20:52:10 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-08-11 20:52:10 +1000 |
commit | 4b03e5ff13d76cd5fb7c3604dd2e30b15fd04775 (patch) | |
tree | 7cd390a7c062289e8b8534302efcb73733735d8f | |
parent | 61aaee5cddbc546c90bf4962f32c3e237f05e033 (diff) | |
download | scintilla-mirror-4b03e5ff13d76cd5fb7c3604dd2e30b15fd04775.tar.gz |
Fixed bug where gradient indicators were not showing hovered appearance.
-rw-r--r-- | doc/ScintillaHistory.html | 3 | ||||
-rw-r--r-- | src/Indicator.cxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 84fbe36e7..3e2e96561 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -600,6 +600,9 @@ <a href="https://sourceforge.net/p/scintilla/bugs/2193/">Bug #2193</a>. </li> <li> + Fixed bug where gradient indicators were not showing hovered appearance. + </li> + <li> For SciTE, don't show the output pane for quiet jobs. <a href="https://sourceforge.net/p/scintilla/feature-requests/1365/">Feature #1365</a>. </li> diff --git a/src/Indicator.cxx b/src/Indicator.cxx index a09a64321..fda979242 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -172,8 +172,8 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r rcBox.top = rcLine.top + 1; rcBox.bottom = rcLine.bottom; const Surface::GradientOptions options = Surface::GradientOptions::topToBottom; - const ColourAlpha start(sacNormal.fore, fillAlpha); - const ColourAlpha end(sacNormal.fore, 0); + const ColourAlpha start(sacDraw.fore, fillAlpha); + const ColourAlpha end(sacDraw.fore, 0); std::vector<ColourStop> stops; switch (sacDraw.style) { case INDIC_GRADIENT: |