Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Align diagnostic icons with other statusbar icons
Nate Butler1da3be06463d
diff --git a/assets/icons/check_circle.svg b/assets/icons/check_circle.svgindex 85ba2e1f377..b48fe346316 100644--- a/assets/icons/check_circle.svg+++ b/assets/icons/check_circle.svg@@ -1,4 +1,4 @@<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M5 8L6.5 9L9 5.5" stroke="black" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>-<circle cx="7" cy="7" r="4.875" stroke="black" stroke-width="1.25"/>+<path d="M5 8L6.5 9L9 5.5" stroke="#11181C" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>+<circle cx="7" cy="7" r="4.875" stroke="#11181C" stroke-width="1.25"/></svg>diff --git a/assets/icons/error.svg b/assets/icons/error.svgindex 82b9401d08d..593629beee2 100644--- a/assets/icons/error.svg+++ b/assets/icons/error.svg@@ -1,4 +1,4 @@<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M8.86396 2C8.99657 2 9.12375 2.05268 9.21751 2.14645L11.8536 4.78249C11.9473 4.87625 12 5.00343 12 5.13604L12 8.86396C12 8.99657 11.9473 9.12375 11.8536 9.21751L9.21751 11.8536C9.12375 11.9473 8.99657 12 8.86396 12L5.13604 12C5.00343 12 4.87625 11.9473 4.78249 11.8536L2.14645 9.21751C2.05268 9.12375 2 8.99657 2 8.86396L2 5.13604C2 5.00343 2.05268 4.87625 2.14645 4.78249L4.78249 2.14645C4.87625 2.05268 5.00343 2 5.13604 2L8.86396 2Z" stroke="black" stroke-width="1.25" stroke-linejoin="round"/>-<path d="M8.89063 5.10938L5.10937 8.89063M8.89063 8.89063L5.10937 5.10938" stroke="black" stroke-width="1.25" stroke-linecap="round"/>+<path d="M8.86396 2C8.99657 2 9.12375 2.05268 9.21751 2.14645L11.8536 4.78249C11.9473 4.87625 12 5.00343 12 5.13604L12 8.86396C12 8.99657 11.9473 9.12375 11.8536 9.21751L9.21751 11.8536C9.12375 11.9473 8.99657 12 8.86396 12L5.13604 12C5.00343 12 4.87625 11.9473 4.78249 11.8536L2.14645 9.21751C2.05268 9.12375 2 8.99657 2 8.86396L2 5.13604C2 5.00343 2.05268 4.87625 2.14645 4.78249L4.78249 2.14645C4.87625 2.05268 5.00343 2 5.13604 2L8.86396 2Z" fill="#001A33" fill-opacity="0.157" stroke="#11181C" stroke-width="1.25" stroke-linejoin="round"/>+<path d="M8.89063 5.10938L5.10937 8.89063M8.89063 8.89063L5.10937 5.10938" stroke="#11181C" stroke-width="1.25" stroke-linecap="round"/></svg>diff --git a/assets/icons/warning.svg b/assets/icons/warning.svgindex 6b3d0fd41e9..e581def0d05 100644--- a/assets/icons/warning.svg+++ b/assets/icons/warning.svg@@ -1,5 +1,6 @@<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M9.5 6.5L11.994 11.625C12.1556 11.9571 11.9137 12.3438 11.5444 12.3438H2.45563C2.08628 12.3438 1.84442 11.9571 2.00603 11.625L4.5 6.5" stroke="black" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M7 7L7 2" stroke="black" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>-<circle cx="7" cy="9.24219" r="0.75" fill="black"/>+<path d="M2.45563 12.3438H11.5444C11.9137 12.3438 12.1556 11.9571 11.994 11.625L10.2346 8.00952C9.77174 7.05841 8.89104 6.37821 7.85383 6.17077C7.29019 6.05804 6.70981 6.05804 6.14617 6.17077C5.10896 6.37821 4.22826 7.05841 3.76542 8.00952L2.00603 11.625C1.84442 11.9571 2.08628 12.3438 2.45563 12.3438Z" fill="#001A33" fill-opacity="0.157"/>+<path d="M9.5 6.5L11.994 11.625C12.1556 11.9571 11.9137 12.3438 11.5444 12.3438H2.45563C2.08628 12.3438 1.84442 11.9571 2.00603 11.625L4.5 6.5" stroke="#11181C" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M7 7L7 2" stroke="#11181C" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>+<circle cx="7" cy="9.24219" r="0.75" fill="#11181C"/></svg>diff --git a/styles/src/style_tree/status_bar.ts b/styles/src/style_tree/status_bar.tsindex 3b5ebf2c88d..b279bbac14c 100644--- a/styles/src/style_tree/status_bar.ts+++ b/styles/src/style_tree/status_bar.ts@@ -75,34 +75,36 @@ export default function status_bar(): any {icon_color_error: foreground(layer, "negative"),container_ok: {corner_radius: 6,- padding: { top: 3, bottom: 3, left: 7, right: 7 },- },- container_warning: {- ...diagnostic_status_container,- background: background(layer, "warning"),- border: border(layer, "warning"),- },- container_error: {- ...diagnostic_status_container,- background: background(layer, "negative"),- border: border(layer, "negative"),+ padding: { top: 2, bottom: 2, left: 6, right: 6 },},+ container_warning: diagnostic_status_container,+ container_error: diagnostic_status_container},state: {hovered: {icon_color_ok: foreground(layer, "on"),container_ok: {- background: background(layer, "on", "hovered"),+ background: background(layer, "hovered")},container_warning: {- background: background(layer, "warning", "hovered"),- border: border(layer, "warning", "hovered"),+ background: background(layer, "hovered")},container_error: {- background: background(layer, "negative", "hovered"),- border: border(layer, "negative", "hovered"),+ background: background(layer, "hovered")},},+ clicked: {+ icon_color_ok: foreground(layer, "on"),+ container_ok: {+ background: background(layer, "pressed")+ },+ container_warning: {+ background: background(layer, "pressed")+ },+ container_error: {+ background: background(layer, "pressed")+ }+ }},}),panel_buttons: {