summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Cojocaru <[email protected]>2016-04-22 21:45:54 +0300
committerRaphael Cojocaru <[email protected]>2016-04-22 21:45:54 +0300
commitb80c85b675ba51e91aa9f842f5179017f4b54f52 (patch)
tree99ea6c3c718b9777496220dd5ff7f82de2fad4ae
parentb10e1b50efcc7188059039aed993308e913b44d4 (diff)
parent128ae03be35c3c39d4e58ce65c561c5e8826d328 (diff)
Adjusted the Moon color opacity
-rw-r--r--kstars/tools/altvstime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kstars/tools/altvstime.cpp b/kstars/tools/altvstime.cpp
index baf7be2..eec669b 100644
--- a/kstars/tools/altvstime.cpp
+++ b/kstars/tools/altvstime.cpp
@@ -1082,6 +1082,7 @@ void AltVsTime::drawGradient(){
int fadewidth = pW * 0.01; // pW * fraction of day to fade the moon brightness over (0.01 corresponds to roughly 15 minutes, 0.007 to 10 minutes), both before and after actual set.
QColor MoonColor( 255, 255, 255, moonalpha );
+
if( moonset < moonrise ) {
QLinearGradient grad = QLinearGradient( QPointF( moonset - fadewidth, 0.0 ), QPointF( moonset + fadewidth, 0.0 ) );
grad.setColorAt( 0, MoonColor );