changeset 541:e233627a923e

* spiff up thumbwheels
author Chris Cannam
date Mon, 03 Aug 2009 12:55:00 +0000
parents 1092181784a3
children 5930f2b0b1d2
files widgets/Thumbwheel.cpp
diffstat 1 files changed, 6 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/Thumbwheel.cpp	Mon Jun 29 16:25:16 2009 +0000
+++ b/widgets/Thumbwheel.cpp	Mon Aug 03 12:55:00 2009 +0000
@@ -538,18 +538,13 @@
         x1 += bw;
         x2 += bw;
 
-        int grey = lrintf(255 * depth);
+        int grey = lrintf(120 * depth);
+
         QColor fc = QColor(grey, grey, grey);
-        QColor oc = palette().dark().color();
+//        QColor oc = fc.dark(150);  //palette().dark().color();
+        QColor oc = palette().highlight().color();
 
-        paint.setPen(oc);
-        paint.setBrush(fc);
-
-        if (m_orientation == Qt::Horizontal) {
-            paint.drawRect(QRectF(x1, bw, x2 - x1, height() - bw*2));
-        } else {
-            paint.drawRect(QRectF(bw, x1, width() - bw*2, x2 - x1));
-        }
+        paint.setPen(fc);
 
         if (m_showScale) {
 
@@ -571,7 +566,7 @@
             }
         }
 
-        paint.setPen(oc);
+        paint.setPen(fc);
         paint.setBrush(palette().background().color());
 
         if (m_orientation == Qt::Horizontal) {