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

Method view

examples/themes_and_styles.rs:57–87  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 fn view(&self) -> Element<'_, Message> {
58 let toolbar = container(
59 column![
60 text("Application theme and plot style can be configured independently.")
61 .size(16.0),
62 row![
63 control(
64 "App theme",
65 ThemeChoice::ALL,
66 self.theme_choice,
67 Message::ThemeSelected
68 ),
69 control(
70 "Plot style",
71 StyleChoice::ALL,
72 self.style_choice,
73 Message::StyleSelected
74 ),
75 ]
76 .spacing(16.0),
77 ]
78 .spacing(10.0),
79 )
80 .padding(12.0)
81 .width(Length::Fill);
82
83 column![toolbar, self.widget.view().map(Message::Plot)]
84 .spacing(12.0)
85 .padding(12.0)
86 .into()
87 }
88
89 fn theme(&self) -> Theme {
90 self.theme_choice.theme()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected