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,
}
}
}

View file

@ -1,8 +1,8 @@
// Copyright 2022 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
mod column;
pub mod column;
// mod item;
pub use self::column::{ListColumn, list_column};
// pub use self::item::{ListItem, list_item};
// pub use self::item::{ListItem, list_item};