Skip to content

Conversation

@heddxh
Copy link
Contributor

@heddxh heddxh commented Mar 13, 2025

Ready for merge.

Fix #79

This PR adds support for dynamic colors, also known as Monet Colors or Material You Colors.

  • On Android 14 or newer (API 34), I replicated Gboard's color selection one-to-one.

  • On Android 12 or newer (API 31), some approximate colors are used due to the absence of certain colors in Android.R.

  • On Android 11 or older, a static Material 3 color scheme with the seed color #769CDF is applied.

  • POC

  • Change color when configuration change

  • Optimize color chosen

  • Compatibility before API 34(Approximate color selection)

  • Compatibility before API 31(Static MD3 color)

  • Update README

@heddxh heddxh marked this pull request as ready for review March 15, 2025 17:11
@rocka rocka merged commit 9af46d8 into fcitx5-android:master Mar 16, 2025
6 checks passed
@heddxh heddxh deleted the feat-dynamic-color branch March 16, 2025 15:31
MokOopsing pushed a commit to MokOopsing/fcitx5-android that referenced this pull request Mar 17, 2025
Co-authored-by: Rocka <i@rocka.me>
wxyzh pushed a commit to wxyzh/fcitx5-android that referenced this pull request Jun 7, 2025
Co-authored-by: Rocka <i@rocka.me>
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.

[Feature] Support Android12 dynamic color

2 participants