From 4b03e5ff13d76cd5fb7c3604dd2e30b15fd04775 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 11 Aug 2020 20:52:10 +1000 Subject: Fixed bug where gradient indicators were not showing hovered appearance. --- src/Indicator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 stops; switch (sacDraw.style) { case INDIC_GRADIENT: -- cgit v1.2.3