cosmic-settings/app/src/theme.rs

29 lines
998 B
Rust
Raw Normal View History

// 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};
#[must_use]
2023-06-27 03:17:46 +02:00
pub fn display_container_frame() -> cosmic::theme::Container {
theme::Container::custom(|_theme| 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: 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 {
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,
})
}