]> git.sesse.net Git - vlc/commitdiff
Qt, Mac: use the classical blue for the selector
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Nov 2010 16:49:31 +0000 (17:49 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Nov 2010 16:50:11 +0000 (17:50 +0100)
modules/gui/qt4/components/playlist/selector.cpp

index 66321a0d80290398adf00fe6b836ea73091344ee..88a4e519c59e89202828f5c5d98ebf529c17ea77 100644 (file)
@@ -38,6 +38,7 @@
 #include <QTreeWidgetItem>
 #include <QHBoxLayout>
 #include <QPainter>
+#include <QPalette>
 
 #include <vlc_playlist.h>
 #include <vlc_services_discovery.h>
@@ -139,6 +140,13 @@ PLSelector::PLSelector( QWidget *p, intf_thread_t *_p_intf )
 
     /* select the first item */
 //  view->setCurrentIndex( model->index( 0, 0, QModelIndex() ) );
+
+    setAutoFillBackground( true );
+#ifdef Q_WS_MAC
+    QPalette palette;
+    palette.setColor( QPalette::Window, QColor(209,215,226) );
+    setPalette( palette );
+#endif
 }
 
 PLSelector::~PLSelector()