Skip to main content

set_light_dark

Function set_light_dark 

Source
pub fn set_light_dark(light: impl Into<String>, dark: impl Into<String>)
Expand description

Designates which two registered modes form the light/dark pair. A thin, optional convention over the open mode registry: it does not replace named modes (a third mode like "pastel" stays valid) — it only tells is_dark/set_dark/toggle_dark which ids to flip between. Both ids should also be registered via register_mode. Does not itself change the active mode.