[vlc-commits] [Git][videolan/vlc][master] qt: use colorized icon for the Record menu item

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Nov 8 07:56:48 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
f94b6117 by Mohd Ayaan at 2026-11-08T07:25:08+01:00
qt: use colorized icon for the Record menu item

The svg uses a purple color meant to be colorized by the interface.
Use ColorizedSvgIcon::colorizedIconForWidget() instead of setting the
QIcon directly.

Fixes #30226

Signed-off-by: Mohd Ayaan <sheikhayaan408 at gmail.com>

- - - - -


2 changed files:

- modules/gui/qt/menus/menus.cpp
- modules/gui/qt/pixmaps/menu/ic_fluent_record.svg


Changes:

=====================================
modules/gui/qt/menus/menus.cpp
=====================================
@@ -615,9 +615,7 @@ void VLCMenuBar::PopupMenuPlaylistEntries( QMenu *menu, qt_intf_t *p_intf )
             ":/menu/ic_fluent_next.svg", &PlaylistController::next );
     nextAction->setEnabled( !bPlaylistEmpty );
     connect( THEMPL, &PlaylistController::isEmptyChanged, nextAction, &QAction::setDisabled);
-
-    action = menu->addAction( qtr( "Record" ), THEMIM, &PlayerController::toggleRecord );
-    action->setIcon( QIcon( ":/menu/ic_fluent_record.svg" ) );
+    action = addMIMStaticEntry( p_intf, menu, qtr( "Record" ), ":/menu/ic_fluent_record.svg", &PlayerController::toggleRecord );
     if( !hasInput )
         action->setEnabled( false );
     menu->addSeparator();


=====================================
modules/gui/qt/pixmaps/menu/ic_fluent_record.svg
=====================================
@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <svg width="24" height="24" fill="none" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
- <path d="m12 16.5c2.4853 0 4.5-2.0147 4.5-4.5s-2.0147-4.5-4.5-4.5-4.5 2.0147-4.5 4.5 2.0147 4.5 4.5 4.5zm0-12.5c-4.4183 0-8 3.5817-8 8s3.5817 8 8 8 8-3.5817 8-8-3.5817-8-8-8zm-7 8c0-3.866 3.134-7 7-7s7 3.134 7 7-3.134 7-7 7-7-3.134-7-7z" fill="#f0f"/>
+ <path d="m12 16.5c2.4853 0 4.5-2.0147 4.5-4.5s-2.0147-4.5-4.5-4.5-4.5 2.0147-4.5 4.5 2.0147 4.5 4.5 4.5zm0-12.5c-4.4183 0-8 3.5817-8 8s3.5817 8 8 8 8-3.5817 8-8-3.5817-8-8-8zm-7 8c0-3.866 3.134-7 7-7s7 3.134 7 7-3.134 7-7 7-7-3.134-7-7z" fill="#ff00ff"/>
 </svg>



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f94b611735dbcb4cd21a7a106b713b442128c4b7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f94b611735dbcb4cd21a7a106b713b442128c4b7
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list