Add icons for Bitbucket, Codeberg, Forgejo, Gitea, and GitLab remotes (#57500)
Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] ~Unsafe blocks (if any) have justifying comments~ (N/A) - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Improves #44738 by including icons for more non-GitHub remotes instead of a generic link icon. The SVG icons I added in `assets/icons` are sourced from [simpleicons.org](https://simpleicons.org) as placeholders. They most definitely aren't in Zed's style and need design team input. Previews from History tab in Git panel (clicking on a commit in git graph also shows matched icons):      Release Notes: - Added icons for Bitbucket, Codeberg, Forgejo, Gitea, and GitLab remote providers. --------- Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
1 parent
2984fafdf2
commit
a5457029cc
9 files changed
+34
-8
No files matched your search
@@ -1205,10 +1205,7 @@ impl Render for CommitViewToolbar {
|
||||
}),
|
||||
)
|
||||
.children(remote_info.map(|(provider_name, url)| {
|
||||
let icon = match provider_name.as_str() {
|
||||
"GitHub" => IconName::Github,
|
||||
_ => IconName::Link,
|
||||
};
|
||||
let icon = crate::get_provider_icon(provider_name.as_str());
|
||||
|
||||
IconButton::new("view_on_provider", icon)
|
||||
.icon_size(IconSize::Small)
|
||||
|
||||
Reference in new issue
Block a user