Fix GUI placeholder: drop ToolbarView (libadwaita-rs 0.6 feature-gate)
This commit is contained in:
@@ -6,22 +6,18 @@ const APP_ID: &str = "io.dangerousthings.UbuntuFido";
|
||||
fn main() -> glib::ExitCode {
|
||||
let app = adw::Application::builder().application_id(APP_ID).build();
|
||||
app.connect_activate(|app| {
|
||||
let win = adw::ApplicationWindow::builder()
|
||||
.application(app)
|
||||
.default_width(720)
|
||||
.default_height(540)
|
||||
.title("Authentication")
|
||||
.build();
|
||||
let header = adw::HeaderBar::new();
|
||||
let toolbar = adw::ToolbarView::new();
|
||||
toolbar.add_top_bar(&header);
|
||||
let status = adw::StatusPage::builder()
|
||||
.icon_name("dialog-password-symbolic")
|
||||
.title("Authentication setup")
|
||||
.description("Phase 0 placeholder. Real UI in Phase 8.")
|
||||
.build();
|
||||
toolbar.set_content(Some(&status));
|
||||
win.set_content(Some(&toolbar));
|
||||
let win = adw::ApplicationWindow::builder()
|
||||
.application(app)
|
||||
.default_width(720)
|
||||
.default_height(540)
|
||||
.title("Authentication")
|
||||
.content(&status)
|
||||
.build();
|
||||
win.present();
|
||||
});
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user