WIP navigation demo for subpages on Desktop page

This commit is contained in:
Jeremy Soller 2022-12-20 15:06:01 -07:00
parent 0ad2ffe2d4
commit aa7b66c925
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 174 additions and 94 deletions

View file

@ -53,7 +53,7 @@ impl<'a, Message: 'static> From<ListColumn<'a, Message>> for Element<'a, Message
}
}
fn style(theme: &crate::Theme) -> iced::widget::container::Appearance {
pub fn style(theme: &crate::Theme) -> iced::widget::container::Appearance {
let cosmic = &theme.cosmic().primary;
iced::widget::container::Appearance {
text_color: Some(cosmic.on.into()),
@ -62,4 +62,4 @@ fn style(theme: &crate::Theme) -> iced::widget::container::Appearance {
border_width: 0.0,
border_color: Color::TRANSPARENT,
}
}
}