MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / annotation_style

Function annotation_style

examples/plot_overlays.rs:214–224  ·  view source on GitHub ↗
(theme: &Theme)

Source from the content-addressed store, hash-verified

212}
213
214fn annotation_style(theme: &Theme) -> container::Style {
215 let palette = theme.extended_palette();
216 container::Style {
217 background: Some(palette.primary.weak.color.scale_alpha(0.3).into()),
218 text_color: Some(palette.primary.weak.text),
219 border: border::rounded(4)
220 .width(1)
221 .color(palette.primary.strong.color),
222 ..container::Style::default()
223 }
224}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected