[vlc-devel] commit: Qt: FSC opacity control between 0.1 and 1.0 (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Jul 17 11:23:08 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 13 11:11:04 2009 +0200| [d7bd6ae3843657be84139aaa0e4debdd3c9bbd62] | committer: Jean-Baptiste Kempf
Qt: FSC opacity control between 0.1 and 1.0
(cherry picked from commit b8aa5b46c436c7d4b98063b623d7bef2f9244a10)
Backporting because bored of explaining it on the forum.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7bd6ae3843657be84139aaa0e4debdd3c9bbd62
---
modules/gui/qt4/components/controller.cpp | 2 +-
modules/gui/qt4/qt4.cpp | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index 26bb828..080eb76 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -761,7 +761,7 @@ void FullscreenControllerWidget::showFSC()
}
#if HAVE_TRANSPARENCY
- setWindowOpacity( DEFAULT_OPACITY );
+ setWindowOpacity( config_GetFloat( p_intf, "qt-fs-opacity" ) );
#endif
show();
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 90a5ae4..9629921 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -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)
More information about the vlc-devel
mailing list