From fb60f710e3410d092d0512b939d38571287ed2a4 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Thu, 18 Sep 2025 17:08:14 +0200 Subject: [PATCH] Make scrollbars auto-hide by default (#38340) With this, scrollbars across the app will now auto-hide unless it is specified that they should follow a specific setting. Optimally, we would just track the user preference by default. However, this is currently not possible. because the setting we would need to read lives in `editor` and we cannot read that from within the `ui` crate. Release Notes: - N/A --- crates/ui/src/components/scrollbar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/components/scrollbar.rs b/crates/ui/src/components/scrollbar.rs index 6885a11c51647aafbf1e3136060d52105e3664b7..f1d97fa455dded285b10033d721e5028bedbd35a 100644 --- a/crates/ui/src/components/scrollbar.rs +++ b/crates/ui/src/components/scrollbar.rs @@ -35,11 +35,11 @@ pub mod scrollbars { pub enum ShowScrollbar { /// Show the scrollbar if there's important information or /// follow the system's configured behavior. + #[default] Auto, /// Match the system's configured behavior. System, /// Always show the scrollbar. - #[default] Always, /// Never show the scrollbar. Never,