The patch makes so that buttons with a fixed background, like as an example the outilner restriction toggles, always use the regular text color, since their active/inactive state is defined by changing the icon itself.
Before and after the patch with the default Blender Light theme:
Part of the same problem, these toggles get the colored emboss when animated, but it's currently being mixed with different backgrounds based on the active state; this is also true for the dark theme.
Before and after the patch with the default theme:
This mostly solves the problem I think, but theme customizability is still limited, since these "regular" icons are drawn in all sort of places.
The best thing here maybe would be to get the theme settings from the region/panel where the icon is drawn, but I don't know if it's possible to get them from ui_draw_but().



