Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Closes #16345: Standartizing share icon across all app #16536

Merged
merged 3 commits into from
Nov 13, 2020

Conversation

LeoMaldonado
Copy link
Contributor

@LeoMaldonado LeoMaldonado commented Nov 12, 2020

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

This PR closes #16345. I removed share icon outlined by a filled share icon and put it in all references to share icons.

Screenshot_20201112-165052
Screenshot_20201112-165153
Screenshot_20201112-165258

replace mozac_ic_share for ic_hollow_share on DefaultToolbarMenu
updating share icon to a filled shape, like default toolbar menu across all app
@LeoMaldonado LeoMaldonado requested review from a team as code owners November 12, 2020 20:02
@firefoxci-taskcluster
Copy link

No Taskcluster jobs started for this pull request
The `allowPullRequests` configuration for this repository (in `.taskcluster.yml` on the
default branch) does not allow starting tasks for this pull request.

@ekager ekager self-assigned this Nov 12, 2020
Copy link
Contributor

@ekager ekager left a comment

Choose a reason for hiding this comment

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

Could we just remove the ic_hollow_share altogether and use the AC mozac_ic_share when needed? The only drawback I can think of is we need to make sure it's tinted correctly where used.

contentDescription = context.getString(R.string.browser_menu_share),
iconTintColorResource = primaryTextColor(),
listener = {
onItemTapped.invoke(ToolbarMenu.Item.Share)
}
)

registerForIsBookmarkedUpdates()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know, putting it back

@LeoMaldonado
Copy link
Contributor Author

Could we just remove the ic_hollow_share altogether and use the AC mozac_ic_share when needed? The only drawback I can think of is we need to make sure it's tinted correctly where used.

You're right, but mozac_ic_share belongs to a third party lib, and does not follow app theme. I decided this approach because I could use primaryText as default color, automatically following any future color changes

@ekager
Copy link
Contributor

ekager commented Nov 13, 2020

bors try

bors bot pushed a commit that referenced this pull request Nov 13, 2020
@bors
Copy link

bors bot commented Nov 13, 2020

try

Build succeeded:

Copy link
Contributor

@ekager ekager left a comment

Choose a reason for hiding this comment

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

Okay I'm fine with changing the asset!

@ekager
Copy link
Contributor

ekager commented Nov 13, 2020

bors r+

bors bot pushed a commit that referenced this pull request Nov 13, 2020
16536: Closes #16345: Standartizing share icon across all app r=ekager a=LeoMaldonado


### Pull Request checklist
<!-- Before submitting the PR, please address each item -->
- [x] **Tests**: This PR includes thorough tests or an explanation of why it does not
- [x] **Screenshots**: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
- [x] **Accessibility**: The code in this PR follows [accessibility best practices](https://github.com/mozilla-mobile/shared-docs/blob/master/android/accessibility_guide.md) or does not include any user facing features. In addition, it includes a screenshot of a successful [accessibility scan](https://play.google.com/store/apps/details?id=com.google.android.apps.accessibility.auditor&hl=en_US) to ensure no new defects are added to the product.

### To download an APK when reviewing a PR:
1. click on Show All Checks,
2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
3. click on the "Fenix - assemble" task, then click "Run Artifacts".
4. the APK links should be on the left side of the screen, named for each CPU architecture

This PR closes #16345. I removed share icon outlined by a filled share icon and put it in all references to share icons.

![Screenshot_20201112-165052](https://user-images.githubusercontent.com/1688902/98990102-cb8e5180-2508-11eb-9936-fc254c90b407.png)
![Screenshot_20201112-165153](https://user-images.githubusercontent.com/1688902/98990107-ccbf7e80-2508-11eb-826f-cd8451b70acc.png)
![Screenshot_20201112-165258](https://user-images.githubusercontent.com/1688902/98990109-cd581500-2508-11eb-93e9-c43e24403a5a.png)



Co-authored-by: LeoMaldonado <leomaldonadopassos@gmail.com>
@ekager ekager mentioned this pull request Nov 13, 2020
3 tasks
@codecov-io
Copy link

Codecov Report

Merging #16536 (dbcaee6) into master (686f7bd) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #16536   +/-   ##
=========================================
  Coverage     29.93%   29.93%           
  Complexity     1216     1216           
=========================================
  Files           455      455           
  Lines         18696    18696           
  Branches       2571     2571           
=========================================
  Hits           5596     5596           
  Misses        12665    12665           
  Partials        435      435           
Impacted Files Coverage Δ Complexity Δ
...lla/fenix/components/toolbar/DefaultToolbarMenu.kt 0.00% <0.00%> (ø) 0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 686f7bd...dbcaee6. Read the comment docs.

@ekager ekager merged commit a06b30a into mozilla-mobile:master Nov 13, 2020
@ekager
Copy link
Contributor

ekager commented Nov 13, 2020

Merged, thanks for the contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Update share icon in multi-select mode
3 participants