Use sctk-adwaita 0.5.1 auto theme selection
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
parent
b3b80166ce
commit
e91ee811cb
3 changed files with 32 additions and 10 deletions
|
|
@ -212,6 +212,8 @@ pub trait WindowExtUnix {
|
|||
///
|
||||
/// 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.
|
||||
#[cfg(feature = "wayland")]
|
||||
fn wayland_set_csd_theme(&self, config: Theme);
|
||||
|
||||
|
|
@ -349,6 +351,8 @@ pub trait WindowBuilderExtUnix {
|
|||
///
|
||||
/// 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.
|
||||
#[cfg(feature = "wayland")]
|
||||
fn with_wayland_csd_theme(self, theme: Theme) -> Self;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue