-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Update Octicons to v10 #12240
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 Octicons to v10 #12240
Conversation
Besides a few renames, these icons are no longer present in v10 that we've used, so had to change: file-symlink-directory -> file-submodule internal-repo -> repo repo-force-push -> repo-push repo-template-private -> repo-template Fixes: go-gitea#11889 Ref: https://github.com/primer/octicons/releases/tag/v10.0.0
These two should be fine thanks to previous PRs that explicitly display repo visibility/type as label. |
Index: templates/repo/header.tmpl
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- templates/repo/header.tmpl (revision d6c55b0ab0130fca7d93b0ef52b1414e990b4e0a)
+++ templates/repo/header.tmpl (date 1594663288676)
@@ -50,8 +50,7 @@
{{$.CsrfTokenHtml}}
<div class="ui labeled button" tabindex="0">
<button type="submit" class="ui compact basic button">
- <!-- TODO use star-filled once octicons v2 are in place */ -->
- {{if $.IsStaringRepo}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.star"}}{{end}}
+ {{if $.IsStaringRepo}}{{svg "octicon-star-fill" 16}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{svg "octicon-star" 16}}{{$.i18n.Tr "repo.star"}}{{end}}
</button>
<a class="ui basic label" href="{{.Link}}/stars">
{{.NumStars}} |
Aside from |
You mean |
I think Octicons switched to single *- technically |
I'll just move out current usage of |
Actually mirror octicon is in set; https://primer.style/octicons/mirror-16. Very sorry for suggesting that it isn't. We can remove |
Can't we use https://primer.style/octicons/tools-16 or https://primer.style/octicons/gear-16 instead of v1 sliders for settings? |
@CirnoT both done. One more semi-related change: Replaced two icons on Wiki with octicons: I think this is looking pretty good now overall. |
devDependencies are only for build tools, so it should be moved back to dependencies |
I've moved both |
svgo is used for building so it is devDependency but octicons are dependency |
They are both used in the same script so they shoud be together. Let's keep them in dependencies. The primary reason I've moved them to devDeps is to avoid some unnecessary installs but it's no big deal. |
@silverwind but not the same way. Svgo is used as a lib for build script while octicons are needed get svg files from so that's different uses |
Done, I guess I don't really care :) |
🚀 |
Besides a few renames, these icons are no longer present in v10 that we've used, so had to change:
file-symlink-directory -> file-submodule
internal-repo -> repo
repo-force-push -> repo-push
repo-template-private -> repo-template
Fixes: #11889
Ref: https://github.com/primer/octicons/releases/tag/v10.0.0