From 8f959714cc9ee006399991db4d93f3db84930f61 Mon Sep 17 00:00:00 2001 From: Nicola Papale Date: Tue, 30 May 2023 11:22:19 +0200 Subject: [PATCH] Fix `Window::set_theme` doc string Fix #2814. --- src/window.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.rs b/src/window.rs index 36d9586e..f7694bae 100644 --- a/src/window.rs +++ b/src/window.rs @@ -1129,9 +1129,9 @@ impl Window { /// /// - **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. - /// -**x11:** Sets `_GTK_THEME_VARIANT` hint to `dark` or `light` and if `None` is used, it will default to [`Theme::Dark`]. - /// - **iOS / Android / Web / x11 / Orbital:** Unsupported. + /// 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` and if `None` is used, it will default to [`Theme::Dark`]. + /// - **iOS / Android / Web / Orbital:** Unsupported. #[inline] pub fn set_theme(&self, theme: Option) { self.window.set_theme(theme)