Skip to content

Commit

Permalink
Photo view can be dismissed
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Mar 28, 2024
1 parent 4f8fb33 commit efe4dfa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,20 @@ impl SimpleComponent for App {
adw::NavigationPage {
set_tag: Some("picture"),

gtk::Box {
set_orientation: gtk::Orientation::Vertical,
adw::ToolbarView {
add_top_bar = &adw::HeaderBar,

#[wrap(Some)]
set_content = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,

#[local_ref]
picture_view -> gtk::Picture {
set_can_shrink: true,
set_valign: gtk::Align::Center,
#[local_ref]
picture_view -> gtk::Picture {
set_can_shrink: true,
set_valign: gtk::Align::Center,
}
}
}
},
},
},
}
Expand Down

0 comments on commit efe4dfa

Please sign in to comment.