mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
parent
035eebb19a
commit
8f959714cc
1 changed files with 3 additions and 3 deletions
|
@ -1130,8 +1130,8 @@ 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue