Added the supplied CCCA SVG as a square, scalable application icon. GTK embeds it for local Cargo launches, and Flatpak assets include a matching desktop entry and AppStream metadata under `at.criticalcare.SimPaM`. Added a small Flatpak asset installer and packaging instructions; the physiological simulation and audio backend are unchanged.
24 lines
651 B
Rust
24 lines
651 B
Rust
mod actions;
|
|
mod audio_backend;
|
|
mod alarm;
|
|
mod model;
|
|
mod nibp;
|
|
mod render;
|
|
mod simulation;
|
|
mod ui;
|
|
|
|
use gtk::prelude::*;
|
|
|
|
fn main() -> gtk::glib::ExitCode {
|
|
// GTK finds the icon for Cargo launches without a system-wide install.
|
|
gtk::gio::resources_register_include!("simpam.gresource")
|
|
.expect("failed to register SimPaM icon resources");
|
|
let application = gtk::Application::builder()
|
|
.application_id("at.criticalcare.SimPaM")
|
|
.build();
|
|
application.connect_activate(|app| {
|
|
gtk::Window::set_default_icon_name("at.criticalcare.SimPaM");
|
|
ui::create_windows(app);
|
|
});
|
|
application.run()
|
|
}
|