Well, let me *, it didn't work when I tried to pull the GUI out of it to put another one in it. It was just going to be more time consuming than to just keep going where I was.
I do have a github, I have a github repo for this even 🤣. And yes since I just had to add more xaml files to it., I'd say we're at repo levels of complexity.
See when I was reading your script, there were icons on the discs when you select them, and we're already parsing ini files; I figured I'd just bang that out real easy like. 🤣 Ya right. I'd largely been spared any serious side effects from WPF and PowerShell both trying to coerce types to convert at every possible opportunity. That was until I started converting the icon's to bitmaps because WPF doesn't just support icons as images like Forms does. When you convert the icon, it will bring in System.Drawing, and thats where it goes wrong.
I was binding the window to a pscustomobject with the theme colors, and that worked well before. But after a conversion from string to System.Drawing.Color becomes available, and its before System.Windows.Media.Color, all color strings become the wrong kind of Color. Which breaks all that binding. You can get around most of it by hand converting the types, but that didn't work on every control in all states. So I had to make my nice theme ini file into 4 XAML resource dictionary files. It had the benefit that I can style the buttons properly now, but I didn't wanna use XAML styles 🤣. Its touchy when there is no WPF Application running, you have to deal with it a certain way or it tries to merge nonexistent app resources and crashes. There is probably a way short of full XAML themes, but I didn't try all that hard. But now, there are icons. 😁
I'll push up what I did earlier and post a link in a bit, I'm in the middle of some other things.
In the meantime, I did add this grid view of the INI 🙂