diff --git a/src/window.rs b/src/window.rs index ebfbb2316..d8e8eed5e 100644 --- a/src/window.rs +++ b/src/window.rs @@ -347,6 +347,7 @@ impl WindowBuilder { /// /// - **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". + /// - **x11:** Build window with `_GTK_THEME_VARIANT` hint set to `dark` or `light`. /// - **iOS / Android / Web / x11:** Ignored. #[inline] pub fn with_theme(mut self, theme: Option) -> Self { @@ -949,7 +950,7 @@ impl Window { /// /// - **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. - /// + /// -**x11:** Sets `_GTK_THEME_VARIANT` hint to `dark` or `light`. /// - **iOS / Android / Web / x11:** Unsupported. #[inline] pub fn set_theme(&self, theme: Theme) {