feat: get active wallpaper and show it in display_container widget
This commit is contained in:
parent
a4eee2186c
commit
a3802021b6
5 changed files with 62 additions and 24 deletions
15
app/src/theme.rs
Normal file
15
app/src/theme.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2023 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use cosmic::{iced_widget::core::renderer::BorderRadius, theme};
|
||||
|
||||
#[must_use]
|
||||
pub fn display_container() -> 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)),
|
||||
border_color: cosmic::iced::Color::WHITE,
|
||||
border_radius: BorderRadius::from(4.0),
|
||||
border_width: 3.0,
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue