refactor(theme): make Theme Copy
This commit is contained in:
parent
3245ff1b0e
commit
844aeba379
4 changed files with 97 additions and 83 deletions
|
|
@ -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())),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue