refactor: consistency in widget creation

This commit is contained in:
electria 2026-08-16 10:16:52 -07:00
commit 8589c0c666
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -79,7 +79,7 @@ impl State {
fn view(&self) -> Element<'_, Message, Theme, Renderer> {
widget::column([
widget::row([
widget::Canvas::new(&self.total_cpu_graph)
widget::canvas(&self.total_cpu_graph)
.width(Length::Fill)
.height(Length::Fill)
.into(),