Skip to content

Implementing a gradientMode <Text> property.#140

Merged
andrewkunkel merged 1 commit into0.81.4-discordfrom
akunkel/gradient-clamp
Jan 13, 2026
Merged

Implementing a gradientMode <Text> property.#140
andrewkunkel merged 1 commit into0.81.4-discordfrom
akunkel/gradient-clamp

Conversation

@andrewkunkel
Copy link

@andrewkunkel andrewkunkel commented Jan 8, 2026

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.CLAMP instead.

https://app.asana.com/1/236888843494340/project/1210546020714549/task/1212349481901199

Changelog:

[INTERNAL][ADDED] - Added a gradientMode prop 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.

@andrewkunkel andrewkunkel requested a review from Flewp January 9, 2026 18:44
@andrewkunkel andrewkunkel marked this pull request as ready for review January 9, 2026 18:46
…p' value and the existing default of 'mirror'
@andrewkunkel andrewkunkel force-pushed the akunkel/gradient-clamp branch from 97f4907 to 6839cc1 Compare January 9, 2026 18:55
@andrewkunkel
Copy link
Author

/merge

@andrewkunkel andrewkunkel merged commit 20ffc94 into 0.81.4-discord Jan 13, 2026
59 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants