From 789a4979801cffc20c9dfbc34e72c15ebf3c737c Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 10 Oct 2023 09:23:37 +0400 Subject: [PATCH] Remove obsolete docs about wayland CSD env variable The env variable was removed a while ago, yet it was still present in the user docs. --- src/window.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/window.rs b/src/window.rs index 9d5b4382..794d9e6c 100644 --- a/src/window.rs +++ b/src/window.rs @@ -406,8 +406,8 @@ impl WindowBuilder { /// ## Platform-specific /// /// - **macOS:** This is an app-wide setting. - /// - **Wayland:** This control only CSD. You can also use `WINIT_WAYLAND_CSD_THEME` env variable to set the theme. - /// Possible values for env variable are: "dark" and "light". + /// - **Wayland:** This controls only CSD. When using `None` it'll try to use dbus to get the + /// system preference. When explicit theme is used, this will avoid dbus all together. /// - **x11:** Build window with `_GTK_THEME_VARIANT` hint set to `dark` or `light`. /// - **iOS / Android / Web / x11 / Orbital:** Ignored. #[inline] @@ -1270,8 +1270,8 @@ impl Window { /// ## Platform-specific /// /// - **macOS:** This is an app-wide setting. - /// - **Wayland:** You can also use `WINIT_WAYLAND_CSD_THEME` env variable to set the theme. - /// Possible values for env variable are: "dark" and "light". When unspecified, a theme is automatically selected. + /// - **Wayland:** Sets the theme for the client side decorations. Using `None` will use dbus + /// to get the system preference. /// - **X11:** Sets `_GTK_THEME_VARIANT` hint to `dark` or `light` and if `None` is used, it will default to [`Theme::Dark`]. /// - **iOS / Android / Web / Orbital:** Unsupported. #[inline]