MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / apply_to

Method apply_to

src/theme/mod.rs:32–36  ·  view source on GitHub ↗
(&self, component: &mut dyn Component)

Source from the content-addressed store, hash-verified

30 }
31
32 pub fn apply_to(&self, component: &mut dyn Component) {
33 if let Some(style) = self.styles.get("default") {
34 component.apply_style(style.clone());
35 }
36 }
37}
38
39pub fn create_dark_theme() -> Theme {

Callers

nothing calls this directly

Calls 1

apply_styleMethod · 0.45

Tested by

no test coverage detected