Page 1 of 1

vlc not using system theme

Posted: 19 May 2019 06:34
by scar
I've installed VLC 3.0.6 from Debian Stretch repository, and it's showing up in a bright white theme, but my system is using a dark theme (adwaita-dark with global dark theme enabled). How to get VLC to show up using dark theme? thanks

Re: vlc not using system theme

Posted: 12 Oct 2019 09:14
by clor
VLC seems to use Qt5 theming, whereas Adwaita-Dark is a gtk theme. These are different GUI toolkits. They use different code to draw things like buttons and menus etc. Linux programs do not universally share one windowing toolkit, and thus do not all share one global theme setting.

QT5 allows importing GTK themes like Adwaita-Dark. To enable this, i had to install qt5ct (qt5 change theme) and required dependencies, then ensure that

Code: Select all

QT_QPA_PLATFORMTHEME=qt5ct
was set in my environment.
.
This can be set globally by adding QT_QPA_PLATFORMTHEME=qt5ct
to the file /etc/environment, and restarting X.
.
You can also set it temporarily within a shell session with "export T_QPA_PLATFORMTHEME=qt5ct" in your current shell.

Then you can start qt5ct and select gtk2 as your style
Image
.
Hit 'Apply' and 'Ok', then after restarting vlc, you should get Adwaita-Dark for your colors.
Image
.
While this is not necessarily a 'VLC problem', it is a problem many will encounter, so it would be very helpful if VLC could ease this process, or at least point to a brief explanation of the issues with GTK and QT theming similar to what I have posted here.

Thanks!