pub trait ActiveEventLoopExtLinux {
// Required method
fn start_system_theme_monitor(&self);
}Required Methods§
Sourcefn start_system_theme_monitor(&self)
fn start_system_theme_monitor(&self)
Start following the system color-scheme (dark/light) via the XDG Desktop Portal.
While active, the event loop reports the current preference through
ActiveEventLoop::system_theme and emits
WindowEvent::ThemeChanged for
every window whenever it changes.
Call this once, only when the application wants to follow the system theme; the watcher then runs for the lifetime of the process.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ActiveEventLoopExtLinux for ActiveEventLoop
Available on
wayland_platform or x11_platform only.