Changed the 'off' color effect of the led

Thu, 30 Jun 2022 11:48:47 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 30 Jun 2022 11:48:47 +0200
changeset 320
a866722d0f15
parent 319
d1861707054c
child 321
430d4cd2edd6

Changed the 'off' color effect of the led

src/analog/led.cpp file | annotate | diff | comparison | revisions
--- a/src/analog/led.cpp	Thu Jun 30 10:38:03 2022 +0200
+++ b/src/analog/led.cpp	Thu Jun 30 11:48:47 2022 +0200
@@ -72,7 +72,8 @@
   if (!m_checked || !isEnabled()) 
   { 
     back.getHsv(&h,&s,&v,&a);
-    s*=0.20; 
+    s *=0.70;
+    a *=0.20;
     back.setHsv(h,s,v,a); 
   }
   painter.setBrush(back); 

mercurial