Commit 11b63b85835efd2725c21d228638c05c0842b6f3

  • Tree SHA1: 640f87d
  • Parent SHA1: d1c03d3 (remove stale comment, and don't crash if trying to organize files without artists. needs a proper fix so that the cool stream service doesn't allow itself to be organized, but this fixes the crash)
  • raw diff | raw patch
fix what I think are oversights in the toolbar code. thomas, feel free to check, but the old code didn't seem to make much sense
  
4545void TrackActionButton::enterEvent( QEvent *e )
4646{
4747 setIcon( m_icon.image[2], 3 );
48 IconButton::leaveEvent( e );
48 IconButton::enterEvent( e );
4949}
5050
5151void TrackActionButton::init()
7878 // the gray value is turned into the opacity
7979#define ALPHA qAlpha(pixel[i])
8080#define GRAY qGray(pixel[i])
81 if ( qMax( qMax(r,b), b ) > 128 ) // value > 50%, bright foreground
81 if ( qMax( qMax(r,g), b ) > 128 ) // value > 50%, bright foreground
8282 for (int i = 0; i < n; ++i)
8383 pixel[i] = qRgba( r,g,b, ( ALPHA * ( (160*GRAY) / 255 ) ) / 255 );
8484 else // inverse