feat: port svg sizing to font icons
This commit is contained in:
@@ -36,7 +36,7 @@ impl gpui::Render for TitleBar {
|
||||
let user_avatar = match user {
|
||||
QueryStatus::Err(api::Error::Unauthenticated) => div().absolute().right_2p5().child(
|
||||
button("login-btn")
|
||||
.leading(font_icon(FontIcon::Github, cx))
|
||||
.leading(font_icon(FontIcon::Github))
|
||||
.label("Login"),
|
||||
),
|
||||
|
||||
@@ -69,14 +69,14 @@ impl RepoSelector {
|
||||
}
|
||||
}
|
||||
|
||||
fn repo_selector<T: 'static>(cx: &gpui::Context<T>) -> gpui::Div {
|
||||
fn repo_selector<T: 'static>(_cx: &gpui::Context<T>) -> gpui::Div {
|
||||
div()
|
||||
.flex()
|
||||
.flex_row()
|
||||
.items_center()
|
||||
.gap_1()
|
||||
.text_xs()
|
||||
.child(font_icon(FontIcon::FolderGit, cx).size_3())
|
||||
.child(font_icon(FontIcon::FolderGit).size_3())
|
||||
.child(text("test/repo"))
|
||||
.child(font_icon(FontIcon::ChevronDown, cx).size_3())
|
||||
.child(font_icon(FontIcon::ChevronDown).size_3())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user