(anchor: egui_notify::Anchor)
| 190 | } |
| 191 | |
| 192 | pub fn create_toasts(anchor: egui_notify::Anchor) -> egui_notify::Toasts { |
| 193 | egui_notify::Toasts::default() |
| 194 | .with_anchor(anchor) |
| 195 | .with_margin(egui::vec2(10.0, 32.0)) |
| 196 | .with_shadow(egui::Shadow { |
| 197 | offset: [0, 0], |
| 198 | blur: 0, |
| 199 | spread: 1, |
| 200 | color: egui::Color32::GRAY, |
| 201 | }) |
| 202 | } |
| 203 | |
| 204 | #[derive(Clone, serde::Deserialize, serde::Serialize)] |
| 205 | pub struct AppConfig { |