feat(fn): add about dialogue window component

This commit is contained in:
doryan 2024-08-16 23:23:39 +04:00
parent 5f544f4fe5
commit bbe0f42bb1
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
use gio::{glib::Variant, SimpleAction};
use gtk4 as gtk;
use gtk::{prelude::GtkWindowExt, AboutDialog, Image};
use std::path::Path;
pub fn open_about_dialogue(_action: &SimpleAction, _var: Option<&Variant>) {
let logo = Image::from_file(Path::new("./src/view/resources/logo.png"))
.paintable()
.unwrap();
AboutDialog::builder()
.authors(vec!["Сагиев А.Д.", "Ефимов И.П."])
.version("1.0-beta")
.logo(&logo)
.website("https://gitea.doryan04.ru/doryan/AIT")
.build()
.present();
}

View File

@ -1,3 +1,4 @@
pub mod about;
pub mod info_bar;
pub mod input;
pub mod menu;