refactor(theme): make Theme Copy

This commit is contained in:
Ashley Wulber 2023-02-27 19:56:53 -05:00 committed by Jeremy Soller
parent 3245ff1b0e
commit 844aeba379
4 changed files with 97 additions and 83 deletions

View file

@ -59,8 +59,7 @@ impl<'a, Message: 'static> From<ListColumn<'a, Message>> for Element<'a, Message
#[must_use]
#[allow(clippy::trivially_copy_pass_by_ref)]
pub fn style(theme: &crate::Theme) -> iced::widget::container::Appearance {
let cosmic = &theme.cosmic();
let container = &cosmic.current_container().component;
let container = &theme.current_container().component;
iced::widget::container::Appearance {
text_color: Some(container.on.into()),
background: Some(Background::Color(container.base.into())),