A minimal, self-contained library for creating simple GUI dialogs ("message boxes") on X11.
Alerta can be used by applications that want to display a simple GUI message box to the user,
but don't want to pull in an entire GUI framework or invoke an external command like zenity.
There is also a small CLI tool that wraps this library, available in the alerta-cli package.
Examples
use alerta::{Icon, ButtonPreset};
let answer = alerta::alerta()
.title("Dialog Title")
.message("This text will appear inside the dialog window.\n\nIt can contain multiple lines of text that will be soft-wrapped to fit in the window.")
.icon(Icon::Warning)
.button_preset(ButtonPreset::YesNoCancel)
.show()?;
println!("{answer:?}");
# Ok::<_, alerta::Error>(())