feat(wallpaper): simulated display

This commit is contained in:
Michael Aaron Murphy 2023-06-27 03:17:46 +02:00 committed by Michael Murphy
parent 096ae80dba
commit 71475813c0
6 changed files with 129 additions and 42 deletions

View file

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