]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Slightly reduce the tinting for selected icons and previews
authorFrank Reininghaus <frank78ac@googlemail.com>
Fri, 11 Jan 2013 16:12:34 +0000 (17:12 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Fri, 11 Jan 2013 16:12:34 +0000 (17:12 +0100)
The intention of the tinting was to make it more obvious in icons view
which icons are selected. However, some icons and previews look quite
ugly with the current tinting value of 1.0 (i.e., the value passed to
KIconEffect::colorize). A slight reduction of this value to 0.8 makes
this a little less ugly. However, the real fix is to remove the tinting
altogether and find something better to indicate which items are
selected.

CCBUG: 309722

src/kitemviews/kstandarditemlistwidget.cpp

index e1f0f9df1c88953074f633139133a0fd70cce56f..f3414e3f271b0dd42c4bebd67cfa74f9e0d2e999 100644 (file)
@@ -840,7 +840,7 @@ void KStandardItemListWidget::updatePixmapCache()
         if (isSelected()) {
             const QColor color = palette().brush(QPalette::Normal, QPalette::Highlight).color();
             QImage image = m_pixmap.toImage();
         if (isSelected()) {
             const QColor color = palette().brush(QPalette::Normal, QPalette::Highlight).color();
             QImage image = m_pixmap.toImage();
-            KIconEffect::colorize(image, color, 1.0f);
+            KIconEffect::colorize(image, color, 0.8f);
             m_pixmap = QPixmap::fromImage(image);
         }
     }
             m_pixmap = QPixmap::fromImage(image);
         }
     }