EpisodeWidget: Tweak padding and spacing.
This commit is contained in:
parent
001eeecc09
commit
fbbe0d9ca9
@ -35,6 +35,8 @@ Tobias Bernard
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="margin_left">6</property>
|
||||
<property name="margin_right">6</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
|
||||
@ -36,12 +36,11 @@ Tobias Bernard
|
||||
<property name="valign">center</property>
|
||||
<property name="margin_top">6</property>
|
||||
<property name="margin_bottom">6</property>
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkImage" id="cover">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="margin_left">6</property>
|
||||
<property name="margin_left">8</property>
|
||||
<property name="pixel_size">64</property>
|
||||
<property name="icon_name">image-x-generic-symbolic</property>
|
||||
</object>
|
||||
|
||||
@ -187,7 +187,7 @@ impl Default for HomeEpisode {
|
||||
let container: gtk::Box = builder.get_object("container").unwrap();
|
||||
let image: gtk::Image = builder.get_object("cover").unwrap();
|
||||
let ep = EpisodeWidget::default();
|
||||
container.pack_start(&ep.container, true, true, 6);
|
||||
container.pack_start(&ep.container, true, true, 0);
|
||||
|
||||
HomeEpisode {
|
||||
container,
|
||||
@ -218,7 +218,7 @@ impl HomeEpisode {
|
||||
|
||||
fn init(&self, show_id: i32) {
|
||||
self.set_cover(show_id);
|
||||
self.container.pack_start(&self.episode, true, true, 6);
|
||||
self.container.pack_start(&self.episode, true, true, 0);
|
||||
}
|
||||
|
||||
fn set_cover(&self, show_id: i32) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user