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

Autogenerate favicons from the navbar_brand file as a default option #137

Merged
merged 2 commits into from
Feb 7, 2017

Conversation

jdesiloniz
Copy link

Fixes: #136

This PR adds a default option for the favicon setting in the sbt-microsites, that creates a set of favicons from the navbar_brand2x.jpg file (offering different sizes for different devices) and links them to our different layouts.

Could you please review, @juanpedromoreno? Thanks!!

…ent standard sizes, and link them to the layouts as a default option
196,
310).map { w =>
(w, w)
} ++ Seq((310, 150))
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest doing this in this way:

@ val list = List(16,24,32,48,57,60,64,70,72,76,96,114,120,128,144,150,152,196,310,150)
list: List[Int] = List(16, 24, 32, 48, 57, 60, 64, 70, 72, 76, 96, 114, 120, 128, 144, 150, 152, 196, 310, 150)
@ list zip list
res1: List[(Int, Int)] = List((16, 16), (24, 24), (32, 32), (48, 48), (57, 57), (60, 60), (64, 64), (70, 70), (72, 72), (76, 76), (96, 96), (114, 114), (120, 120), (128, 128), (144, 144), (150, 150), (152, 152), (196, 196), (310, 310), (150, 150))

Also, do you really want a favicon size of (310, 150)?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! That size is for Windows 8/IE11 tiled favicons apparently.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

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

Minor suggestion, but this looks great to me.

@jdesiloniz jdesiloniz merged commit 8143e15 into master Feb 7, 2017
@jdesiloniz jdesiloniz deleted the sm136-auto-generate-favicon-file branch February 7, 2017 16:02
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.

None yet

2 participants