Add icon sets for sizes 8, 12 and 16, remove old icons
This commit is contained in:
parent
bb91492098
commit
46384e71b7
150 changed files with 331 additions and 148 deletions
|
@ -621,10 +621,10 @@ fn diagnostic_header_renderer(diagnostic: Diagnostic) -> RenderBlock {
|
|||
let font_size = (style.text_scale_factor * settings.buffer_font_size).round();
|
||||
let icon_width = cx.em_width * style.icon_width_factor;
|
||||
let icon = if diagnostic.severity == DiagnosticSeverity::ERROR {
|
||||
Svg::new("icons/diagnostic-error-10.svg")
|
||||
Svg::new("icons/circle_x_mark_12.svg")
|
||||
.with_color(theme.error_diagnostic.message.text.color)
|
||||
} else {
|
||||
Svg::new("icons/diagnostic-warning-10.svg")
|
||||
Svg::new("icons/triangle_exclamation_12.svg")
|
||||
.with_color(theme.warning_diagnostic.message.text.color)
|
||||
};
|
||||
|
||||
|
@ -677,7 +677,7 @@ pub(crate) fn render_summary(
|
|||
let summary_spacing = theme.tab_summary_spacing;
|
||||
Flex::row()
|
||||
.with_children([
|
||||
Svg::new("icons/diagnostic-summary-error.svg")
|
||||
Svg::new("icons/circle_x_mark_12.svg")
|
||||
.with_color(text_style.color)
|
||||
.constrained()
|
||||
.with_width(icon_width)
|
||||
|
@ -694,7 +694,7 @@ pub(crate) fn render_summary(
|
|||
)
|
||||
.aligned()
|
||||
.boxed(),
|
||||
Svg::new("icons/diagnostic-summary-warning.svg")
|
||||
Svg::new("icons/triangle_exclamation_12.svg")
|
||||
.with_color(text_style.color)
|
||||
.constrained()
|
||||
.with_width(icon_width)
|
||||
|
|
|
@ -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/Icon16CircleXMark.svg")
|
||||
Svg::new("icons/circle_x_mark_16.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/Icon16TriangleExclamation.svg")
|
||||
Svg::new("icons/triangle_exclamation_16.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/Icon16CircleCheck.svg")
|
||||
Svg::new("icons/circle_check_16.svg")
|
||||
.with_color(style.icon_color_ok)
|
||||
.constrained()
|
||||
.with_width(style.icon_width)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue