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

add icons to navigation #48

Merged
merged 1 commit into from
Oct 5, 2016
Merged

add icons to navigation #48

merged 1 commit into from
Oct 5, 2016

Conversation

jancborchardt
Copy link
Member

Much nicer and easier to identify. Just like in Files and Mail. Before & after:
capture du 2016-10-03 18-24-07capture du 2016-10-03 18-23-41

Please review @nickvergessen @nextcloud/designers :)

@raghunayyar
Copy link
Member

raghunayyar commented Oct 3, 2016

👍 for the icons!

@skjnldsv
Copy link
Member

skjnldsv commented Oct 3, 2016

And svg are optimized! 👍 😮

@nickvergessen
Copy link
Member

Let me have look, the icons should be added by the apps that provide the filters.

@nickvergessen nickvergessen self-assigned this Oct 3, 2016
@jancborchardt
Copy link
Member Author

@nickvergessen the apps are all in core already (except the activity icon, which is in the app itself). But in files too for some reason we copied them over.

I think it was the naming of the entries. So if we can have an entry corresponding to the id (for example $navigation['icon']):

  • all -> activity-dark
  • self -> user
  • by -> contacts-dark
  • files_favorites -> star
  • comments -> comment
  • shares -> share

Then we can get rid of the extra classes and just use icon-star, icon-comment etc generated by the snipped icon-<?php p($navigation['icon']) ?> instead of being bound to the ID.

Also cc @schiessle @MorrisJobke so we could fix that in files as well and add an icon attribute.

@nickvergessen
Copy link
Member

I moved the icon thing to the API, so apps can specify their own icons. Core apps are handled in nextcloud/server#1622

Please review that one as well.

Thanks @jancborchardt for the initial PR!

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen merged commit f1448b2 into master Oct 5, 2016
@nickvergessen nickvergessen deleted the navigation-icons branch October 5, 2016 11:16
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