Redesign and clean up all icons across Zed (#35856)
- [x] Clean up unused and old icons - [x] Swap SVG for all in-use icons with the redesigned version - [x] Document guidelines Release Notes: - N/A
This commit is contained in:
parent
530f5075d0
commit
2cde6da5ff
284 changed files with 535 additions and 791 deletions
|
@ -2900,10 +2900,10 @@ impl GitPanel {
|
|||
use remote_output::SuccessStyle::*;
|
||||
match style {
|
||||
Toast { .. } => {
|
||||
this.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
|
||||
this.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
|
||||
}
|
||||
ToastWithLog { output } => this
|
||||
.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
|
||||
.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
|
||||
.action("View Log", move |window, cx| {
|
||||
let output = output.clone();
|
||||
let output =
|
||||
|
@ -2915,7 +2915,7 @@ impl GitPanel {
|
|||
.ok();
|
||||
}),
|
||||
PushPrLink { text, link } => this
|
||||
.icon(ToastIcon::new(IconName::GitBranchSmall).color(Color::Muted))
|
||||
.icon(ToastIcon::new(IconName::GitBranchAlt).color(Color::Muted))
|
||||
.action(text, move |_, cx| cx.open_url(&link)),
|
||||
}
|
||||
});
|
||||
|
@ -3109,7 +3109,7 @@ impl GitPanel {
|
|||
.justify_center()
|
||||
.border_l_1()
|
||||
.border_color(cx.theme().colors().border)
|
||||
.child(Icon::new(IconName::ChevronDownSmall).size(IconSize::XSmall)),
|
||||
.child(Icon::new(IconName::ChevronDown).size(IconSize::XSmall)),
|
||||
),
|
||||
)
|
||||
.menu({
|
||||
|
@ -4561,7 +4561,7 @@ impl Panel for GitPanel {
|
|||
}
|
||||
|
||||
fn icon(&self, _: &Window, cx: &App) -> Option<ui::IconName> {
|
||||
Some(ui::IconName::GitBranchSmall).filter(|_| GitPanelSettings::get_global(cx).button)
|
||||
Some(ui::IconName::GitBranchAlt).filter(|_| GitPanelSettings::get_global(cx).button)
|
||||
}
|
||||
|
||||
fn icon_tooltip(&self, _window: &Window, _cx: &App) -> Option<&'static str> {
|
||||
|
@ -4808,7 +4808,7 @@ impl RenderOnce for PanelRepoFooter {
|
|||
.items_center()
|
||||
.child(
|
||||
div().child(
|
||||
Icon::new(IconName::GitBranchSmall)
|
||||
Icon::new(IconName::GitBranchAlt)
|
||||
.size(IconSize::Small)
|
||||
.color(if single_repo {
|
||||
Color::Disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue