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 /src/Indicator.cxx | |
parent | 61aaee5cddbc546c90bf4962f32c3e237f05e033 (diff) | |
download | scintilla-mirror-4b03e5ff13d76cd5fb7c3604dd2e30b15fd04775.tar.gz |
Fixed bug where gradient indicators were not showing hovered appearance.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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: |