pub fn watch_system_theme() -> Subscription<String>Expand description
Create a subscription that monitors system theme changes.
This is a re-export from dampen_iced for backward compatibility.
New code should use dampen_iced::watch_system_theme() directly, as it
is available in both debug and release builds without the dampen-dev dependency.
Uses Iced’s built-in system theme detection via iced::system::theme_changes(),
which leverages winit’s native theme detection.
§Returns
A subscription that yields "light" or "dark" strings when the system theme changes.
§Example
use dampen_dev::subscription::watch_system_theme;
let subscription = watch_system_theme();
// Maps to your message type, e.g.: subscription.map(Message::SystemThemeChanged)