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 Gerrit icon for Chromium hosting provider (#57713)

Henrique Ferreiro131161c08f68
diff --git a/assets/icons/gerrit.svg b/assets/icons/gerrit.svg
new file mode 100644
index 00000000000..c2149b2c11a
--- /dev/null
+++ b/assets/icons/gerrit.svg
@@ -0,0 +1,8 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M11.2308 4.7609V2.92308C11.2308 2.41328 10.8175 2 10.3077 2H2.92308C2.41328 2 2 2.41328 2 2.92308V10.3077C2 10.8175 2.41328 11.2308 2.92308 11.2308H5" stroke="#C6CAD0" stroke-width="1.2"/>
+<path d="M13.0769 4.76926H5.6923C5.1825 4.76926 4.76923 5.18253 4.76923 5.69233V13.077C4.76923 13.5868 5.1825 14 5.6923 14H13.0769C13.5867 14 14 13.5868 14 13.077V5.69233C14 5.18253 13.5867 4.76926 13.0769 4.76926Z" stroke="#C6CAD0" stroke-width="1.2"/>
+<path d="M6.15385 7.07693H8.92308V8.00001H6.15385V7.07693Z" fill="#C6CAD0"/>
+<path d="M9.84615 7.07693H12.6154V8.00001H9.84615V7.07693Z" fill="#C6CAD0"/>
+<path d="M6.15385 10.3077H7.07692V9.38461H8V10.3077H8.92308V11.2308H8V12.1538H7.07692V11.2308H6.15385V10.3077Z" fill="#C6CAD0"/>
+<path d="M9.84615 10.3077H10.7692V9.38461H11.6923V10.3077H12.6154V11.2308H11.6923V12.1538H10.7692V11.2308H9.84615V10.3077Z" fill="#C6CAD0"/>
+</svg>
diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rs
index 44eb2a22046..27c3d9dbb91 100644
--- a/crates/git_ui/src/git_ui.rs
+++ b/crates/git_ui/src/git_ui.rs
@@ -58,6 +58,7 @@ pub use conflict_view::MergeConflictIndicator;
pub fn get_provider_icon(name: &str) -> IconName {
match name {
"Bitbucket" => IconName::Bitbucket,
+ "Chromium" => IconName::Gerrit,
"Codeberg" => IconName::Codeberg,
"Forgejo Self-Hosted" => IconName::Forgejo,
"GitHub" => IconName::Github,
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index 45812948cc9..bbe9d6fe8b7 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -150,6 +150,7 @@ pub enum IconName {
GenericMaximize,
GenericMinimize,
GenericRestore,
+ Gerrit,
GitBranch,
GitBranchPlus,
GitCommit,