Add never option to scrollbar settings

This commit is contained in:
Mikayla Maki 2023-05-17 14:19:35 -07:00
parent 6cf439e734
commit f4e99ecde4
No known key found for this signature in database
3 changed files with 4 additions and 0 deletions

View file

@ -53,6 +53,8 @@
// "system" // "system"
// 3. Always show the scrollbar: // 3. Always show the scrollbar:
// "always" // "always"
// 4. Never show the scrollbar:
// "never"
"show_scrollbars": "auto", "show_scrollbars": "auto",
// Whether the screen sharing icon is shown in the os status bar. // Whether the screen sharing icon is shown in the os status bar.
"show_call_status_icon": true, "show_call_status_icon": true,

View file

@ -2064,6 +2064,7 @@ impl Element<Editor> for EditorElement {
} }
settings::ShowScrollbars::System => editor.scroll_manager.scrollbars_visible(), settings::ShowScrollbars::System => editor.scroll_manager.scrollbars_visible(),
settings::ShowScrollbars::Always => true, settings::ShowScrollbars::Always => true,
settings::ShowScrollbars::Never => false,
}; };
let include_root = editor let include_root = editor

View file

@ -76,6 +76,7 @@ pub enum ShowScrollbars {
Auto, Auto,
System, System,
Always, Always,
Never,
} }
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq, Default)] #[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema, PartialEq, Eq, Default)]