GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use vectors instead of pngs! by SUPERCILEX · Pull Request #459 · firebase/FirebaseUI-Android

Conversation

@SUPERCILEX

@SUPERCILEX SUPERCILEX commented Dec 16, 2016

Copy link
Copy Markdown
Contributor

It looks much better now IMO. 🎉

Old:

screenshot_20161215-174354

New:

screenshot_20161215-174322

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
SUPERCILEX added 2 commits December 15, 2016 17:41
@SUPERCILEX
Replace all provider logos with vectors
550139e
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Use standard provider ordering in sample
2387564
Signed-off-by: Alex Saveau <[email protected]>
SUPERCILEX
SUPERCILEX commented Dec 16, 2016
View reviewed changes
Comment thread auth/src/main/res/drawable/ic_facebook_white_22dp.xml
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"

@SUPERCILEX SUPERCILEX Dec 16, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

For some weird reason, the Facebook icon looked too big at 24dp.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@samtstern

samtstern commented Dec 16, 2016

Copy link
Copy Markdown
Contributor

Looks nice! Just curious, where did you get the vector assets?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX

SUPERCILEX commented Dec 16, 2016

Copy link
Copy Markdown
Contributor Author

@samtstern Oh crud, I forgot about copyright stuff!

I got the email asset from Android Studio's material icon asset generator and I got each provider's icon from their respective wikipedia pages:

  • Google: https://en.wikipedia.org/wiki/File:Google_%22G%22_Logo.svg
  • Facebook: https://commons.wikimedia.org/wiki/File:F_icon.svg
  • Twitter: https://en.wikipedia.org/wiki/File:Twitter_bird_logo_2012.svg

I then imported all those into Android Studio.

👮 🚓 I'm hoping this isn't copyright infringement! 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@puf

puf commented Dec 17, 2016 via email

Copy link
Copy Markdown
Contributor
We should do something better than "hoping" for that. The links to the original source are a good start for doing so. And of course the same concern on trademark status applies to the bitmaps these are replacing. Good work btw!
…
On Fri, Dec 16, 2016 at 1:32 PM Alex Saveau ***@***.***> wrote: @samtstern <https://github.com/samtstern> Oh crud, I forgot about copyright stuff! I got the email asset from Android Studio's material icon asset generator and I got each provider's icon from their respective wikipedia pages: - Google: https://en.wikipedia.org/wiki/File:Google_%22G%22_Logo.svg - Facebook: https://commons.wikimedia.org/wiki/File:F_icon.svg - Twitter: https://en.wikipedia.org/wiki/File:Twitter_bird_logo_2012.svg I then imported all those into Android Studio. 👮 🚓 I'm hoping this isn't copyright infringement! 😄 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#459 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA3w3zyYDU9K8mdnnu2EklnsghUFVIYKks5rIwNXgaJpZM4LOxK6> .
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX

SUPERCILEX commented Dec 17, 2016

Copy link
Copy Markdown
Contributor Author

@puf I don't know anything about legal stuff, do you know how we can check the copyright? I kind of assumed that anything from wikipedia could be used, but maybe I'm wrong.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@puf

puf commented Dec 17, 2016 via email

Copy link
Copy Markdown
Contributor
The page links you provided have a license for each of the files. Also be sure to check your CLA. That's unfortunately as close to legal advice as I can get.
…
On Sat, Dec 17, 2016 at 11:05 AM Alex Saveau ***@***.***> wrote: @puf <https://github.com/puf> I don't know anything about legal stuff, do you know how we can check the copyright? I kind of assumed that anything from wikipedia could be used, but maybe I'm wrong. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#459 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA3w32BEP8lnwo3pEj1kFmUWxexW6TDXks5rJDJ7gaJpZM4LOxK6> .
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX

SUPERCILEX commented Dec 17, 2016

Copy link
Copy Markdown
Contributor Author

@puf Thanks! I didn't noticed the license info at the bottom. Since I don't want to be sued, I found the logo guidelines and I believe I am allowed to provide those logos.

The CLA I signed says the following:

You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.

To "include complete details" here are the guidelines I found for each provider:

Facebook:

Do I need to request permission for each use of the Facebook brand assets?
Please follow the general rules for using the Facebook brand, along with the rules for the specific asset you want to use. Permission is required if you want to use Facebook brand assets on TV or Film.

Thus, permission is not required for use online. There are extra guidelines for the "f" logo, but we're all in the green: https://facebookbrand.com/wp-content/uploads/2016/08/facebook_brandassetsguide.pdf.

Twitter:

By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies.

Since we are following the guidelines and the ToS, we are allowed to use their logo. More info here:
https://cdn.cms-twdigitalassets.com/content/dam/brand-twitter/asset-download-zip-files/Twitter_Brand_Guidelines.pdf

Google:

We're not violating the guidelines (https://developers.google.com/identity/branding-guidelines), so we can use the "g".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@puf

puf commented Dec 18, 2016 via email

Copy link
Copy Markdown
Contributor
Thanks for looking into this @SUPERCILEX.
…
On Sat, Dec 17, 2016 at 11:52 AM Alex Saveau ***@***.***> wrote: @puf <https://github.com/puf> Thanks! I didn't noticed the license info at the bottom. Since I don't want to be sued, I found the logo guidelines and I believe I am allowed to provide those logos. The CLA I signed says the following: You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). *You represent that Your Contribution submissions include complete details of any third-party license or other restriction* (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions. To "include complete details" here are the guidelines I found for each provider: Facebook: *Do I need to request permission for each use of the Facebook brand assets?* Please follow the general rules for using the Facebook brand, along with the rules for the specific asset you want to use. *Permission is required if you want to use Facebook brand assets on TV or Film.* Thus, permission is not required for use online. There are extra guidelines for the "f" logo, but we're all in the green: https://facebookbrand.com/wp-content/uploads/2016/08/facebook_brandassetsguide.pdf . Twitter: By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies. Since we are following the guidelines and the ToS, we are allowed to use their logo. More info here: https://cdn.cms-twdigitalassets.com/content/dam/brand-twitter/asset-download-zip-files/Twitter_Brand_Guidelines.pdf Google: We're not violating the guidelines ( https://developers.google.com/identity/branding-guidelines), so we can use the "g". — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#459 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA3w3yDQCUGncpfm1mWcW1pbR-UWdYYwks5rJD1igaJpZM4LOxK6> .
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@samtstern

samtstern commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

Thanks for checking the copyright stuff! Can you confirm this works on API < 21? I normally use app:srcCompat when using vector drawables but since these are placed using app:drawableLeft I am worried it may crash on lower API versions.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX

SUPERCILEX commented Dec 19, 2016

Copy link
Copy Markdown
Contributor Author

@samtstern I couldn't get an api 16 emulator with the latest play services, but I don't think that matters anyway since all the vector/material stuff was introduced in api 21. So anyway, it's working fine on api 19:
image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@samtstern

samtstern commented Dec 19, 2016

Copy link
Copy Markdown
Contributor

👍 API 19 is good enough for me!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@samtstern
samtstern merged commit 202c56e into firebase:version-1.1.0-dev Dec 19, 2016
@SUPERCILEX

SUPERCILEX commented Dec 19, 2016

Copy link
Copy Markdown
Contributor Author

Awesome!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX
SUPERCILEX deleted the vectors branch December 19, 2016 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@SUPERCILEX @samtstern @puf
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.