Skip to content

Commit

Permalink
Add year view
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Mar 26, 2024
1 parent 758c47c commit 387669e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/icons/year-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/resources/resources.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
<gresource prefix="/dev/romantics/Photos/icons/">
<file alias="today-symbolic.svg" preprocess="xml-stripblanks">../icons/today-symbolic.svg</file>
<file alias="month-symbolic.svg" preprocess="xml-stripblanks">../icons/month-symbolic.svg</file>
<file alias="year-symbolic.svg" preprocess="xml-stripblanks">../icons/year-symbolic.svg</file>
</gresource>
</gresources>
6 changes: 6 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ impl SimpleComponent for App {
#[name(stack)]
adw::ViewStack {

add_titled_with_icon[None, "Year", "year-symbolic"] = &gtk::Box {
gtk::Label {
set_label: "Hello",
}
},

add_titled_with_icon[None, "Month", "month-symbolic"] = &gtk::Box {
gtk::Label {
set_label: "Hello",
Expand Down

0 comments on commit 387669e

Please sign in to comment.