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

Update FAB shape icon and color #18599

Merged
merged 4 commits into from
Jun 16, 2023

Conversation

ravishanker
Copy link
Contributor

@ravishanker ravishanker commented Jun 13, 2023

Updates FAB button on both Jetpack and WordPress apps

  • shape from circle to squircle
  • icon from create to plus
  • colour from green/blue to black/grey

Fixes # See p1686513683293089-slack-C04SFL0RP51

Light Dark
Screenshot_20230614_115843 Screenshot_20230614_115817

To test:

  • Launch Jetpack/WordPress app, and login
  • Verify that FAB shape is now squircle
  • Verify that FAB colour is now black
  • Turn on dark theme, if on light before, and light if it were dark
  • Verify that FAB is visible as in the second screen shot above, is squircle, and grey

Regression Notes

  1. Potential unintended areas of impact
    None

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Tested both JP and WP apps in light and dark themes

  3. What automated tests I added (or what prevented me from doing so)
    N/A

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • Talkback.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • Large and small screen sizes. (Tablet and smaller phones)
  • Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)

Updated FAB button colour from Jetpack green to gray_90
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 13, 2023

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr18599-a343648
Commita343648
Direct Downloadjetpack-prototype-build-pr18599-a343648.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 13, 2023

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr18599-a343648
Commita343648
Direct Downloadwordpress-prototype-build-pr18599-a343648.apk
Note: Google Login is not supported on these builds.

Update FAB shape from round to newer squircle
Update the icon from create to plus
@ravishanker ravishanker changed the title Update FAB color to Black Update FAB shape icon and color Jun 14, 2023
Copy link

@osullivanchris osullivanchris left a comment

Choose a reason for hiding this comment

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

Looks great. Let's do it!

@ravishanker ravishanker requested a review from irfano June 14, 2023 10:34
@ravishanker ravishanker marked this pull request as ready for review June 14, 2023 10:35
Copy link
Member

@irfano irfano left a comment

Choose a reason for hiding this comment

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

I have checked other places where we use FAB, and they all work fine except for the button on the media detail screen. There is a green border around the button. Can you also reproduce it? There may be a problem with the implementation of the FAB on that screen.

@ravishanker
Copy link
Contributor Author

I have checked other places where we use FAB, and they all work fine except for the button on the media detail screen. There is a green border around the button. Can you also reproduce it?

Yes, it is missing app:borderWidth="0dp" unlike others. May be, it is intentional, also has the elevation on that particular screen to stand out on the image behind perhaps.

Wdyt? Should I add borderWidth?

@irfano irfano assigned irfano and unassigned irfano Jun 15, 2023
Copy link
Member

@irfano irfano left a comment

Choose a reason for hiding this comment

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

I tested it with a black image. The green border looks ugly. A gray border could look better, but I couldn't find a way to change the color. This looks like an insignificant issue. I'm okay with removing the border. I'm approving the PR and leaving the decision to you.

with border without border

Change backgroundTint from green to grey/white
@ravishanker
Copy link
Contributor Author

I tested it with a black image. The green border looks ugly. A gray border could look better, but I couldn't find a way to change the color. This looks like an insignificant issue. I'm okay with removing the border. I'm approving the PR and leaving the decision to you.

Before After
Screenshot_20230616_094433 Screenshot_20230616_094457

After some research found a way to change border colour with app:backgroundTint, for future reference below

    android:backgroundTint="#B1E4F6"               //inner background color
    app:backgroundTint="@color/white"              //outer background color (border color)
    app:maxImageSize="16dp"                        //inner icon size
    app:tint="@android:color/holo_blue_dark" />    //inner icon color

@ravishanker ravishanker merged commit d311b3d into trunk Jun 16, 2023
@ravishanker ravishanker deleted the UI-Modernization-Update-FAB-colour-to-black branch June 16, 2023 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants