Jump to content
LaunchBox Community Forums

COLORFUL - script to edit match menu colors with background color of playlist videos 1.0.0

   (0 reviews)

About This File

Hi guys, 

So I'm using the COLORFUL - Light theme and I love it. I have been adding lots of playlists with COLORFUL videos (I even made some myself). I also made hardware set png's similar to the platform png's that show before you select one and that slides to the right, into the video.

One thing that was bugging me though, was that for most playlists the color of the menu defaulted to green instead of matching my beautiful videos. I found out you can add some text with color codes for all of your playlists to the PlatformWheel1FiltersView.xml file in the /Themes/COLORFUL - Light/Views/ folder, but having to do that for dozens of playlists (even when using an online color picker) seemed like way too much work. 

So, I turned to ChatGPT. Long story short, here's a PYTHON SCRIPT that you put in your /Videos/Playlists/ folder together with a template.txt file. Change the path in the script to your own path. Then, when you run the script from terminal, it should automatically detect the main color of your videos and add an entry for those playlists in a freshly generated output.txt file. You can copy the generated text from that file (each entrt starts with <DataTrigger Binding= and end with </DataTrigger> into your PlatformWheel1FiltersView.xml file (look for the place where your other playlists are summed up with RGB hex codes and paste it in the end there, right before the </Style.Triggers> part).

It might not work right away. Obviously, you need Python installed. Also, you might need to install some additional modules (especially OpenCV seems to be stubborn). In that case, just tell ChatGPT the error you get and it will tell you what to install via terminal and how to. I even ended up uploading my PlatformWheel1FiltersView.xml file just to find out that I needed to replace all the & signs in the xaml file to &amp; just something you need to know. Should you use other special characters, change them to HTML-code!

I ran the script with this command: & "C:\Users\Joffr\AppData\Local\Programs\Python\Python311\python.exe" "F:\LaunchBox\Videos\Playlists\PlatformWheel1FiltersView.xml\Video Color Replacer.py" and it worked  (I put my script into a subfolder).

ALSO, VERY IMPORTANT: MAKE A BACK-UP OF YOUR XAML FILE BEFORE CHANGING ANYTHING BECAUSE YOU MIGHT FUCK IT UP 😅

LaunchBox Big Box 31-10-2025 17_17_16.png

LaunchBox Big Box 31-10-2025 17_17_23.png

LaunchBox Big Box 31-10-2025 17_17_43.png

LaunchBox Big Box 31-10-2025 17_18_07.png

LaunchBox Big Box 31-10-2025 17_17_00.png

Windows PowerShell 31-10-2025 17_27_08.png

Edited by JoffreyV
Added screenshot of input/output in terminal


User Feedback

You may only provide a review once you have downloaded the file.

There are no reviews to display.

×
×
  • Create New...