changeset 1545:bdf284b29722

Make audio dial more visible in Mac dark mode
author Chris Cannam
date Wed, 16 Oct 2019 16:20:12 +0100
parents 2d4107270015
children ec837d223bd9
files widgets/AudioDial.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/AudioDial.cpp	Wed Oct 16 13:02:52 2019 +0100
+++ b/widgets/AudioDial.cpp	Wed Oct 16 16:20:12 2019 +0100
@@ -142,7 +142,7 @@
         meterColor = palette().mid().color();
     } else if (m_meterColor == Qt::white) {
         if (knobIsDark) {
-            meterColor = palette().light().color();
+            meterColor = palette().text().color();
         } else {
             meterColor = palette().highlight().color();
         }
@@ -150,7 +150,7 @@
 
     QColor notchColor(palette().dark().color());
     if (knobIsDark) {
-        notchColor = palette().light().color();
+        notchColor = palette().text().color();
     }
     
     int m_size = width() < height() ? width() : height();
@@ -200,7 +200,6 @@
     // Tick notches...
 
     if ( notchesVisible() ) {
-//        cerr << "Notches visible" << endl;
         pen.setColor(notchColor);
         pen.setWidth(scale);
         paint.setPen(pen);