update
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M23 12L15.9289 19.0711L14.5147 17.6569L20.1716 12L14.5147 6.34317L15.9289 4.92896L23 12ZM3.82843 12L9.48528 17.6569L8.07107 19.0711L1 12L8.07107 4.92896L9.48528 6.34317L3.82843 12Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 285 B |
@@ -52,6 +52,7 @@ pub enum CustomIconName {
|
||||
Filter,
|
||||
GlobalOn,
|
||||
GlobalOff,
|
||||
GitClone,
|
||||
}
|
||||
|
||||
impl IconNamed for CustomIconName {
|
||||
@@ -61,6 +62,7 @@ impl IconNamed for CustomIconName {
|
||||
CustomIconName::Filter => "icons/filter.svg",
|
||||
CustomIconName::GlobalOn => "icons/global-on.svg",
|
||||
CustomIconName::GlobalOff => "icons/global-off.svg",
|
||||
CustomIconName::GitClone => "icons/git-clone.svg",
|
||||
}
|
||||
.into()
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
|
||||
use std::path::{Component, Path, PathBuf};
|
||||
|
||||
use anyhow::Error;
|
||||
use assets::CustomIconName;
|
||||
use gpui::prelude::*;
|
||||
use gpui::{
|
||||
App, ClipboardItem, Context, Entity, EventEmitter, FocusHandle, Focusable, Render,
|
||||
@@ -291,6 +292,7 @@ impl Render for RepoDetailView {
|
||||
.pt_2()
|
||||
.pb_4()
|
||||
.w_full()
|
||||
.gap_2()
|
||||
.items_start()
|
||||
.justify_between()
|
||||
.border_b_1()
|
||||
@@ -302,7 +304,6 @@ impl Render for RepoDetailView {
|
||||
.child(div().font_semibold().child(name))
|
||||
.child(
|
||||
div()
|
||||
.w_full()
|
||||
.text_xs()
|
||||
.text_color(cx.theme().muted_foreground)
|
||||
.line_clamp(3)
|
||||
@@ -373,7 +374,7 @@ impl Render for RepoDetailView {
|
||||
)
|
||||
.child(
|
||||
Button::new("clone")
|
||||
.icon(IconName::ArrowDown)
|
||||
.icon(CustomIconName::GitClone)
|
||||
.tooltip("Clone")
|
||||
.primary(),
|
||||
),
|
||||
|
||||
@@ -210,6 +210,9 @@ impl Render for SidebarPanel {
|
||||
.child(NavItem::new("explore", "Browse", IconName::Globe).on_click(
|
||||
cx.listener(|this, _ev, window, cx| this.open_explore(window, cx)),
|
||||
))
|
||||
.child(NavItem::new("search", "Saerch", IconName::Search).on_click(
|
||||
cx.listener(|this, _ev, window, cx| this.open_explore(window, cx)),
|
||||
))
|
||||
.child(
|
||||
v_flex().w_full().child(
|
||||
h_flex()
|
||||
|
||||
Reference in New Issue
Block a user