Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add Sourcehut icon for Sourcehut hosting provider (#58668)

David Manca6e9465a4288c
diff --git a/assets/icons/sourcehut.svg b/assets/icons/sourcehut.svg
new file mode 100644
index 00000000000..1a77f5a1bbe
--- /dev/null
+++ b/assets/icons/sourcehut.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"></path></svg>
diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rs
index 27c3d9dbb91..5c211a87466 100644
--- a/crates/git_ui/src/git_ui.rs
+++ b/crates/git_ui/src/git_ui.rs
@@ -64,6 +64,7 @@ pub fn get_provider_icon(name: &str) -> IconName {
"GitHub" => IconName::Github,
"GitLab" => IconName::Gitlab,
"Gitea" => IconName::Gitea,
+ "SourceHut" => IconName::Sourcehut,
_ => IconName::Link,
}
}
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index ff90efe851b..b5012bb8816 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -234,6 +234,7 @@ pub enum IconName {
SignalMedium,
Slash,
Sliders,
+ Sourcehut,
Space,
Sparkle,
Split,