[vlc-devel] [PATCH] Fixed Santa hat not showing on cone after playback ends or is stopped even if it should

David Berdik dgberdik at gmail.com
Wed Dec 30 02:57:41 UTC 2020


---
 modules/gui/qt/components/interface_widgets.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 78dbc2f9c3..ced7d9f8c7 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -35,6 +35,7 @@
 
 #include "menus.hpp"             /* Popup menu on bgWidget */
 
+#include <QDate>
 #include <QLabel>
 #include <QToolButton>
 #include <QPalette>
@@ -445,6 +446,8 @@ void BackgroundWidget::titleUpdated( const QString& title )
             i_pos + 5 == title.indexOf( "Bi" /* directional */ "ll",
                                        i_pos, Qt::CaseInsensitive ) )
                 updateDefaultArt( ":/logo/vlc128-kb.png" );
+        else if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY )
+                updateDefaultArt( ":/logo/vlc128-xmas.png" );
         else
                 updateDefaultArt( ":/logo/vlc128.png" );
     }
-- 
2.30.0.windows.1



More information about the vlc-devel mailing list