Skip to content

fix: Use material theming for encryption feature screens#2925

Open
Elouan1411 wants to merge 2 commits into
mainfrom
material-theming-encryption-screen
Open

fix: Use material theming for encryption feature screens#2925
Elouan1411 wants to merge 2 commits into
mainfrom
material-theming-encryption-screen

Conversation

@Elouan1411
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 1, 2026 12:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EncryptionPrimaryColorTheme and applies it via android:theme to 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.

Comment thread app/src/main/res/values/styles.xml
Comment thread app/src/main/res/values/styles.xml
Comment thread app/src/main/res/layout/fragment_encryption_password.xml Outdated
@Elouan1411 Elouan1411 force-pushed the material-theming-encryption-screen branch from a2b7354 to 9d4cc2f Compare June 1, 2026 13:25
@Elouan1411 Elouan1411 force-pushed the material-theming-encryption-screen branch from 9d4cc2f to 1405d4e Compare June 1, 2026 13:26
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 1, 2026

android:layout_marginHorizontal="@dimen/marginStandardVerySmall"
android:text="@string/readMore"
android:textColor="@color/encryptionButtonColor" />
android:textColor="@color/primary_color_disabled" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THis doesn't work, the button is disabled but it keeps the same color

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.

3 participants