Update icons in rust

Updated icons
- Diagnostic states
- Sidebar icons (project, contacts)
- Navigation arrows
This commit is contained in:
Nate Butler 2022-07-16 11:51:10 -04:00
parent d1361f7dfc
commit 4ca4449394
3 changed files with 7 additions and 7 deletions

View file

@ -101,7 +101,7 @@ impl View for DiagnosticIndicator {
let mut summary_row = Flex::row(); let mut summary_row = Flex::row();
if self.summary.error_count > 0 { if self.summary.error_count > 0 {
summary_row.add_children([ summary_row.add_children([
Svg::new("icons/error-solid-14.svg") Svg::new("icons/Icon16CircleXMark.svg")
.with_color(style.icon_color_error) .with_color(style.icon_color_error)
.constrained() .constrained()
.with_width(style.icon_width) .with_width(style.icon_width)
@ -117,7 +117,7 @@ impl View for DiagnosticIndicator {
if self.summary.warning_count > 0 { if self.summary.warning_count > 0 {
summary_row.add_children([ summary_row.add_children([
Svg::new("icons/warning-solid-14.svg") Svg::new("icons/Icon16TriangleExclamation.svg")
.with_color(style.icon_color_warning) .with_color(style.icon_color_warning)
.constrained() .constrained()
.with_width(style.icon_width) .with_width(style.icon_width)
@ -138,7 +138,7 @@ impl View for DiagnosticIndicator {
if self.summary.error_count == 0 && self.summary.warning_count == 0 { if self.summary.error_count == 0 && self.summary.warning_count == 0 {
summary_row.add_child( summary_row.add_child(
Svg::new("icons/no-error-solid-14.svg") Svg::new("icons/Icon16CircleCheck.svg")
.with_color(style.icon_color_ok) .with_color(style.icon_color_ok)
.constrained() .constrained()
.with_width(style.icon_width) .with_width(style.icon_width)

View file

@ -118,7 +118,7 @@ impl View for Toolbar {
.with_child( .with_child(
Flex::row() Flex::row()
.with_child(nav_button( .with_child(nav_button(
"icons/arrow-left.svg", "icons/Icon16ArrowLeft.svg",
button_style, button_style,
tooltip_style.clone(), tooltip_style.clone(),
enable_go_backward, enable_go_backward,
@ -131,7 +131,7 @@ impl View for Toolbar {
cx, cx,
)) ))
.with_child(nav_button( .with_child(nav_button(
"icons/arrow-right.svg", "icons/Icon16ArrowRight.svg",
button_style, button_style,
tooltip_style.clone(), tooltip_style.clone(),
enable_go_forward, enable_go_forward,

View file

@ -244,7 +244,7 @@ pub fn initialize_workspace(
workspace.left_sidebar().update(cx, |sidebar, cx| { workspace.left_sidebar().update(cx, |sidebar, cx| {
sidebar.add_item( sidebar.add_item(
"icons/folder-tree-solid-14.svg", "icons/Icon16FolderTree.svg",
"Project Panel".to_string(), "Project Panel".to_string(),
project_panel.into(), project_panel.into(),
cx, cx,
@ -252,7 +252,7 @@ pub fn initialize_workspace(
}); });
workspace.right_sidebar().update(cx, |sidebar, cx| { workspace.right_sidebar().update(cx, |sidebar, cx| {
sidebar.add_item( sidebar.add_item(
"icons/contacts-solid-14.svg", "icons/Icon16UserGroup.svg",
"Contacts Panel".to_string(), "Contacts Panel".to_string(),
contact_panel.into(), contact_panel.into(),
cx, cx,