Skip to content

[Fabric] Fixes semantic color not work when dark mode changed#42737

Closed
zhongwuzw wants to merge 1 commit into
react:mainfrom
zhongwuzw:features/fix_semantic_color
Closed

[Fabric] Fixes semantic color not work when dark mode changed#42737
zhongwuzw wants to merge 1 commit into
react:mainfrom
zhongwuzw:features/fix_semantic_color

Conversation

@zhongwuzw

Copy link
Copy Markdown
Contributor

Summary:

When we changed dark mode, the semantic color was not applied because we use color components, it's not dynamic. So let's store the UIColor for semantic color directly.

Simulator.Screen.Recording.-.iPhone.15.-.2024-01-30.at.22.56.58.mp4

Changelog:

[IOS] [FIXED] - [Fabric] Fixes semantic color not work when dark mode changed

Test Plan:

semantic color changed when switch dark mode.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jan 30, 2024

@cipolleschi cipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me. You know that, in the simulator, you can use ++A to switch between light and dark mode? 😄

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-01-30.at.15.09.15.mp4

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,151,010 +6
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,530,372 +7
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e97ba47
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 30, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in 3d71b11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants