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

View File

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

View File

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