summaryrefslogtreecommitdiff
path: root/src/dialog.rs
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-10-02 23:09:54 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-10-02 23:09:54 +0200
commit144f38a115e4fc869445dee4704bdd3d126153d7 (patch)
treee4cbab34f183d89e719aa2b1e3b577241e4a8011 /src/dialog.rs
parentfix(rendered_element): `Row` and `Column` options being applied to `Container` (diff)
downloadiced-builder-144f38a115e4fc869445dee4704bdd3d126153d7.tar.gz
feat: update according to latest iced and iced_material changes
Diffstat (limited to 'src/dialog.rs')
-rw-r--r--src/dialog.rs4
1 files changed, 2 insertions, 2 deletions
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<Action> for Vec<Element<'_, Message>> {
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(),