2023-05-31 01:38:50 +02:00
|
|
|
// Copyright 2023 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
|
2023-06-15 15:48:29 -04:00
|
|
|
use cosmic::{iced_widget::core::BorderRadius, theme};
|
2023-05-31 01:38:50 +02:00
|
|
|
|
|
|
|
|
#[must_use]
|
2023-06-27 03:17:46 +02:00
|
|
|
pub fn display_container_frame() -> cosmic::theme::Container {
|
2023-09-19 16:54:50 +02:00
|
|
|
theme::Container::custom(|_theme| cosmic::widget::container::Appearance {
|
|
|
|
|
icon_color: None,
|
2023-05-31 01:38:50 +02:00
|
|
|
text_color: None,
|
|
|
|
|
background: Some(cosmic::iced::Background::Color(cosmic::iced::Color::WHITE)),
|
|
|
|
|
border_color: cosmic::iced::Color::WHITE,
|
|
|
|
|
border_radius: BorderRadius::from(4.0),
|
|
|
|
|
border_width: 3.0,
|
|
|
|
|
})
|
|
|
|
|
}
|
2023-06-27 03:17:46 +02:00
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
|
pub fn display_container_screen() -> cosmic::theme::Container {
|
2023-09-19 16:54:50 +02:00
|
|
|
theme::Container::custom(|_theme| cosmic::widget::container::Appearance {
|
|
|
|
|
icon_color: None,
|
2023-06-27 03:17:46 +02:00
|
|
|
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,
|
|
|
|
|
})
|
|
|
|
|
}
|