egui_charts/ui/dialogs/alert_dialog/config.rs
1//! Configuration for the alert creation dialog.
2
3use crate::tokens::DESIGN_TOKENS;
4
5/// Configuration for the alert dialog
6#[derive(Clone, Debug)]
7pub struct AlertDialogConfig {
8 /// Dialog width
9 pub width: f32,
10 /// Maximum scrolling body height
11 pub height: f32,
12}
13
14impl Default for AlertDialogConfig {
15 fn default() -> Self {
16 Self {
17 width: DESIGN_TOKENS.sizing.dialog.alert_width,
18 height: 580.0,
19 }
20 }
21}