Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add never option to scrollbar settings
Mikayla Makif4e99ecde4cd
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex 05e79ae9cc2..1395edca4ab 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -53,6 +53,8 @@// "system"// 3. Always show the scrollbar:// "always"+ // 4. Never show the scrollbar:+ // "never""show_scrollbars": "auto",// Whether the screen sharing icon is shown in the os status bar."show_call_status_icon": true,diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 755c3091cbd..e1e38f2e245 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2064,6 +2064,7 @@ impl Element<Editor> for EditorElement {}settings::ShowScrollbars::System => editor.scroll_manager.scrollbars_visible(),settings::ShowScrollbars::Always => true,+ settings::ShowScrollbars::Never => false,};let include_root = editordiff --git a/crates/settings/src/settings.rs b/crates/settings/src/settings.rsindex 284d2579a56..55598845c7b 100644--- a/crates/settings/src/settings.rs+++ b/crates/settings/src/settings.rs@@ -76,6 +76,7 @@ pub enum ShowScrollbars {Auto,System,Always,+ Never,}#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq, Default)]