mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
update docs
This commit is contained in:
@@ -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.
|
/// - **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".
|
/// 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.
|
/// - **iOS / Android / Web / x11:** Ignored.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn with_theme(mut self, theme: Option<Theme>) -> Self {
|
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.
|
/// - **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.
|
/// 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.
|
/// - **iOS / Android / Web / x11:** Unsupported.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_theme(&self, theme: Theme) {
|
pub fn set_theme(&self, theme: Theme) {
|
||||||
|
|||||||
Reference in New Issue
Block a user