Fix Window::set_theme doc string

Fix #2814.
This commit is contained in:
Nicola Papale 2023-05-30 11:22:19 +02:00 committed by GitHub
parent 035eebb19a
commit 8f959714cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<Theme>) {
self.window.set_theme(theme)