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"
// 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,

View File

@ -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 = editor

View File

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