[iOS] Fix dark mode visual bug on signin screen
The root cause is that, because CALayer uses CGColors, which don't support the whole dynamic color infrastructure, we have to manually set these colors to the correct version in -traitCollectionDidChange. However, CALayer automatically animates any change to these properties. This means that when the color mode changes, the rest of the colors update immediately, but the layer's colors animate to the correct color over the next ~0.5 seconds. To fix this, we can use CATransaction and setDisableActions to disable the automatic animation. Fixed: 1028091 Change-Id: Id217c5387bffc77a5a971aac0e43198a1ffa8200 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1940328Reviewed-by:Jérôme Lebel <jlebel@chromium.org> Commit-Queue: Robbie Gibson <rkgibson@google.com> Cr-Commit-Position: refs/heads/master@{#719585}
Showing
Please register or sign in to comment