fix: Use material theming for encryption feature screens#2925
fix: Use material theming for encryption feature screens#2925Elouan1411 wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the encryption-related UI screens to rely on Material theme attributes (e.g. ?attr/colorPrimary, ?attr/colorPrimaryContainer) instead of hardcoded encryption color resources, by introducing an encryption-specific theme overlay and applying it to relevant layouts/components.
Changes:
- Introduces
EncryptionPrimaryColorThemeand applies it viaandroid:themeto encryption bottom sheets, the encryption password screen, and the message encryption alert. - Migrates encryption UI colors (alert background/text/icon + button tints) from
@color/...constants to Material color attributes. - Adds new encryption color role resources (
encryptionColorPrimary,encryptionPrimaryContainer, etc.) including night variants.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| app/src/main/res/values/styles.xml | Switches encryption styles to Material attributes and adds EncryptionPrimaryColorTheme. |
| app/src/main/res/values/colors.xml | Adds new encryption role colors for theming (colorPrimary, containers, on-colors). |
| app/src/main/res/values-night/colors.xml | Adds night equivalents for the new encryption role colors. |
| app/src/main/res/layout/item_message.xml | Applies the encryption theme overlay to the encryption alert view. |
| app/src/main/res/layout/fragment_encryption_password.xml | Applies encryption theme overlay and updates controls to use themed attributes. |
| app/src/main/res/layout/bottom_sheet_unencryptable_recipients.xml | Applies encryption theme overlay to the bottom sheet. |
| app/src/main/res/layout/bottom_sheet_encryption_discovery.xml | Applies encryption theme overlay to the bottom sheet root. |
| app/src/main/res/layout/bottom_sheet_encryption_actions.xml | Applies encryption theme overlay and updates icon tints to themed attributes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a2b7354 to
9d4cc2f
Compare
9d4cc2f to
1405d4e
Compare
|
| android:layout_marginHorizontal="@dimen/marginStandardVerySmall" | ||
| android:text="@string/readMore" | ||
| android:textColor="@color/encryptionButtonColor" /> | ||
| android:textColor="@color/primary_color_disabled" /> |
There was a problem hiding this comment.
THis doesn't work, the button is disabled but it keeps the same color



No description provided.