Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add LocalTextColor provider to AnimatedLetter component #586

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Feb 6, 2025

TL;DR

Added CompositionLocalProvider to set text color in the splash screen animation.

What changed?

Added a CompositionLocalProvider wrapper around the Text component in the AnimatedLetter composable to provide the logo color through LocalTextColor.

How to test?

  1. Launch the app
  2. Verify the splash screen animation displays correctly
  3. Confirm the text color matches the expected logo color
  4. Check that the letter scaling and animation behavior remains unchanged

Why make this change?

To maintain consistency with the app's text color management system by using CompositionLocalProvider instead of directly passing the color parameter. This ensures better theme management and makes the code more maintainable.

@ksharma-xyz ksharma-xyz changed the title fix logo color on app start UI: Add LocalTextColor provider to AnimatedLetter component Feb 6, 2025
Copy link
Owner Author

ksharma-xyz commented Feb 6, 2025

@ksharma-xyz ksharma-xyz marked this pull request as ready for review February 6, 2025 05:33
@ksharma-xyz ksharma-xyz changed the base branch from 02-06-text_should_repect_style_of_localtextstyle_composition_local_provider to graphite-base/586 February 6, 2025 05:35
@ksharma-xyz ksharma-xyz force-pushed the 02-06-fix_logo_color_on_app_start branch from d4a2c0d to 778b1d7 Compare February 6, 2025 05:35
@ksharma-xyz ksharma-xyz changed the base branch from graphite-base/586 to main February 6, 2025 05:36
@ksharma-xyz ksharma-xyz force-pushed the 02-06-fix_logo_color_on_app_start branch from 778b1d7 to c83c920 Compare February 6, 2025 05:36
@ksharma-xyz ksharma-xyz force-pushed the 02-06-fix_logo_color_on_app_start branch from c83c920 to 3b4da77 Compare February 6, 2025 20:43
@ksharma-xyz ksharma-xyz enabled auto-merge (squash) February 6, 2025 20:44
@ksharma-xyz ksharma-xyz merged commit 3deb17c into main Feb 6, 2025
2 checks passed
@ksharma-xyz ksharma-xyz deleted the 02-06-fix_logo_color_on_app_start branch February 6, 2025 20:55
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.

1 participant