diff --git a/assets/icons/contacts-solid-14.svg b/assets/icons/contacts-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..05ad6ada71e38ddb1a85976a8c67207b5c753b0a
--- /dev/null
+++ b/assets/icons/contacts-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/download-solid-14.svg b/assets/icons/download-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..e2e1cf5d0216227922ed7545a49b1678e24c9b54
--- /dev/null
+++ b/assets/icons/download-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/error-solid-14.svg b/assets/icons/error-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..a74b7e9419b968d00886881e5688b486c004cf85
--- /dev/null
+++ b/assets/icons/error-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/folder-tree-16.svg b/assets/icons/folder-tree-16.svg
deleted file mode 100644
index f22773b159ccf24fa410f37be92123fc2fa30601..0000000000000000000000000000000000000000
--- a/assets/icons/folder-tree-16.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/icons/folder-tree-solid-14.svg b/assets/icons/folder-tree-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..ecda94ca82716f822be5dc83b143643ede88465f
--- /dev/null
+++ b/assets/icons/folder-tree-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/no-error-solid-14.svg b/assets/icons/no-error-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..4d222aac730f5cae69c89e82ac3befca9b653626
--- /dev/null
+++ b/assets/icons/no-error-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/icons/user-16.svg b/assets/icons/user-16.svg
deleted file mode 100644
index 4ec153f5380a62e4529dc1e38e47d8531a0b07cb..0000000000000000000000000000000000000000
--- a/assets/icons/user-16.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/assets/icons/warning-solid-14.svg b/assets/icons/warning-solid-14.svg
new file mode 100644
index 0000000000000000000000000000000000000000..53dd5f7eaedc25bd73c26841d2d341d38aa75704
--- /dev/null
+++ b/assets/icons/warning-solid-14.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/themes/cave-dark.json b/assets/themes/cave-dark.json
index f0cb3746326a37474de58d91f6c44670114133b2..a26a6b9983d1926b4dc46f1b55ecddc352588029 100644
--- a/assets/themes/cave-dark.json
+++ b/assets/themes/cave-dark.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#26232a",
- "border": {
- "color": "#19171c",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#8b8792",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#efecf4",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#19171c",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#26232a",
- "border": {
- "color": "#19171c",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#8b8792",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#efecf4",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#19171c",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#19171c",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#8b8792",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#8b8792",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#8b8792",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#8b8792",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#8b8792",
+ "size": 14
+ },
+ "icon_color": "#8b8792",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#e2dfe7",
+ "size": 14
+ },
+ "icon_color": "#e2dfe7",
+ "background": "#58526052"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#8b8792",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#8b8792",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#e2dfe7",
+ "size": 14
+ },
+ "icon_color_ok": "#8b8792",
+ "icon_color_warning": "#a06e3b",
+ "icon_color_error": "#be4678",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#58526052"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#a06e3b26",
+ "border": {
+ "color": "#a06e3b26",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#be467826",
+ "border": {
+ "color": "#be467826",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#e2dfe7",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#58526052"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#a06e3b33",
+ "border": {
+ "color": "#a06e3b26",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#be467833",
+ "border": {
+ "color": "#be467826",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#8b8792",
+ "hover": {
+ "icon_color": "#e2dfe7",
+ "background": "#58526052"
+ },
+ "active": {
+ "icon_color": "#efecf4",
+ "background": "#5852607a"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#8b8792",
- "size": 12,
"border": {
"color": "#19171c",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#efecf4",
+ "color": "#8b8792",
"size": 12,
- "border": {
- "color": "#19171c",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#efecf4",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#8b8792"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#58526052",
- "color": "#8b8792"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#8b8792",
+ "hover": {
+ "background": "#58526052",
+ "color": "#8b8792"
},
- "corner_radius": 6,
- "background": "#58526052",
- "color": "#efecf4"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#5852607a",
+ "color": "#efecf4"
},
- "corner_radius": 6,
- "background": "#5852607a",
- "color": "#efecf4"
+ "active_hover": {
+ "background": "#58526052",
+ "color": "#efecf4"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#19171c",
"active_line_background": "#efecf412",
"code_actions_indicator": "#8b8792",
- "diff_background_deleted": "#be4678",
- "diff_background_inserted": "#2a9292",
+ "diff_background_deleted": "#be467826",
+ "diff_background_inserted": "#2a929226",
"document_highlight_read_background": "#19171c1f",
"document_highlight_write_background": "#19171c29",
"error_color": "#be4678",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#19171c",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#e2dfe7",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#8b8792",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#be4678",
+ "color": "#be467826",
"width": 1
},
"margin": {
diff --git a/assets/themes/cave-light.json b/assets/themes/cave-light.json
index aa062d478695e7231c71500cdb2e072602f750ca..1037255e3c768f350c2e9bfd550fed0c6d4dfbb2 100644
--- a/assets/themes/cave-light.json
+++ b/assets/themes/cave-light.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#e2dfe7",
- "border": {
- "color": "#efecf4",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#585260",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#19171c",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#efecf4",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#e2dfe7",
- "border": {
- "color": "#efecf4",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#585260",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#19171c",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#efecf4",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#efecf4",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#585260",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#585260",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#585260",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#585260",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#585260",
+ "size": 14
+ },
+ "icon_color": "#585260",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#26232a",
+ "size": 14
+ },
+ "icon_color": "#26232a",
+ "background": "#8b87921f"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#585260",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#585260",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#26232a",
+ "size": 14
+ },
+ "icon_color_ok": "#585260",
+ "icon_color_warning": "#a06e3b",
+ "icon_color_error": "#be4678",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#8b87921f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#a06e3b26",
+ "border": {
+ "color": "#a06e3b26",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#be467826",
+ "border": {
+ "color": "#be467826",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#26232a",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#8b87921f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#a06e3b33",
+ "border": {
+ "color": "#a06e3b26",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#be467833",
+ "border": {
+ "color": "#be467826",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#585260",
+ "hover": {
+ "icon_color": "#26232a",
+ "background": "#8b87921f"
+ },
+ "active": {
+ "icon_color": "#19171c",
+ "background": "#8b87922e"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#585260",
- "size": 12,
"border": {
"color": "#efecf4",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#19171c",
+ "color": "#585260",
"size": 12,
- "border": {
- "color": "#efecf4",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#19171c",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#585260"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#8b87921f",
- "color": "#585260"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#585260",
+ "hover": {
+ "background": "#8b87921f",
+ "color": "#585260"
},
- "corner_radius": 6,
- "background": "#8b87921f",
- "color": "#19171c"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#8b87922e",
+ "color": "#19171c"
},
- "corner_radius": 6,
- "background": "#8b87922e",
- "color": "#19171c"
+ "active_hover": {
+ "background": "#8b87921f",
+ "color": "#19171c"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#efecf4",
"active_line_background": "#19171c12",
"code_actions_indicator": "#585260",
- "diff_background_deleted": "#be4678",
- "diff_background_inserted": "#2a9292",
+ "diff_background_deleted": "#be467826",
+ "diff_background_inserted": "#2a929226",
"document_highlight_read_background": "#efecf41f",
"document_highlight_write_background": "#efecf429",
"error_color": "#be4678",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#efecf4",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#26232a",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#585260",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#be4678",
+ "color": "#be467826",
"width": 1
},
"margin": {
diff --git a/assets/themes/dark.json b/assets/themes/dark.json
index 2a371680f55fdfe701ec6400ac055bbb00705993..9ecf36dd2356158ee1dac11e4ad60815ae7541b4 100644
--- a/assets/themes/dark.json
+++ b/assets/themes/dark.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#1c1c1c",
- "border": {
- "color": "#070707",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#9c9c9c",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#ffffff",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#070707",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#1c1c1c",
- "border": {
- "color": "#070707",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#9c9c9c",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#ffffff",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#070707",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#070707",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#808080",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#808080",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#808080",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#808080",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#808080",
+ "size": 14
+ },
+ "icon_color": "#555555",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#f1f1f1",
+ "size": 14
+ },
+ "icon_color": "#c6c6c6",
+ "background": "#232323"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#808080",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#9c9c9c",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#f1f1f1",
+ "size": 14
+ },
+ "icon_color_ok": "#9c9c9c",
+ "icon_color_warning": "#f6a724",
+ "icon_color_error": "#eb2d2d",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#232323"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#f6a72426",
+ "border": {
+ "color": "#f6a72426",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9181826",
+ "border": {
+ "color": "#eb2d2d26",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#c6c6c6",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#232323"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#f6a72433",
+ "border": {
+ "color": "#f6a72426",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9181833",
+ "border": {
+ "color": "#eb2d2d26",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#9c9c9c",
+ "hover": {
+ "icon_color": "#c6c6c6",
+ "background": "#232323"
+ },
+ "active": {
+ "icon_color": "#ffffff",
+ "background": "#2b2b2b"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#9c9c9c",
- "size": 12,
"border": {
"color": "#070707",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#ffffff",
+ "color": "#9c9c9c",
"size": 12,
- "border": {
- "color": "#070707",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#ffffff",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#9c9c9c"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#323232",
- "color": "#9c9c9c"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#9c9c9c",
+ "hover": {
+ "background": "#323232",
+ "color": "#9c9c9c"
},
- "corner_radius": 6,
- "background": "#323232",
- "color": "#ffffff"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#1c1c1c",
+ "color": "#ffffff"
},
- "corner_radius": 6,
- "background": "#1c1c1c",
- "color": "#ffffff"
+ "active_hover": {
+ "background": "#323232",
+ "color": "#ffffff"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#000000",
"active_line_background": "#ffffff12",
"code_actions_indicator": "#555555",
- "diff_background_deleted": "#f15656",
- "diff_background_inserted": "#1b9447",
+ "diff_background_deleted": "#c9181826",
+ "diff_background_inserted": "#1b944726",
"document_highlight_read_background": "#ffffff1f",
"document_highlight_write_background": "#ffffff29",
"error_color": "#f15656",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#000000",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
"family": "Zed Sans",
- "color": "#f1f1f1",
- "size": 18
- },
- "status_bar_item": {
- "family": "Zed Sans",
- "color": "#808080",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "color": "#9c9c9c",
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#eb2d2d",
+ "color": "#eb2d2d26",
"width": 1
},
"margin": {
diff --git a/assets/themes/light.json b/assets/themes/light.json
index 8d56526e20a936eb4f04338d26b4a1336b69972e..53e9d185d73b1ebd228eeac92c28726d06bfd734 100644
--- a/assets/themes/light.json
+++ b/assets/themes/light.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#f8f8f8",
- "border": {
- "color": "#d5d5d5",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#717171",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#000000",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#d5d5d5",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#f8f8f8",
- "border": {
- "color": "#d5d5d5",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#717171",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#000000",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#d5d5d5",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#d5d5d5",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#636363",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#636363",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#636363",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#636363",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#636363",
+ "size": 14
+ },
+ "icon_color": "#9c9c9c",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#2b2b2b",
+ "size": 14
+ },
+ "icon_color": "#393939",
+ "background": "#eaeaea"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#636363",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#474747",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#2b2b2b",
+ "size": 14
+ },
+ "icon_color_ok": "#717171",
+ "icon_color_warning": "#f7bf17",
+ "icon_color_error": "#c91818",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#eaeaea"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#f6a72426",
+ "border": {
+ "color": "#f6a72426",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9181826",
+ "border": {
+ "color": "#eb2d2d26",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#393939",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#eaeaea"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#f6a72433",
+ "border": {
+ "color": "#f6a72426",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9181833",
+ "border": {
+ "color": "#eb2d2d26",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#717171",
+ "hover": {
+ "icon_color": "#393939",
+ "background": "#eaeaea"
+ },
+ "active": {
+ "icon_color": "#000000",
+ "background": "#e3e3e3"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#474747",
- "size": 12,
"border": {
"color": "#d5d5d5",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#000000",
+ "color": "#474747",
"size": 12,
- "border": {
- "color": "#d5d5d5",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#000000",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#717171"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#e3e3e3",
- "color": "#717171"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#717171",
+ "hover": {
+ "background": "#e3e3e3",
+ "color": "#717171"
},
- "corner_radius": 6,
- "background": "#e3e3e3",
- "color": "#000000"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#d5d5d5",
+ "color": "#000000"
},
- "corner_radius": 6,
- "background": "#d5d5d5",
- "color": "#000000"
+ "active_hover": {
+ "background": "#e3e3e3",
+ "color": "#000000"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#ffffff",
"active_line_background": "#0000000f",
"code_actions_indicator": "#9c9c9c",
- "diff_background_deleted": "#fcc6c6",
- "diff_background_inserted": "#b7f9ce",
+ "diff_background_deleted": "#c9181826",
+ "diff_background_inserted": "#1b944726",
"document_highlight_read_background": "#0000000f",
"document_highlight_write_background": "#00000029",
"error_color": "#eb2d2d",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#ffffff",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
"family": "Zed Sans",
- "color": "#2b2b2b",
- "size": 18
- },
- "status_bar_item": {
- "family": "Zed Sans",
- "color": "#636363",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "color": "#474747",
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#f9a0a0",
+ "color": "#eb2d2d26",
"width": 1
},
"margin": {
diff --git a/assets/themes/solarized-dark.json b/assets/themes/solarized-dark.json
index bd73ab934e1955a41016bd7bc42ec6567b8382ed..6b4d22d4b6be8526c297a997a10b86d0d4bb181d 100644
--- a/assets/themes/solarized-dark.json
+++ b/assets/themes/solarized-dark.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#073642",
- "border": {
- "color": "#002b36",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#93a1a1",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#fdf6e3",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#002b36",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#073642",
- "border": {
- "color": "#002b36",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#93a1a1",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#fdf6e3",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#002b36",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#002b36",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#93a1a1",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#93a1a1",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#93a1a1",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#93a1a1",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#93a1a1",
+ "size": 14
+ },
+ "icon_color": "#93a1a1",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#eee8d5",
+ "size": 14
+ },
+ "icon_color": "#eee8d5",
+ "background": "#586e7552"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#93a1a1",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#93a1a1",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#eee8d5",
+ "size": 14
+ },
+ "icon_color_ok": "#93a1a1",
+ "icon_color_warning": "#b58900",
+ "icon_color_error": "#dc322f",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#586e7552"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#b5890026",
+ "border": {
+ "color": "#b5890026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#dc322f26",
+ "border": {
+ "color": "#dc322f26",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#eee8d5",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#586e7552"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#b5890033",
+ "border": {
+ "color": "#b5890026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#dc322f33",
+ "border": {
+ "color": "#dc322f26",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#93a1a1",
+ "hover": {
+ "icon_color": "#eee8d5",
+ "background": "#586e7552"
+ },
+ "active": {
+ "icon_color": "#fdf6e3",
+ "background": "#586e757a"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#93a1a1",
- "size": 12,
"border": {
"color": "#002b36",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#fdf6e3",
+ "color": "#93a1a1",
"size": 12,
- "border": {
- "color": "#002b36",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#fdf6e3",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#93a1a1"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#586e7552",
- "color": "#93a1a1"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#93a1a1",
+ "hover": {
+ "background": "#586e7552",
+ "color": "#93a1a1"
},
- "corner_radius": 6,
- "background": "#586e7552",
- "color": "#fdf6e3"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#586e757a",
+ "color": "#fdf6e3"
},
- "corner_radius": 6,
- "background": "#586e757a",
- "color": "#fdf6e3"
+ "active_hover": {
+ "background": "#586e7552",
+ "color": "#fdf6e3"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#002b36",
"active_line_background": "#fdf6e312",
"code_actions_indicator": "#93a1a1",
- "diff_background_deleted": "#dc322f",
- "diff_background_inserted": "#859900",
+ "diff_background_deleted": "#dc322f26",
+ "diff_background_inserted": "#85990026",
"document_highlight_read_background": "#002b361f",
"document_highlight_write_background": "#002b3629",
"error_color": "#dc322f",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#002b36",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#eee8d5",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#93a1a1",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#dc322f",
+ "color": "#dc322f26",
"width": 1
},
"margin": {
diff --git a/assets/themes/solarized-light.json b/assets/themes/solarized-light.json
index 35de751a2b211e9cc68e25869eb7235f2e34fb9f..1e3e645bf11b8d787e282e3293edee456bfcedcf 100644
--- a/assets/themes/solarized-light.json
+++ b/assets/themes/solarized-light.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#eee8d5",
- "border": {
- "color": "#fdf6e3",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#586e75",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#002b36",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#fdf6e3",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#eee8d5",
- "border": {
- "color": "#fdf6e3",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#586e75",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#002b36",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#fdf6e3",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#fdf6e3",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#586e75",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#586e75",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#586e75",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#586e75",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#586e75",
+ "size": 14
+ },
+ "icon_color": "#586e75",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#073642",
+ "size": 14
+ },
+ "icon_color": "#073642",
+ "background": "#93a1a11f"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#586e75",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#586e75",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#073642",
+ "size": 14
+ },
+ "icon_color_ok": "#586e75",
+ "icon_color_warning": "#b58900",
+ "icon_color_error": "#dc322f",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#93a1a11f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#b5890026",
+ "border": {
+ "color": "#b5890026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#dc322f26",
+ "border": {
+ "color": "#dc322f26",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#073642",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#93a1a11f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#b5890033",
+ "border": {
+ "color": "#b5890026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#dc322f33",
+ "border": {
+ "color": "#dc322f26",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#586e75",
+ "hover": {
+ "icon_color": "#073642",
+ "background": "#93a1a11f"
+ },
+ "active": {
+ "icon_color": "#002b36",
+ "background": "#93a1a12e"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#586e75",
- "size": 12,
"border": {
"color": "#fdf6e3",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#002b36",
+ "color": "#586e75",
"size": 12,
- "border": {
- "color": "#fdf6e3",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#002b36",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#586e75"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#93a1a11f",
- "color": "#586e75"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#586e75",
+ "hover": {
+ "background": "#93a1a11f",
+ "color": "#586e75"
},
- "corner_radius": 6,
- "background": "#93a1a11f",
- "color": "#002b36"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#93a1a12e",
+ "color": "#002b36"
},
- "corner_radius": 6,
- "background": "#93a1a12e",
- "color": "#002b36"
+ "active_hover": {
+ "background": "#93a1a11f",
+ "color": "#002b36"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#fdf6e3",
"active_line_background": "#002b3612",
"code_actions_indicator": "#586e75",
- "diff_background_deleted": "#dc322f",
- "diff_background_inserted": "#859900",
+ "diff_background_deleted": "#dc322f26",
+ "diff_background_inserted": "#85990026",
"document_highlight_read_background": "#fdf6e31f",
"document_highlight_write_background": "#fdf6e329",
"error_color": "#dc322f",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#fdf6e3",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#073642",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#586e75",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#dc322f",
+ "color": "#dc322f26",
"width": 1
},
"margin": {
diff --git a/assets/themes/sulphurpool-dark.json b/assets/themes/sulphurpool-dark.json
index 20123449bb893eb718513bb97cfbd0e49e0f0d97..c199a57241821696a5b629671b794a066882ae73 100644
--- a/assets/themes/sulphurpool-dark.json
+++ b/assets/themes/sulphurpool-dark.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#293256",
- "border": {
- "color": "#202746",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#979db4",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#f5f7ff",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#202746",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#293256",
- "border": {
- "color": "#202746",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#979db4",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#f5f7ff",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#202746",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#202746",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#979db4",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#979db4",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#979db4",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#979db4",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#979db4",
+ "size": 14
+ },
+ "icon_color": "#979db4",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#dfe2f1",
+ "size": 14
+ },
+ "icon_color": "#dfe2f1",
+ "background": "#5e668752"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#979db4",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#979db4",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#dfe2f1",
+ "size": 14
+ },
+ "icon_color_ok": "#979db4",
+ "icon_color_warning": "#c08b30",
+ "icon_color_error": "#c94922",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#5e668752"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c08b3026",
+ "border": {
+ "color": "#c08b3026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9492226",
+ "border": {
+ "color": "#c9492226",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#dfe2f1",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#5e668752"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c08b3033",
+ "border": {
+ "color": "#c08b3026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9492233",
+ "border": {
+ "color": "#c9492226",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#979db4",
+ "hover": {
+ "icon_color": "#dfe2f1",
+ "background": "#5e668752"
+ },
+ "active": {
+ "icon_color": "#f5f7ff",
+ "background": "#5e66877a"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#979db4",
- "size": 12,
"border": {
"color": "#202746",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#f5f7ff",
+ "color": "#979db4",
"size": 12,
- "border": {
- "color": "#202746",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#f5f7ff",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#979db4"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#5e668752",
- "color": "#979db4"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#979db4",
+ "hover": {
+ "background": "#5e668752",
+ "color": "#979db4"
},
- "corner_radius": 6,
- "background": "#5e668752",
- "color": "#f5f7ff"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#5e66877a",
+ "color": "#f5f7ff"
},
- "corner_radius": 6,
- "background": "#5e66877a",
- "color": "#f5f7ff"
+ "active_hover": {
+ "background": "#5e668752",
+ "color": "#f5f7ff"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#202746",
"active_line_background": "#f5f7ff12",
"code_actions_indicator": "#979db4",
- "diff_background_deleted": "#c94922",
- "diff_background_inserted": "#ac9739",
+ "diff_background_deleted": "#c9492226",
+ "diff_background_inserted": "#ac973926",
"document_highlight_read_background": "#2027461f",
"document_highlight_write_background": "#20274629",
"error_color": "#c94922",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#202746",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#dfe2f1",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#979db4",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#c94922",
+ "color": "#c9492226",
"width": 1
},
"margin": {
diff --git a/assets/themes/sulphurpool-light.json b/assets/themes/sulphurpool-light.json
index 9bebd8203658ebcb08cb250e92e106f539b575ac..097a0059cb3d7991eb78024e0ca358f925081922 100644
--- a/assets/themes/sulphurpool-light.json
+++ b/assets/themes/sulphurpool-light.json
@@ -161,54 +161,10 @@
},
"cursor": "Arrow"
},
- "left_sidebar": {
- "width": 30,
- "background": "#dfe2f1",
- "border": {
- "color": "#f5f7ff",
- "width": 1,
- "right": true
- },
- "item": {
- "height": 32,
- "icon_color": "#5e6687",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#202746",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#f5f7ff",
- "padding": {
- "left": 1
- }
- }
- },
- "right_sidebar": {
- "width": 30,
- "background": "#dfe2f1",
- "border": {
- "color": "#f5f7ff",
- "width": 1,
- "left": true
- },
- "item": {
- "height": 32,
- "icon_color": "#5e6687",
- "icon_size": 18
- },
- "active_item": {
- "height": 32,
- "icon_color": "#202746",
- "icon_size": 18
- },
- "resize_handle": {
- "background": "#f5f7ff",
- "padding": {
- "left": 1
- }
+ "sidebar_resize_handle": {
+ "background": "#f5f7ff",
+ "padding": {
+ "left": 1
}
},
"pane_divider": {
@@ -216,9 +172,11 @@
"width": 1
},
"status_bar": {
- "height": 24,
+ "height": 30,
"item_spacing": 8,
"padding": {
+ "top": 1,
+ "bottom": 1,
"left": 6,
"right": 6
},
@@ -233,25 +191,154 @@
"color": "#5e6687",
"size": 14
},
- "diagnostic_message": {
+ "auto_update_progress_message": {
"family": "Zed Sans",
"color": "#5e6687",
"size": 14
},
- "lsp_message": {
+ "auto_update_done_message": {
"family": "Zed Sans",
"color": "#5e6687",
"size": 14
},
- "auto_update_progress_message": {
- "family": "Zed Sans",
- "color": "#5e6687",
- "size": 14
+ "lsp_status": {
+ "icon_spacing": 4,
+ "icon_width": 14,
+ "height": 18,
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "message": {
+ "family": "Zed Sans",
+ "color": "#5e6687",
+ "size": 14
+ },
+ "icon_color": "#5e6687",
+ "hover": {
+ "message": {
+ "family": "Zed Sans",
+ "color": "#293256",
+ "size": 14
+ },
+ "icon_color": "#293256",
+ "background": "#979db41f"
+ }
},
- "auto_update_done_message": {
+ "diagnostic_message": {
"family": "Zed Sans",
"color": "#5e6687",
- "size": 14
+ "size": 14,
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#5e6687",
+ "size": 14
+ }
+ },
+ "diagnostic_summary": {
+ "height": 16,
+ "icon_width": 14,
+ "icon_spacing": 2,
+ "summary_spacing": 6,
+ "text": {
+ "family": "Zed Sans",
+ "color": "#293256",
+ "size": 14
+ },
+ "icon_color_ok": "#5e6687",
+ "icon_color_warning": "#c08b30",
+ "icon_color_error": "#c94922",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#979db41f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c08b3026",
+ "border": {
+ "color": "#c08b3026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9492226",
+ "border": {
+ "color": "#c9492226",
+ "width": 1
+ }
+ },
+ "hover": {
+ "icon_color_ok": "#293256",
+ "container_ok": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#979db41f"
+ },
+ "container_warning": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c08b3033",
+ "border": {
+ "color": "#c08b3026",
+ "width": 1
+ }
+ },
+ "container_error": {
+ "corner_radius": 6,
+ "padding": {
+ "left": 6,
+ "right": 6
+ },
+ "background": "#c9492233",
+ "border": {
+ "color": "#c9492226",
+ "width": 1
+ }
+ }
+ }
+ },
+ "sidebar_buttons": {
+ "group_left": {},
+ "group_right": {},
+ "item": {
+ "icon_size": 14,
+ "padding": {
+ "top": 3,
+ "bottom": 3,
+ "left": 6,
+ "right": 6
+ },
+ "corner_radius": 6,
+ "icon_color": "#5e6687",
+ "hover": {
+ "icon_color": "#293256",
+ "background": "#979db41f"
+ },
+ "active": {
+ "icon_color": "#202746",
+ "background": "#979db42e"
+ }
+ }
}
},
"titlebar": {
@@ -283,9 +370,6 @@
"bottom": true
},
"sign_in_prompt": {
- "family": "Zed Sans",
- "color": "#5e6687",
- "size": 12,
"border": {
"color": "#f5f7ff",
"width": 1
@@ -298,24 +382,14 @@
"padding": {
"left": 6,
"right": 6
- }
- },
- "hovered_sign_in_prompt": {
+ },
"family": "Zed Sans",
- "color": "#202746",
+ "color": "#5e6687",
"size": 12,
- "border": {
- "color": "#f5f7ff",
- "width": 1
- },
- "corner_radius": 6,
- "margin": {
- "top": 1,
- "right": 6
- },
- "padding": {
- "left": 6,
- "right": 6
+ "hover": {
+ "family": "Zed Sans",
+ "color": "#202746",
+ "size": 12
}
},
"offline_icon": {
@@ -326,39 +400,24 @@
}
},
"share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
- },
"corner_radius": 6,
- "color": "#5e6687"
- },
- "hovered_share_icon": {
"margin": {
"top": 3,
"bottom": 2
},
- "corner_radius": 6,
- "background": "#979db41f",
- "color": "#5e6687"
- },
- "hovered_active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "color": "#5e6687",
+ "hover": {
+ "background": "#979db41f",
+ "color": "#5e6687"
},
- "corner_radius": 6,
- "background": "#979db41f",
- "color": "#202746"
- },
- "active_share_icon": {
- "margin": {
- "top": 3,
- "bottom": 2
+ "active": {
+ "background": "#979db42e",
+ "color": "#202746"
},
- "corner_radius": 6,
- "background": "#979db42e",
- "color": "#202746"
+ "active_hover": {
+ "background": "#979db41f",
+ "color": "#202746"
+ }
},
"outdated_warning": {
"family": "Zed Sans",
@@ -405,8 +464,8 @@
"background": "#f5f7ff",
"active_line_background": "#20274612",
"code_actions_indicator": "#5e6687",
- "diff_background_deleted": "#c94922",
- "diff_background_inserted": "#ac9739",
+ "diff_background_deleted": "#c9492226",
+ "diff_background_inserted": "#ac973926",
"document_highlight_read_background": "#f5f7ff1f",
"document_highlight_write_background": "#f5f7ff29",
"error_color": "#c94922",
@@ -816,21 +875,14 @@
}
},
"project_diagnostics": {
+ "background": "#f5f7ff",
"tab_icon_spacing": 4,
"tab_icon_width": 13,
"tab_summary_spacing": 10,
"empty_message": {
- "family": "Zed Sans",
- "color": "#293256",
- "size": 18
- },
- "status_bar_item": {
"family": "Zed Sans",
"color": "#5e6687",
- "size": 14,
- "margin": {
- "right": 10
- }
+ "size": 16
}
},
"command_palette": {
@@ -1372,7 +1424,7 @@
"size": 14
},
"border": {
- "color": "#c94922",
+ "color": "#c9492226",
"width": 1
},
"margin": {
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs
index c15c20c775e05b8b91e2302849ba2c6be7fd6e59..eb8fae2ab2c106892aafb39ca70202f4adb4948e 100644
--- a/crates/diagnostics/src/diagnostics.rs
+++ b/crates/diagnostics/src/diagnostics.rs
@@ -35,6 +35,7 @@ const CONTEXT_LINE_COUNT: u32 = 1;
pub fn init(cx: &mut MutableAppContext) {
cx.add_action(ProjectDiagnosticsEditor::deploy);
+ items::init(cx);
}
type Event = editor::Event;
diff --git a/crates/diagnostics/src/items.rs b/crates/diagnostics/src/items.rs
index 2f9a228256f4f91993698a54ac4382b82498c629..06b14698cd8febe090aa6dedaf031d1d3254a767 100644
--- a/crates/diagnostics/src/items.rs
+++ b/crates/diagnostics/src/items.rs
@@ -1,30 +1,38 @@
-use crate::render_summary;
+use editor::{Editor, GoToNextDiagnostic};
use gpui::{
- elements::*, platform::CursorStyle, serde_json, Entity, ModelHandle, RenderContext, View,
- ViewContext,
+ elements::*, platform::CursorStyle, serde_json, Entity, ModelHandle, MutableAppContext,
+ RenderContext, Subscription, View, ViewContext, ViewHandle, WeakViewHandle,
};
+use language::Diagnostic;
use project::Project;
use settings::Settings;
use workspace::StatusItemView;
-pub struct DiagnosticSummary {
+pub struct DiagnosticIndicator {
summary: project::DiagnosticSummary,
- in_progress: bool,
+ active_editor: Option>,
+ current_diagnostic: Option,
+ check_in_progress: bool,
+ _observe_active_editor: Option,
}
-impl DiagnosticSummary {
+pub fn init(cx: &mut MutableAppContext) {
+ cx.add_action(DiagnosticIndicator::go_to_next_diagnostic);
+}
+
+impl DiagnosticIndicator {
pub fn new(project: &ModelHandle, cx: &mut ViewContext) -> Self {
cx.subscribe(project, |this, project, event, cx| match event {
project::Event::DiskBasedDiagnosticsUpdated => {
cx.notify();
}
project::Event::DiskBasedDiagnosticsStarted => {
- this.in_progress = true;
+ this.check_in_progress = true;
cx.notify();
}
project::Event::DiskBasedDiagnosticsFinished => {
this.summary = project.read(cx).diagnostic_summary(cx);
- this.in_progress = false;
+ this.check_in_progress = false;
cx.notify();
}
_ => {}
@@ -32,41 +40,174 @@ impl DiagnosticSummary {
.detach();
Self {
summary: project.read(cx).diagnostic_summary(cx),
- in_progress: project.read(cx).is_running_disk_based_diagnostics(),
+ check_in_progress: project.read(cx).is_running_disk_based_diagnostics(),
+ active_editor: None,
+ current_diagnostic: None,
+ _observe_active_editor: None,
+ }
+ }
+
+ fn go_to_next_diagnostic(&mut self, _: &GoToNextDiagnostic, cx: &mut ViewContext) {
+ if let Some(editor) = self.active_editor.as_ref().and_then(|e| e.upgrade(cx)) {
+ editor.update(cx, |editor, cx| {
+ editor.go_to_diagnostic(editor::Direction::Next, cx);
+ })
+ }
+ }
+
+ fn update(&mut self, editor: ViewHandle, cx: &mut ViewContext) {
+ let editor = editor.read(cx);
+ let buffer = editor.buffer().read(cx);
+ let cursor_position = editor
+ .newest_selection_with_snapshot::(&buffer.read(cx))
+ .head();
+ let new_diagnostic = buffer
+ .read(cx)
+ .diagnostics_in_range::<_, usize>(cursor_position..cursor_position, false)
+ .filter(|entry| !entry.range.is_empty())
+ .min_by_key(|entry| (entry.diagnostic.severity, entry.range.len()))
+ .map(|entry| entry.diagnostic);
+ if new_diagnostic != self.current_diagnostic {
+ self.current_diagnostic = new_diagnostic;
+ cx.notify();
}
}
}
-impl Entity for DiagnosticSummary {
+impl Entity for DiagnosticIndicator {
type Event = ();
}
-impl View for DiagnosticSummary {
+impl View for DiagnosticIndicator {
fn ui_name() -> &'static str {
- "DiagnosticSummary"
+ "DiagnosticIndicator"
}
fn render(&mut self, cx: &mut RenderContext) -> ElementBox {
- enum Tag {}
+ enum Summary {}
+ enum Message {}
+
+ let in_progress = self.check_in_progress;
+ let mut element = Flex::row().with_child(
+ MouseEventHandler::new::(0, cx, |state, cx| {
+ let style = &cx
+ .global::()
+ .theme
+ .workspace
+ .status_bar
+ .diagnostic_summary;
+ let style = if state.hovered {
+ style.hover()
+ } else {
+ &style.default
+ };
+
+ let mut summary_row = Flex::row();
+ if self.summary.error_count > 0 {
+ summary_row.add_children([
+ Svg::new("icons/error-solid-14.svg")
+ .with_color(style.icon_color_error)
+ .constrained()
+ .with_width(style.icon_width)
+ .aligned()
+ .contained()
+ .with_margin_right(style.icon_spacing)
+ .named("error-icon"),
+ Label::new(self.summary.error_count.to_string(), style.text.clone())
+ .aligned()
+ .boxed(),
+ ]);
+ }
- let in_progress = self.in_progress;
- MouseEventHandler::new::(0, cx, |_, cx| {
- let theme = &cx.global::().theme.project_diagnostics;
- if in_progress {
+ if self.summary.warning_count > 0 {
+ summary_row.add_children([
+ Svg::new("icons/warning-solid-14.svg")
+ .with_color(style.icon_color_warning)
+ .constrained()
+ .with_width(style.icon_width)
+ .aligned()
+ .contained()
+ .with_margin_right(style.icon_spacing)
+ .with_margin_left(if self.summary.error_count > 0 {
+ style.summary_spacing
+ } else {
+ 0.
+ })
+ .named("warning-icon"),
+ Label::new(self.summary.warning_count.to_string(), style.text.clone())
+ .aligned()
+ .boxed(),
+ ]);
+ }
+
+ if self.summary.error_count == 0 && self.summary.warning_count == 0 {
+ summary_row.add_child(
+ Svg::new("icons/no-error-solid-14.svg")
+ .with_color(style.icon_color_ok)
+ .constrained()
+ .with_width(style.icon_width)
+ .aligned()
+ .named("ok-icon"),
+ );
+ }
+
+ summary_row
+ .constrained()
+ .with_height(style.height)
+ .contained()
+ .with_style(if self.summary.error_count > 0 {
+ style.container_error
+ } else if self.summary.warning_count > 0 {
+ style.container_warning
+ } else {
+ style.container_ok
+ })
+ .boxed()
+ })
+ .with_cursor_style(CursorStyle::PointingHand)
+ .on_click(|cx| cx.dispatch_action(crate::Deploy))
+ .aligned()
+ .boxed(),
+ );
+
+ let style = &cx.global::().theme.workspace.status_bar;
+ let item_spacing = style.item_spacing;
+
+ if in_progress {
+ element.add_child(
Label::new(
- "Checking... ".to_string(),
- theme.status_bar_item.text.clone(),
+ "checking…".into(),
+ style.diagnostic_message.default.text.clone(),
)
+ .aligned()
.contained()
- .with_style(theme.status_bar_item.container)
- .boxed()
- } else {
- render_summary(&self.summary, &theme.status_bar_item.text, &theme)
- }
- })
- .with_cursor_style(CursorStyle::PointingHand)
- .on_click(|cx| cx.dispatch_action(crate::Deploy))
- .boxed()
+ .with_margin_left(item_spacing)
+ .boxed(),
+ );
+ } else if let Some(diagnostic) = &self.current_diagnostic {
+ let message_style = style.diagnostic_message.clone();
+ element.add_child(
+ MouseEventHandler::new::(1, cx, |state, _| {
+ Label::new(
+ diagnostic.message.split('\n').next().unwrap().to_string(),
+ if state.hovered {
+ message_style.hover().text.clone()
+ } else {
+ message_style.default.text.clone()
+ },
+ )
+ .aligned()
+ .contained()
+ .with_margin_left(item_spacing)
+ .boxed()
+ })
+ .with_cursor_style(CursorStyle::PointingHand)
+ .on_click(|cx| cx.dispatch_action(GoToNextDiagnostic))
+ .boxed(),
+ );
+ }
+
+ element.named("diagnostic indicator")
}
fn debug_json(&self, _: &gpui::AppContext) -> serde_json::Value {
@@ -74,11 +215,21 @@ impl View for DiagnosticSummary {
}
}
-impl StatusItemView for DiagnosticSummary {
+impl StatusItemView for DiagnosticIndicator {
fn set_active_pane_item(
&mut self,
- _: Option<&dyn workspace::ItemHandle>,
- _: &mut ViewContext,
+ active_pane_item: Option<&dyn workspace::ItemHandle>,
+ cx: &mut ViewContext,
) {
+ if let Some(editor) = active_pane_item.and_then(|item| item.downcast::()) {
+ self.active_editor = Some(editor.downgrade());
+ self._observe_active_editor = Some(cx.observe(&editor, Self::update));
+ self.update(editor, cx);
+ } else {
+ self.active_editor = None;
+ self.current_diagnostic = None;
+ self._observe_active_editor = None;
+ }
+ cx.notify();
}
}
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rs
index f9cb36044d1cdbec15cd4272ef612c76ee6067aa..72c03b8365ec290ac05517a7a32c8be68c90e5ea 100644
--- a/crates/editor/src/items.rs
+++ b/crates/editor/src/items.rs
@@ -5,7 +5,7 @@ use gpui::{
elements::*, geometry::vector::vec2f, AppContext, Entity, ModelHandle, MutableAppContext,
RenderContext, Subscription, Task, View, ViewContext, ViewHandle,
};
-use language::{Bias, Buffer, Diagnostic, File as _, SelectionGoal};
+use language::{Bias, Buffer, File as _, SelectionGoal};
use project::{File, Project, ProjectEntryId, ProjectPath};
use rpc::proto::{self, update_view};
use settings::Settings;
@@ -507,75 +507,3 @@ impl StatusItemView for CursorPosition {
cx.notify();
}
}
-
-pub struct DiagnosticMessage {
- diagnostic: Option,
- _observe_active_editor: Option,
-}
-
-impl DiagnosticMessage {
- pub fn new() -> Self {
- Self {
- diagnostic: None,
- _observe_active_editor: None,
- }
- }
-
- fn update(&mut self, editor: ViewHandle, cx: &mut ViewContext) {
- let editor = editor.read(cx);
- let buffer = editor.buffer().read(cx);
- let cursor_position = editor
- .newest_selection_with_snapshot::(&buffer.read(cx))
- .head();
- let new_diagnostic = buffer
- .read(cx)
- .diagnostics_in_range::<_, usize>(cursor_position..cursor_position, false)
- .filter(|entry| !entry.range.is_empty())
- .min_by_key(|entry| (entry.diagnostic.severity, entry.range.len()))
- .map(|entry| entry.diagnostic);
- if new_diagnostic != self.diagnostic {
- self.diagnostic = new_diagnostic;
- cx.notify();
- }
- }
-}
-
-impl Entity for DiagnosticMessage {
- type Event = ();
-}
-
-impl View for DiagnosticMessage {
- fn ui_name() -> &'static str {
- "DiagnosticMessage"
- }
-
- fn render(&mut self, cx: &mut RenderContext) -> ElementBox {
- if let Some(diagnostic) = &self.diagnostic {
- let theme = &cx.global::().theme.workspace.status_bar;
- Label::new(
- diagnostic.message.split('\n').next().unwrap().to_string(),
- theme.diagnostic_message.clone(),
- )
- .boxed()
- } else {
- Empty::new().boxed()
- }
- }
-}
-
-impl StatusItemView for DiagnosticMessage {
- fn set_active_pane_item(
- &mut self,
- active_pane_item: Option<&dyn ItemHandle>,
- cx: &mut ViewContext,
- ) {
- if let Some(editor) = active_pane_item.and_then(|item| item.downcast::()) {
- self._observe_active_editor = Some(cx.observe(&editor, Self::update));
- self.update(editor, cx);
- } else {
- self.diagnostic = Default::default();
- self._observe_active_editor = None;
- }
- cx.notify();
- }
-}
diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs
index b4533298ac1ca732f90dbde1e74556ded3c8bd17..3fb31d78b189cb7b1ebb64d58c3623b29d611dba 100644
--- a/crates/theme/src/theme.rs
+++ b/crates/theme/src/theme.rs
@@ -6,7 +6,8 @@ use gpui::{
fonts::{HighlightStyle, TextStyle},
Border,
};
-use serde::Deserialize;
+use serde::{de::DeserializeOwned, Deserialize};
+use serde_json::Value;
use std::{collections::HashMap, sync::Arc};
pub use theme_registry::*;
@@ -38,8 +39,7 @@ pub struct Workspace {
pub pane_divider: Border,
pub leader_border_opacity: f32,
pub leader_border_width: f32,
- pub left_sidebar: Sidebar,
- pub right_sidebar: Sidebar,
+ pub sidebar_resize_handle: ContainerStyle,
pub status_bar: StatusBar,
pub toolbar: Toolbar,
pub disconnected_overlay: ContainedText,
@@ -55,13 +55,9 @@ pub struct Titlebar {
pub avatar_width: f32,
pub avatar_ribbon: AvatarRibbon,
pub offline_icon: OfflineIcon,
- pub share_icon: ShareIcon,
- pub hovered_share_icon: ShareIcon,
- pub active_share_icon: ShareIcon,
- pub hovered_active_share_icon: ShareIcon,
+ pub share_icon: Interactive,
pub avatar: ImageStyle,
- pub sign_in_prompt: ContainedText,
- pub hovered_sign_in_prompt: ContainedText,
+ pub sign_in_prompt: Interactive,
pub outdated_warning: ContainedText,
}
@@ -138,33 +134,64 @@ pub struct FindEditor {
}
#[derive(Deserialize, Default)]
-pub struct Sidebar {
+pub struct StatusBar {
#[serde(flatten)]
pub container: ContainerStyle,
- pub width: f32,
- pub item: SidebarItem,
- pub active_item: SidebarItem,
- pub resize_handle: ContainerStyle,
+ pub height: f32,
+ pub item_spacing: f32,
+ pub cursor_position: TextStyle,
+ pub auto_update_progress_message: TextStyle,
+ pub auto_update_done_message: TextStyle,
+ pub lsp_status: Interactive,
+ pub sidebar_buttons: StatusBarSidebarButtons,
+ pub diagnostic_summary: Interactive,
+ pub diagnostic_message: Interactive,
}
#[derive(Deserialize, Default)]
-pub struct SidebarItem {
- pub icon_color: Color,
- pub icon_size: f32,
+pub struct StatusBarSidebarButtons {
+ pub group_left: ContainerStyle,
+ pub group_right: ContainerStyle,
+ pub item: Interactive,
+}
+
+#[derive(Deserialize, Default)]
+pub struct StatusBarDiagnosticSummary {
+ pub container_ok: ContainerStyle,
+ pub container_warning: ContainerStyle,
+ pub container_error: ContainerStyle,
+ pub text: TextStyle,
+ pub icon_color_ok: Color,
+ pub icon_color_warning: Color,
+ pub icon_color_error: Color,
pub height: f32,
+ pub icon_width: f32,
+ pub icon_spacing: f32,
+ pub summary_spacing: f32,
}
#[derive(Deserialize, Default)]
-pub struct StatusBar {
+pub struct StatusBarLspStatus {
#[serde(flatten)]
pub container: ContainerStyle,
pub height: f32,
- pub item_spacing: f32,
- pub cursor_position: TextStyle,
- pub diagnostic_message: TextStyle,
- pub lsp_message: TextStyle,
- pub auto_update_progress_message: TextStyle,
- pub auto_update_done_message: TextStyle,
+ pub icon_spacing: f32,
+ pub icon_color: Color,
+ pub icon_width: f32,
+ pub message: TextStyle,
+}
+
+#[derive(Deserialize, Default)]
+pub struct Sidebar {
+ pub resize_handle: ContainerStyle,
+}
+
+#[derive(Clone, Copy, Deserialize, Default)]
+pub struct SidebarItem {
+ #[serde(flatten)]
+ pub container: ContainerStyle,
+ pub icon_color: Color,
+ pub icon_size: f32,
}
#[derive(Deserialize, Default)]
@@ -291,7 +318,6 @@ pub struct ProjectDiagnostics {
#[serde(flatten)]
pub container: ContainerStyle,
pub empty_message: TextStyle,
- pub status_bar_item: ContainedText,
pub tab_icon_width: f32,
pub tab_icon_spacing: f32,
pub tab_summary_spacing: f32,
@@ -384,6 +410,77 @@ pub struct FieldEditor {
pub selection: SelectionStyle,
}
+#[derive(Default, Clone, Copy)]
+pub struct Interactive {
+ pub default: T,
+ pub hover: Option,
+ pub active: Option,
+ pub active_hover: Option,
+}
+
+impl Interactive {
+ pub fn active(&self) -> &T {
+ self.active.as_ref().unwrap_or(&self.default)
+ }
+
+ pub fn hover(&self) -> &T {
+ self.hover.as_ref().unwrap_or(&self.default)
+ }
+
+ pub fn active_hover(&self) -> &T {
+ self.active_hover.as_ref().unwrap_or(self.active())
+ }
+}
+
+impl<'de, T: DeserializeOwned> Deserialize<'de> for Interactive {
+ fn deserialize(deserializer: D) -> Result
+ where
+ D: serde::Deserializer<'de>,
+ {
+ #[derive(Deserialize)]
+ struct Helper {
+ #[serde(flatten)]
+ default: Value,
+ hover: Option,
+ active: Option,
+ active_hover: Option,
+ }
+
+ let json = Helper::deserialize(deserializer)?;
+
+ let deserialize_state = |state_json: Option| -> Result