Add never option to scrollbar settings
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user