From 144f38a115e4fc869445dee4704bdd3d126153d7 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Thu, 2 Oct 2025 23:09:54 +0200 Subject: feat: update according to latest iced and iced_material changes --- src/dialog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dialog.rs') diff --git a/src/dialog.rs b/src/dialog.rs index c5e008c..2aefb50 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -1,6 +1,6 @@ use std::borrow::Cow; -use iced::widget::{Space, text}; +use iced::widget::{space, text}; use iced_dialog::button; use iced_material::button::filled_tonal; @@ -34,7 +34,7 @@ impl From for Vec> { Action::Close => vec![button("Close", Message::DialogYes).into()], Action::UnsavedChanges(_) => vec![ button("Don't Save", Message::DialogNo).style(danger).into(), - Space::with_width(20).into(), + space().width(20).into(), button("Save", Message::DialogYes) .style(filled_tonal) .into(), -- cgit v1.2.3