Implementing a gradientMode <Text> property.#140
Merged
andrewkunkel merged 1 commit into0.81.4-discordfrom Jan 13, 2026
Merged
Conversation
…p' value and the existing default of 'mirror'
97f4907 to
6839cc1
Compare
Flewp
approved these changes
Jan 12, 2026
Author
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
The existing "mirror" behavior adds the starting color to the end of the gradient, with the second color being in the middle. This is incompatible with the web behavior for gradient display name styles, which uses a two-color gradient across 100% width. The new "clamp" value disables this logic to use the raw color, and on Android uses
TileMode.CLAMPinstead.https://app.asana.com/1/236888843494340/project/1210546020714549/task/1212349481901199
Changelog:
[INTERNAL][ADDED] - Added a
gradientModeprop to the<Text>component.Test Plan:
I've implemented the client side for display name styles in this PR and tested it with these changes on Android and iOS. I also regression tested server role color gradients in both Android and IOS to confirm the existing mirror behavior is unchanged.