feat: get active wallpaper and show it in display_container widget

This commit is contained in:
Michael Aaron Murphy 2023-05-31 01:38:50 +02:00
parent a4eee2186c
commit a3802021b6
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
5 changed files with 62 additions and 24 deletions

15
app/src/theme.rs Normal file
View 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,
})
}