A slight modification of the code from @Dimitar_Venkov here to handle lists of Line names and Style Colors should do the trick.
Then you can just insert a toggle Boolean prompt “Change to Black, Change to Colors” for your Engineers using Datashapes of the standard Dynamo Player UI (if using Revit 2018)