Are you trying to change it specifically for that icon location and state? If you are still trying to change the icon globally the code you originally posted is still correct:
Specifically in that area, because as Kris aforementioned, sometimes the code has to be very specific. This is all the code I’ve added for changing icons:
As Kris mentioned, only some icons need special treatment. Notifications are one of those, so that’s why you needed to use notification.solved.accepted_notification. In the case of the solved icon in the post controls, it’s using the generic icon name, so you will only be able to change it globally when using the replaceIcon method.
If you want to get really specific, I think you will need to override the addPostMenuButton function that’s defined in the solved plugin. Try this:
This works, but oddly this script makes it so only me with the admin account can see the topic with a solved reply, any other users are unable to see it.