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

Function region_style

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

Source from the content-addressed store, hash-verified

200}
201
202fn region_style(theme: &Theme) -> container::Style {
203 let palette = theme.extended_palette();
204 container::Style {
205 background: Some(Color::from_rgba(0.2, 0.8, 0.55, 0.14).into()),
206 text_color: Some(palette.background.base.text.scale_alpha(0.65)),
207 border: border::rounded(4)
208 .width(1)
209 .color(Color::from_rgba(0.2, 0.8, 0.55, 0.45)),
210 ..container::Style::default()
211 }
212}
213
214fn annotation_style(theme: &Theme) -> container::Style {
215 let palette = theme.extended_palette();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected