From 5831e9dc4da37137c9526a78be9917decb78a8c6 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Sat, 12 Nov 2022 14:31:23 +0200 Subject: [PATCH] update docs --- src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {