cargo fmt
This commit is contained in:
parent
e496d5bf36
commit
277f324cf0
@ -333,10 +333,8 @@ impl App {
|
|||||||
Action::ShowWidgetAnimated => {
|
Action::ShowWidgetAnimated => {
|
||||||
let shows = self.content.get_shows();
|
let shows = self.content.get_shows();
|
||||||
let mut pop = shows.borrow().populated();
|
let mut pop = shows.borrow().populated();
|
||||||
pop.borrow_mut().switch_visible(
|
pop.borrow_mut()
|
||||||
PopulatedState::Widget,
|
.switch_visible(PopulatedState::Widget, gtk::StackTransitionType::SlideLeft);
|
||||||
gtk::StackTransitionType::SlideLeft,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Action::ShowShowsAnimated => {
|
Action::ShowShowsAnimated => {
|
||||||
let shows = self.content.get_shows();
|
let shows = self.content.get_shows();
|
||||||
|
|||||||
@ -36,7 +36,10 @@ impl Default for EmptyView {
|
|||||||
let builder = gtk::Builder::new_from_resource("/org/gnome/Podcasts/gtk/empty_view.ui");
|
let builder = gtk::Builder::new_from_resource("/org/gnome/Podcasts/gtk/empty_view.ui");
|
||||||
let view: gtk::Box = builder.get_object("empty_view").unwrap();
|
let view: gtk::Box = builder.get_object("empty_view").unwrap();
|
||||||
let image: gtk::Image = builder.get_object("image").unwrap();
|
let image: gtk::Image = builder.get_object("image").unwrap();
|
||||||
image.set_from_icon_name(format!("{}-symbolic", *APP_ID).as_str(), gtk::IconSize::__Unknown(256));
|
image.set_from_icon_name(
|
||||||
|
format!("{}-symbolic", *APP_ID).as_str(),
|
||||||
|
gtk::IconSize::__Unknown(256),
|
||||||
|
);
|
||||||
EmptyView(view)
|
EmptyView(view)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,13 +109,9 @@ impl InfoLabels {
|
|||||||
self.title.set_text(episode.title());
|
self.title.set_text(episode.title());
|
||||||
|
|
||||||
if episode.played().is_some() {
|
if episode.played().is_some() {
|
||||||
self.title
|
self.title.get_style_context().add_class("dim-label");
|
||||||
.get_style_context()
|
|
||||||
.add_class("dim-label");
|
|
||||||
} else {
|
} else {
|
||||||
self.title
|
self.title.get_style_context().remove_class("dim-label");
|
||||||
.get_style_context()
|
|
||||||
.remove_class("dim-label");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -127,7 +127,10 @@ struct ShowsChild {
|
|||||||
|
|
||||||
impl Default for ShowsChild {
|
impl Default for ShowsChild {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let cover = gtk::Image::new_from_icon_name("image-x-generic-symbolic", gtk::IconSize::__Unknown(-1));
|
let cover = gtk::Image::new_from_icon_name(
|
||||||
|
"image-x-generic-symbolic",
|
||||||
|
gtk::IconSize::__Unknown(-1),
|
||||||
|
);
|
||||||
let child = gtk::FlowBoxChild::new();
|
let child = gtk::FlowBoxChild::new();
|
||||||
|
|
||||||
cover.set_pixel_size(256);
|
cover.set_pixel_size(256);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user