aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-08-11 20:52:10 +1000
committerNeil <nyamatongwe@gmail.com>2020-08-11 20:52:10 +1000
commitda73d8db74271af998fa35dcedfeb781a0654de4 (patch)
tree6fce78c74bac65ee6504c49fd7f16c8210ef9e03 /src/Indicator.cxx
parent4613f965caa9b42abe8535c20fbca6a1384f4d92 (diff)
downloadscintilla-mirror-da73d8db74271af998fa35dcedfeb781a0654de4.tar.gz
Backport: Fixed bug where gradient indicators were not showing hovered appearance.
Backport of changeset 8478:8a57f43f8bc3.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r--src/Indicator.cxx4
1 files changed, 2 insertions, 2 deletions
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: