Skip to content

Commit

Permalink
Fix view indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Apr 6, 2024
1 parent 23def83 commit 129441d
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,56 +267,56 @@ impl SimpleComponent for App {

#[local_ref]
main_stack -> gtk::Stack {
connect_visible_child_notify => AppMsg::SwitchView,

add_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,

#[local_ref]
library_view_stack -> adw::ViewStack {
add_titled_with_icon[Some("all"), "All", "playlist-infinite-symbolic"] = model.all_photos.widget(),
add_titled_with_icon[Some("month"), "Month", "month-symbolic"] = model.month_photos.widget(),
add_titled_with_icon[Some("year"), "Year", "year-symbolic"] = model.year_photos.widget(),
connect_visible_child_notify => AppMsg::SwitchView,

add_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,

#[local_ref]
library_view_stack -> adw::ViewStack {
add_titled_with_icon[Some("all"), "All", "playlist-infinite-symbolic"] = model.all_photos.widget(),
add_titled_with_icon[Some("month"), "Month", "month-symbolic"] = model.month_photos.widget(),
add_titled_with_icon[Some("year"), "Year", "year-symbolic"] = model.year_photos.widget(),
},

#[name(switcher_bar)]
adw::ViewSwitcherBar {
set_stack: Some(&library_view_stack),
},
} -> {
set_title: "Library",
set_name: "Library",

// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "image-alt-symbolic",
},

#[name(switcher_bar)]
adw::ViewSwitcherBar {
set_stack: Some(&library_view_stack),
add_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
container_add: model.selfie_photos.widget(),
} -> {
set_title: "Selfies",
set_name: "Selfies",
// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "sentiment-very-satisfied-symbolic",
},
} -> {
set_title: "Library",
set_name: "Library",

// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "image-alt-symbolic",
},

add_child = &gtk::Box {
set_orientation: gtk::Orientation::Vertical,
container_add: model.selfie_photos.widget(),
} -> {
set_title: "Selfies",
set_name: "Selfies",
// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "sentiment-very-satisfied-symbolic",
},

add_child = &adw::NavigationView {
set_pop_on_escape: true,

adw::NavigationPage {
//set_tag: Some("folders"),
//set_title: "Folder",
model.folder_photos.widget(),
add_child = &adw::NavigationView {
set_pop_on_escape: true,

adw::NavigationPage {
//set_tag: Some("folders"),
//set_title: "Folder",
model.folder_photos.widget(),
},
} -> {
set_title: "Folders",
set_name: "Folders",
// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "folder-symbolic",
},
} -> {
set_title: "Folders",
set_name: "Folders",
// NOTE gtk::StackSidebar doesn't show icon :-/
set_icon_name: "folder-symbolic",
},
},
},
},
},
},
Expand Down

0 comments on commit 129441d

Please sign in to comment.