]> git.sesse.net Git - vlc/commitdiff
Qt: make the MainInterface Grey Brushed on Mac
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Jul 2010 17:05:47 +0000 (19:05 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Jul 2010 09:47:22 +0000 (11:47 +0200)
It is ugly, but way less than it was...

modules/gui/qt4/main_interface.cpp

index 02e3bb885ee004ab7fb2ec7c40527cbbd60cc964..a8dff3b58ec42231b61c16c9f0c152575391da11 100644 (file)
@@ -102,6 +102,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     setWindowRole( "vlc-main" );
     setWindowIcon( QApplication::windowIcon() );
     setWindowOpacity( var_InheritFloat( p_intf, "qt-opacity" ) );
+#ifdef Q_WS_MAC
+    setAttribute( Qt::WA_MacBrushedMetal );
+#endif
 
     /* Is video in embedded in the UI or not */
     b_videoEmbedded = var_InheritBool( p_intf, "embedded-video" );