Browse Source

Update accesskit_winit and dark_light (#2655)

* Update accesskit_winit to 0.8.1

* Update dark_light to 1.0
pull/2662/head
Emil Ernerfeldt 2 years ago
committed by GitHub
parent
commit
d01e4342f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 78
      Cargo.lock
  2. 2
      crates/eframe/Cargo.toml
  3. 1
      crates/eframe/src/epi.rs
  4. 2
      crates/egui-winit/Cargo.toml

78
Cargo.lock

@ -52,6 +52,22 @@ dependencies = [
"parking_lot",
]
[[package]]
name = "accesskit_unix"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fbf322ecf51ac3fb9d3016382e5515122650d3fe70afe544322215e9a54f68f"
dependencies = [
"accesskit",
"accesskit_consumer",
"async-channel",
"atspi",
"futures-lite",
"parking_lot",
"serde",
"zbus",
]
[[package]]
name = "accesskit_windows"
version = "0.10.4"
@ -69,12 +85,13 @@ dependencies = [
[[package]]
name = "accesskit_winit"
version = "0.7.3"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f270416d033ab5b2a8fa72a976dfdad0db1ea194721f16cadbdb45ff219779f"
checksum = "98f6f5259594c7d3a0ce5d63a354839c8db5120bda7350a249ed51830e0250c1"
dependencies = [
"accesskit",
"accesskit_macos",
"accesskit_unix",
"accesskit_windows",
"parking_lot",
"winit",
@ -314,6 +331,38 @@ version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73b5e5f48b927f04e952dedc932f31995a65a0bf65ec971c74436e51bf6e970d"
[[package]]
name = "atspi"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab84c09a770065868da0d713f1f4b35af85d96530a868f1c1a6c249178379187"
dependencies = [
"async-recursion",
"async-trait",
"atspi-macros",
"enumflags2",
"futures-lite",
"serde",
"tracing",
"zbus",
"zbus_names",
]
[[package]]
name = "atspi-macros"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3ebc5a6f61f6996eca56a4cece7b3fe7da3b86f0473c7b71ab44e229f3acce4"
dependencies = [
"proc-macro2",
"quote",
"serde",
"syn",
"zbus",
"zbus_names",
"zvariant",
]
[[package]]
name = "atty"
version = "0.2.14"
@ -1033,9 +1082,9 @@ dependencies = [
[[package]]
name = "dark-light"
version = "0.2.3"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "413487ef345ab5cdfbf23e66070741217a701bce70f2f397a54221b4f2b6056a"
checksum = "a62007a65515b3cd88c733dd3464431f05d2ad066999a824259d8edc3cf6f645"
dependencies = [
"dconf_rs",
"detect-desktop-environment",
@ -3534,6 +3583,18 @@ dependencies = [
"serde_derive",
]
[[package]]
name = "serde-xml-rs"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0bf1ba0696ccf0872866277143ff1fd14d22eec235d2b23702f95e6660f7dfa"
dependencies = [
"log",
"serde",
"thiserror",
"xml-rs",
]
[[package]]
name = "serde_derive"
version = "1.0.149"
@ -5074,9 +5135,9 @@ dependencies = [
[[package]]
name = "zbus"
version = "3.6.0"
version = "3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97bbdedb5a1e2305b063530df8bef02ce6411f0bf06115f5f75c96a8403e023d"
checksum = "938ea6da98c75c2c37a86007bd17fd8e208cbec24e086108c87ece98e9edec0d"
dependencies = [
"async-broadcast",
"async-channel",
@ -5100,6 +5161,7 @@ dependencies = [
"ordered-stream",
"rand",
"serde",
"serde-xml-rs",
"serde_repr",
"sha1",
"static_assertions",
@ -5113,9 +5175,9 @@ dependencies = [
[[package]]
name = "zbus_macros"
version = "3.6.0"
version = "3.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd220acb2216d9597653c3ed379dae064b57a13cfaa9306b5853c79de47c145c"
checksum = "45066039ebf3330820e495e854f8b312abb68f0a39e97972d092bd72e8bb3e8e"
dependencies = [
"proc-macro-crate",
"proc-macro2",

2
crates/eframe/Cargo.toml

@ -95,7 +95,7 @@ raw-window-handle = { version = "0.5.0" }
winit = "0.27.2"
# optional native:
dark-light = { version = "0.2.1", optional = true }
dark-light = { version = "1.0", optional = true }
directories-next = { version = "2", optional = true }
egui-wgpu = { version = "0.20.0", path = "../egui-wgpu", optional = true, features = [
"winit",

1
crates/eframe/src/epi.rs

@ -429,6 +429,7 @@ impl NativeOptions {
match dark_light::detect() {
dark_light::Mode::Dark => Some(Theme::Dark),
dark_light::Mode::Light => Some(Theme::Light),
dark_light::Mode::Default => None,
}
} else {
None

2
crates/egui-winit/Cargo.toml

@ -62,7 +62,7 @@ winit = { version = "0.27.2", default-features = false }
document-features = { version = "0.2", optional = true }
# feature accesskit
accesskit_winit = { version = "0.7.1", optional = true }
accesskit_winit = { version = "0.8.1", optional = true }
puffin = { version = "0.14", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }

Loading…
Cancel
Save