cargo fmt
This commit is contained in:
parent
e496d5bf36
commit
277f324cf0
@ -333,10 +333,8 @@ impl App {
|
||||
Action::ShowWidgetAnimated => {
|
||||
let shows = self.content.get_shows();
|
||||
let mut pop = shows.borrow().populated();
|
||||
pop.borrow_mut().switch_visible(
|
||||
PopulatedState::Widget,
|
||||
gtk::StackTransitionType::SlideLeft,
|
||||
);
|
||||
pop.borrow_mut()
|
||||
.switch_visible(PopulatedState::Widget, gtk::StackTransitionType::SlideLeft);
|
||||
}
|
||||
Action::ShowShowsAnimated => {
|
||||
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 view: gtk::Box = builder.get_object("empty_view").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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -109,13 +109,9 @@ impl InfoLabels {
|
||||
self.title.set_text(episode.title());
|
||||
|
||||
if episode.played().is_some() {
|
||||
self.title
|
||||
.get_style_context()
|
||||
.add_class("dim-label");
|
||||
self.title.get_style_context().add_class("dim-label");
|
||||
} else {
|
||||
self.title
|
||||
.get_style_context()
|
||||
.remove_class("dim-label");
|
||||
self.title.get_style_context().remove_class("dim-label");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +127,10 @@ struct ShowsChild {
|
||||
|
||||
impl Default for ShowsChild {
|
||||
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();
|
||||
|
||||
cover.set_pixel_size(256);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user