Windows TD2025.32820
ui.colors.resetToDefaults() does not in fact seem to do anything.
import random
for element in ui.colors:
ui.colors[element] = [random.random(), random.random(), random.random()]
ui.colors.resetToDefaults()
On a side-note recoloring ui elements has become much slower in TD2025.