This is by design. We don’t want to regenerate the geometry every frame where the color changes. That being said, the hint itself should have no effect on the observed background color. Please submit a small repro project through the bug reporter (Help > Report a bug…) and QA will investigate.
Ah, that’s why when I press TAB on a button with transition background-color then it changes color. I fixed it by removing all transitions set onto background-color from my project.
Line 2306 in ComputedStyle.cs enforces DynamicColor if there is a transition. So there is a new color instead of the original one.
I’ve tried setting my buttons to DynamicColor but when the window opens the color is like the original, it’s only after I press TAB that it changes… I love UI Toolkit but I always have troubles with the navigation part.
Is there any ETA on when the initial problem described is getting fixed?
The issue UUM-21405 does not resolve the problem of colors appearing different when using UsageHints.DynamicColor. I’m still experiencing this issue in Unity 2022.2.18f.