28 lines
765 B
Rust
28 lines
765 B
Rust
use adw::prelude::*;
|
|
use gtk::glib;
|
|
|
|
mod bus;
|
|
mod error;
|
|
|
|
const APP_ID: &str = "io.dangerousthings.AuthForge";
|
|
|
|
fn main() -> glib::ExitCode {
|
|
let app = adw::Application::builder().application_id(APP_ID).build();
|
|
app.connect_activate(|app| {
|
|
let status = adw::StatusPage::builder()
|
|
.icon_name("dialog-password-symbolic")
|
|
.title("Authentication setup")
|
|
.description("Phase 0 placeholder. Real UI in Phase 8.")
|
|
.build();
|
|
let win = adw::ApplicationWindow::builder()
|
|
.application(app)
|
|
.default_width(720)
|
|
.default_height(540)
|
|
.title("Authentication")
|
|
.content(&status)
|
|
.build();
|
|
win.present();
|
|
});
|
|
app.run()
|
|
}
|