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

Android: improve app design #10361

Merged

Conversation

Simonx22
Copy link
Member

@Simonx22 Simonx22 commented Jan 8, 2022

This PR does several things:

  • migrate AppCompat to Material Components. This is recommended by Google: https://material.io/blog/migrate-android-material-components (in the future I plan on migrating to the newest standard, Material 3, once it's fully released). Note: Dolphin used MaterialComponents before but was then changed back to AppCompat: Android: Fix obscured Dolphin version #8659. I can no longer reproduce this issue.
  • adjust the colors
  • remove two colors: dolphin_purple and dolphin_accent_gamecube. These colors don't fit in the app IMO. Let me know if I should revert this change
  • add a missing up button in the UserDataActivity
  • adjust the toolbar of the main screen to better indicate which tab is currently selected

I tried to test this as best as I could but I do not own any Android TV device and Google didn't release an arm64 emulator image, so I'm unable to test on that platform. Tested on an Android device. Looks fine to me.
Let me know if anyone has any suggestions on what to change

Screenshots: (left is before, right is after)
Main menu:

Settings menu:

Cheats menu:

@JosJuice
Copy link
Member

JosJuice commented Jan 8, 2022

Overall I like this change, but I think the new style for the currently selected game list tab looks rather awkward. Not sure if that's just because I'm not used to it or not...

Regarding TV testing, what I usually do is to configure Android Studio to launch TvMainActivity on my phone. You can't test features like truly are exclusive to Android TV, like channel syncing, but the entire TV GUI is available and should work like it does on a real Android TV device.

@ajay9634

This comment has been minimized.

@JosJuice

This comment has been minimized.

@ajay9634

This comment has been minimized.

@Simonx22 Simonx22 force-pushed the migrate-to-material-components branch from 8f82b50 to 3f2cb31 Compare January 8, 2022 18:16
@Simonx22
Copy link
Member Author

Simonx22 commented Jan 8, 2022

Overall I like this change, but I think the new style for the currently selected game list tab looks rather awkward. Not sure if that's just because I'm not used to it or not...

Agreed. I reverted this change and added a white color that is being used as the tab indicator. I've also made the tab indicator slightly thicker.

Regarding TV testing, what I usually do is configure Android Studio to launch TvMainActivity on my phone. You can't test features like truly are exclusive to Android TV, like channel syncing, but the entire TV GUI is available and should work as it does
on a real Android TV device.

Thanks, that worked. Android TV looks OK to me.

@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • aeon-charge-attack on mvk-osx-m1: diff
  • burnout2-vehicletextures on mvk-osx-m1: diff
  • DKCR-Char on mvk-osx-m1: diff
  • DKCR-fast-depth on mvk-osx-m1: diff
  • ea-pink on mvk-osx-m1: diff
  • mp3-bloom on mvk-osx-m1: diff
  • rs3-bumpmapping on mvk-osx-m1: diff

automated-fifoci-reporter

@Bankaimaster999
Copy link
Contributor

Is there a need to show part of the name and company for the android part considering that the box art already shows the important information?
Wouldn't just having the box art shown be better?

@JosJuice
Copy link
Member

That only works if there in fact is box art for the game. Perhaps if you only play popular releases it is the case that all your games have box art, but there are certainly games out there without box art (especially if you count homebrew releases), and being able to see the name of a game is such a critical function that it in my opinion has to work for all games no matter what.

The company is less important.

@Simonx22
Copy link
Member Author

I plan on improving the game layout eventually, but I rather do that in a new PR so that this one is not getting too big.

@MayImilae
Copy link
Contributor

MayImilae commented Jan 16, 2022

So I typically focus on the desktop UX side of things but I was asked to give this a look.

I so, so friggin happy to see the purple get removed, finally. It was a very odd decision from way back and I never agreed with it. The coloured settings button is nice, settings icon being replaced with a back button is good, and the true white for lite mode is nice too. And the use of white for tab indication and stuff is a great touch! All in all this is much better, thank you for making this PR!

I have a nitpick however. For the dark mode cheats menu, there's a shortcut to settings that for whatever reason has black text in your screenshot. I'm not sure if you have fixed this already, but I do not care for it. It really should have white text there to match the rest of the UI.

settingsblack

Another small nitpick is that I don't care for the further darkening of the background in the dark mode, though that's kind of just my personal taste. White on grey is nice but white on black is searing for me, worse than black on white.

EDIT: Oh, I just noticed something else. The text in the cheats window light mode is a lighter colour than the header! The text is 21b0f3 (R33 G176 B243) and the header is 2196f3 (R33 G150 B243) IMO the text should be the header colour. And sice it's a slightly darker blue it should make the text easier to read. I'll do a quick mockup.

mockup

EDIT EDIT The text colour being different is also present in dark mode, but it's much harder to see there. You may want to standardize them to the header colour there too.

@Simonx22 Simonx22 force-pushed the migrate-to-material-components branch from 3f2cb31 to c6a074c Compare January 22, 2022 00:23
@Simonx22
Copy link
Member Author

@MayImilae Thanks for the review!

there's a shortcut to settings that for whatever reason has black text

Good point! Fixed.

further darkening of the background

Apparently that's the default for Material Components. I didn't see any easy way to change this without having to edit the color for each activity. This also applies to the text. I'm fine with the background and text color as is in both light and dark mode.

The text in the cheats window light mode is a lighter colour than the header

Good catch! I've fixed this.

@JosJuice JosJuice merged commit a8c5c9d into dolphin-emu:master Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants