mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -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.
|
||||
/// 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) {
|
||||
|
||||
Reference in New Issue
Block a user