2023-05-31 01:38:50 +02:00
|
|
|
// Copyright 2023 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
|
2023-12-22 16:42:56 +01:00
|
|
|
use cosmic::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-12-13 13:41:39 -05:00
|
|
|
theme::Container::custom(|theme| {
|
|
|
|
|
let cosmic = theme.cosmic();
|
|
|
|
|
cosmic::widget::container::Appearance {
|
|
|
|
|
icon_color: None,
|
|
|
|
|
text_color: None,
|
|
|
|
|
background: Some(cosmic::iced::Background::Color(cosmic::iced::Color::WHITE)),
|
|
|
|
|
border_color: cosmic::iced::Color::WHITE,
|
|
|
|
|
border_radius: cosmic.corner_radii.radius_xs.into(),
|
|
|
|
|
border_width: 3.0,
|
|
|
|
|
}
|
2023-05-31 01:38:50 +02:00
|
|
|
})
|
|
|
|
|
}
|
2023-06-27 03:17:46 +02:00
|
|
|
|
|
|
|
|
#[must_use]
|
|
|
|
|
pub fn display_container_screen() -> cosmic::theme::Container {
|
2023-12-13 13:41:39 -05:00
|
|
|
theme::Container::custom(|theme| {
|
|
|
|
|
let cosmic = theme.cosmic();
|
|
|
|
|
cosmic::widget::container::Appearance {
|
|
|
|
|
icon_color: None,
|
|
|
|
|
text_color: None,
|
|
|
|
|
background: Some(cosmic::iced::Background::Color(cosmic::iced::Color::BLACK)),
|
|
|
|
|
border_color: cosmic::iced::Color::BLACK,
|
|
|
|
|
border_radius: cosmic.corner_radii.radius_0.into(),
|
|
|
|
|
border_width: 0.0,
|
|
|
|
|
}
|
2023-06-27 03:17:46 +02:00
|
|
|
})
|
|
|
|
|
}
|