v0.6.12 — Application icon and desktop metadata
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.
This commit is contained in:
parent
a28451762c
commit
f0267f5493
13 changed files with 622 additions and 5 deletions
|
|
@ -10,9 +10,15 @@ 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(ui::create_windows);
|
||||
application.connect_activate(|app| {
|
||||
gtk::Window::set_default_icon_name("at.criticalcare.SimPaM");
|
||||
ui::create_windows(app);
|
||||
});
|
||||
application.run()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue