mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
@@ -1129,9 +1129,9 @@ impl Window {
|
|||||||
///
|
///
|
||||||
/// - **macOS:** This is an app-wide setting.
|
/// - **macOS:** This is an app-wide setting.
|
||||||
/// - **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` and if `None` is used, it will default to [`Theme::Dark`].
|
/// - **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.
|
/// - **iOS / Android / Web / Orbital:** Unsupported.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_theme(&self, theme: Option<Theme>) {
|
pub fn set_theme(&self, theme: Option<Theme>) {
|
||||||
self.window.set_theme(theme)
|
self.window.set_theme(theme)
|
||||||
|
|||||||
Reference in New Issue
Block a user