Linux: Fix some crashes from new functions having unimplemented!() (#7567)

h3mosphere created

Release Notes:

- N/A

Change summary

crates/gpui/src/platform/linux/platform.rs | 4 ++--
crates/gpui/src/platform/linux/window.rs   | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

crates/gpui/src/platform/linux/platform.rs 🔗

@@ -346,7 +346,7 @@ impl Platform for LinuxPlatform {
 
     //todo!(linux)
     fn should_auto_hide_scrollbars(&self) -> bool {
-        unimplemented!()
+        false
     }
 
     //todo!(linux)
@@ -370,7 +370,7 @@ impl Platform for LinuxPlatform {
     }
 
     fn window_appearance(&self) -> crate::WindowAppearance {
-        unimplemented!()
+        crate::WindowAppearance::Light
     }
 }
 

crates/gpui/src/platform/linux/window.rs 🔗

@@ -294,7 +294,7 @@ impl PlatformWindow for LinuxWindow {
 
     //todo!(linux)
     fn appearance(&self) -> WindowAppearance {
-        unimplemented!()
+        WindowAppearance::Light
     }
 
     fn display(&self) -> Rc<dyn PlatformDisplay> {