Mainline Icon and IconButton changes (#3022)
This PR mainlines the `Icon` and `IconButton` changes from the `gpui2-ui` branch. Release Notes: - N/A Co-authored-by: Nate Butler <nate@zed.dev>
This commit is contained in:
co-authored by
Nate Butler
parent
ad62a966a6
commit
895386cfaf
@@ -2,7 +2,7 @@ use gpui2::elements::div;
|
||||
use gpui2::style::StyleHelpers;
|
||||
use gpui2::{Element, IntoElement, ParentElement, ViewContext};
|
||||
|
||||
use crate::{breadcrumb, icon_button, theme};
|
||||
use crate::{breadcrumb, theme, IconAsset, IconButton};
|
||||
|
||||
pub struct ToolbarItem {}
|
||||
|
||||
@@ -27,9 +27,9 @@ impl Toolbar {
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.child(icon_button("icons/inlay_hint.svg"))
|
||||
.child(icon_button("icons/magnifying_glass.svg"))
|
||||
.child(icon_button("icons/magic-wand.svg")),
|
||||
.child(IconButton::new(IconAsset::InlayHint))
|
||||
.child(IconButton::new(IconAsset::MagnifyingGlass))
|
||||
.child(IconButton::new(IconAsset::MagicWand)),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user