aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--src/Indicator.cxx4
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index e9b241752..011c89bdf 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -590,6 +590,9 @@
appearance when mouse moved out of window or into margin.
<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>
</ul>
<h3>
<a href="https://sourceforge.net/projects/scintilla/files/scintilla/3.21.0/scintilla3210.zip/download">Release 3.21.0</a>
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index c08b87965..f72102772 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -171,8 +171,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: