feat(wallpaper): simulated display
This commit is contained in:
parent
096ae80dba
commit
71475813c0
6 changed files with 129 additions and 42 deletions
|
|
@ -4,7 +4,7 @@
|
|||
use cosmic::{iced_widget::core::BorderRadius, theme};
|
||||
|
||||
#[must_use]
|
||||
pub fn display_container() -> cosmic::theme::Container {
|
||||
pub fn display_container_frame() -> cosmic::theme::Container {
|
||||
theme::Container::custom(|_theme| cosmic::iced::widget::container::Appearance {
|
||||
text_color: None,
|
||||
background: Some(cosmic::iced::Background::Color(cosmic::iced::Color::WHITE)),
|
||||
|
|
@ -13,3 +13,14 @@ pub fn display_container() -> cosmic::theme::Container {
|
|||
border_width: 3.0,
|
||||
})
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn display_container_screen() -> cosmic::theme::Container {
|
||||
theme::Container::custom(|_theme| cosmic::iced::widget::container::Appearance {
|
||||
text_color: None,
|
||||
background: Some(cosmic::iced::Background::Color(cosmic::iced::Color::BLACK)),
|
||||
border_color: cosmic::iced::Color::BLACK,
|
||||
border_radius: BorderRadius::from(0.0),
|
||||
border_width: 0.0,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue