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

Upgrades app look and feel to Material You #5359

Closed
wants to merge 41 commits into from

Conversation

ericdecanini
Copy link
Contributor

@ericdecanini ericdecanini commented Feb 25, 2022

This PR shows how the app will look in Material 3, but can't be merged until we have approval from design. Based on that, the requirements and content of this might change

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Upgrades the app's theme to Material 3 (a.k.a Material You)

Motivation and context

The merge of this PR closes #5393

The changelog for 1.5.0 can be found here

Material 1.5.0 introduces the new Material 3 UI design scheme.

The dependency was upgraded without side-effects in this PR.

This PR includes the full design migration (sans dynamic colors) of the app to Material 3. The components which have been visibly updated are:

  • Bottom Navigation Bar
  • Chips (e.g. Jump to Unread)
  • Popup Menu
  • Dialogs
  • FAB
  • Settings menu (bold preference titles)

Other components have been updated in the code without any user-facing changes due to behavioural changes of UI components in Material 3. These include:

  • Text styles
  • Settings app bar title alignment

Screenshots / GIFs

image
image
image
image

Tests

Smoke test the app and see that designs are either consistent with previous Element app versions or with new Android Material 3 designs.

See that the components above display as expected (whether they are changed or remain the same)

Tested devices

  • Physical
  • Emulator
  • OS version(s): Android 10

Checklist

@github-actions
Copy link

github-actions bot commented Feb 25, 2022

Unit Test Results

  92 files  ±0    92 suites  ±0   1m 18s ⏱️ -2s
162 tests ±0  162 ✔️ ±0  0 💤 ±0  0 ±0 
524 runs  ±0  524 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 6aa830a. ± Comparison against base commit bcdf004.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Feb 25, 2022

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    =passed=6 failures=17 errors=0 skipped=2
  • [org.matrix.android.sdk.account]
    =passed=3 failures=0 errors=0 skipped=2
  • [org.matrix.android.sdk.internal]
    =passed=19 failures=1 errors=0 skipped=3
  • [org.matrix.android.sdk.ordering]
    =passed=16 failures=0 errors=0 skipped=0
  • [org.matrix.android.sdk.PermalinkParserTest]
    =passed=2 failures=0 errors=0 skipped=0

@@ -3,7 +3,7 @@

<!-- DARK THEME COLORS -->

<style name="Base.Theme.Vector.Dark" parent="Theme.MaterialComponents.NoActionBar">
<style name="Base.Theme.Vector.Dark" parent="Theme.Material3.Dark.NoActionBar">
Copy link
Member

Choose a reason for hiding this comment

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

So nice to have explicit .Dark in the theme names now!

@@ -55,7 +55,7 @@

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/loginServerUrlFormHomeServerUrlTil"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu"
Copy link
Member

@bmarty bmarty Feb 28, 2022

Choose a reason for hiding this comment

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

This was a mistake to directly use Widget.MaterialComponents.* in the layout. We should always have override style to our style_*.xml. Can I ask you to create the missing files, or add style to existing files following the current naming convention? Thanks!
It apply to all the other changes in layout files (except for debug files).

@ericdecanini ericdecanini changed the title Upgrades Material Library to 1.5.0 Upgrades app look and feel to Material You Mar 1, 2022
@ericdecanini
Copy link
Contributor Author

Parking this PR for now whilst awaiting the design team's decision on this.

The PR is left at the state of a full material 3 upgrade with a couple known issues:

  • On debug settings, opening a progress dialog will crash the app. This might have implications on other parts of the app
  • Some settings dialogs still use the old theme

@ericdecanini
Copy link
Contributor Author

When work is approved and once again ready to work on, either reopen this or use this as reference

@ericdecanini ericdecanini deleted the feature/eric/upgrade-material-library branch March 9, 2022 09:02
@ericdecanini ericdecanini restored the feature/eric/upgrade-material-library branch October 25, 2022 13:32
@ericdecanini
Copy link
Contributor Author

Restoring this branch temporarily to provide some videos to design

@ericdecanini ericdecanini reopened this Oct 25, 2022
@ericdecanini ericdecanini deleted the feature/eric/upgrade-material-library branch October 25, 2022 15:34
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.

Upgrade UI to Material You design scheme
2 participants