update docs

This commit is contained in:
amrbashir
2022-11-12 14:31:23 +02:00
parent 3fea5355d6
commit 5831e9dc4d

View File

@@ -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<Theme>) -> 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) {