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:
Marshall Bowers 2023-09-22 19:14:12 -04:00 committed by GitHub
parent ad62a966a6
commit 895386cfaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 159 additions and 49 deletions

View file

@ -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)),
)
}
}