Skip to content

Commit 9444cab

Browse files
themed cast widget posters
1 parent d308ab1 commit 9444cab

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/gui/view/series_view/cast_widget.rs

+17-4
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,23 @@ impl CastWidget {
7272
.collect(),
7373
)
7474
.padding(5.0)
75+
.line_spacing(5.0)
7576
.spacing(5.0)
7677
.into(),
7778
}
7879
}
7980
}
8081
mod cast_poster {
8182
use iced::{
82-
alignment,
83-
widget::{image, text, Column},
83+
alignment, theme,
84+
widget::{container, image, text, Column},
8485
Command, Element, Renderer,
8586
};
8687

87-
use crate::core::{api::show_cast::Cast, caching};
88+
use crate::{
89+
core::{api::show_cast::Cast, caching},
90+
gui::styles,
91+
};
8892

8993
#[derive(Debug, Clone)]
9094
pub enum Message {
@@ -142,9 +146,18 @@ mod cast_poster {
142146
))
143147
.horizontal_alignment(alignment::Horizontal::Center)
144148
.width(100)
149+
.height(45)
145150
.size(15);
146151

147-
content.push(name).into()
152+
let content = content.push(name);
153+
154+
container(content)
155+
.style(theme::Container::Custom(Box::new(
156+
styles::container_styles::ContainerThemeSecond,
157+
)
158+
as Box<dyn container::StyleSheet<Style = iced::Theme>>))
159+
.padding(7)
160+
.into()
148161
}
149162
}
150163
}

0 commit comments

Comments
 (0)