improv: update libcosmic with wallpaper page UI improvements
This commit is contained in:
parent
039aeb1e74
commit
55dc777bb3
17 changed files with 533 additions and 423 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue