improv: update libcosmic with wallpaper page UI improvements

This commit is contained in:
Michael Murphy 2024-01-29 20:14:57 +01:00 • committed by GitHub
parent 039aeb1e74
commit 55dc777bb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 533 additions and 423 deletions

View file

@ -9,7 +9,7 @@ edition = "2021"
cosmic-bg-config = { workspace = true }
cosmic-config = { workspace = true }
dirs = "5.0.1"
freedesktop-icons = "0.2.4"
freedesktop-icons = "0.2.5"
futures-lite = "2.2.0"
image = "0.24.8"
infer = "0.15.0"
@ -17,4 +17,4 @@ rayon = "1.8.1"
sctk = { workspace = true }
tokio = { version = "1.35.1", features = ["sync"] }
tracing = "0.1.40"
wayland-client = "0.31.1"
wayland-client = "0.31.2"

View file

@ -104,7 +104,7 @@ pub fn load_each_from_path(path: PathBuf) -> Receiver<(PathBuf, RgbaImage, RgbaI
if let Ok(dir) = path.read_dir() {
for entry in dir.filter_map(Result::ok) {
let Ok(file_type) = entry.file_type() else {
continue
continue;
};
let path = entry.path();
@ -114,7 +114,7 @@ pub fn load_each_from_path(path: PathBuf) -> Receiver<(PathBuf, RgbaImage, RgbaI
paths.push(path);
} else if file_type.is_file() {
let Ok(Some(kind)) = infer::get_from_path(&path) else {
continue
continue;
};
if infer::MatcherType::Image == kind.matcher_type() {

View file

@ -7,7 +7,7 @@ license = "GPL-3.0-only"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
byte-unit = "5.1.3"
byte-unit = "5.1.4"
const_format = "0.2.32"
concat-in-place = "1.1.0"
sysinfo = "0.30.5"

View file

@ -17,12 +17,14 @@ impl Info {
pub async fn load(proxy: &TimeDateProxy<'_>) -> Option<Info> {
let can_ntp = proxy.can_ntp().await.unwrap_or_default();
let Ok(timezone) = proxy.timezone()
let Ok(timezone) = proxy
.timezone()
.await
.unwrap_or_default()
.parse::<CustomTimeZone>() else {
return None;
};
.parse::<CustomTimeZone>()
else {
return None;
};
let Ok(duration) = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) else {
return None;