]> git.sesse.net Git - vlc/commitdiff
Qt: FSC opacity control between 0.1 and 1.0
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 13 Jul 2009 09:11:04 +0000 (11:11 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 13 Jul 2009 09:11:04 +0000 (11:11 +0200)
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/qt4.cpp

index 4f60c1117ee661862ad81a58d657396103512128..45418f7dcac27ed34ac5b09c09ea23d47bc49549 100644 (file)
@@ -761,7 +761,7 @@ void FullscreenControllerWidget::showFSC()
     }
 
 #if HAVE_TRANSPARENCY
-    setWindowOpacity( DEFAULT_OPACITY );
+    setWindowOpacity( config_GetFloat( p_intf, "qt-fs-opacity" )  );
 #endif
 
     show();
index 0db64c3b4d99957b3c7b6b4ac74debb0b9b70215..ff5bda97d9bbc0e2db956f8948152c0597ddc892 100644 (file)
@@ -110,6 +110,13 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
                              " This option only works with Windows and " \
                              "X11 with composite extensions." )
 
+#define OPACITY_FS_TEXT N_( "Fullscreen controller opacity opacity between 0.1 and 1." )
+#define OPACITY_FS_LONGTEXT N_( "Sets the fullscreen controller opacity between 0.1 and 1 " \
+                             "for main interface, playlist and extended panel."\
+                             " This option only works with Windows and " \
+                             "X11 with composite extensions." )
+
+
 #define ERROR_TEXT N_( "Show unimportant error and warnings dialogs" )
 
 #define UPDATER_TEXT N_( "Activate the updates availability notification" )
@@ -180,6 +187,8 @@ vlc_module_begin ()
 
     add_float_with_range( "qt-opacity", 1., 0.1, 1., NULL, OPACITY_TEXT,
                           OPACITY_LONGTEXT, false )
+    add_float_with_range( "qt-fs-opacity", 0.8, 0.1, 1., NULL, OPACITY_FS_TEXT,
+                          OPACITY_FS_LONGTEXT, false )
 
     add_bool( "qt-system-tray", true, NULL, SYSTRAY_TEXT,
               SYSTRAY_LONGTEXT, false)