migrate theming to gpui-native-kit

This commit is contained in:
2026-11-09 21:33:20 +07:00
parent 688b1ce418
commit 8e8ceaf2db
11 changed files with 278 additions and 456 deletions
Generated
+191 -77
View File
@@ -1707,12 +1707,6 @@ dependencies = [
"crossbeam-utils",
]
[[package]]
name = "configparser"
version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "031ad3d167622974ed636505ae4556267ed4aa2aea0464122fa6bc9698a32825"
[[package]]
name = "console_error_panic_hook"
version = "0.1.7"
@@ -1811,8 +1805,7 @@ dependencies = [
"auto_update",
"chat",
"chat_ui",
"flume 0.11.1",
"gpui-kit",
"gpui-native-kit",
"gpui-pre",
"gpui-pre-linux",
"gpui-pre-macos",
@@ -1820,14 +1813,13 @@ dependencies = [
"gpui-pre-reqwest-client",
"gpui-pre-windows",
"log",
"native-theme",
"native-theme-gpui",
"nip29",
"nip4e",
"nip60",
"nostr-sdk",
"person",
"settings",
"speech",
"state",
"tracing-subscriber",
"ui",
@@ -1846,7 +1838,7 @@ dependencies = [
"getrandom 0.2.17",
"getrandom 0.3.4",
"getrandom 0.4.3",
"gpui-kit",
"gpui-native-kit",
"gpui-pre",
"gpui-pre-platform",
"gpui-pre-web",
@@ -1857,6 +1849,7 @@ dependencies = [
"nip4e",
"person",
"settings",
"speech",
"state",
"tracing-wasm",
"ui",
@@ -3638,6 +3631,114 @@ dependencies = [
"wasm-bindgen-futures",
]
[[package]]
name = "gpui-native-core"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-icons",
"gpui-native-theme",
"gpui-native-utils",
"gpui-pre",
"unicode-segmentation",
]
[[package]]
name = "gpui-native-data"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-core",
"gpui-native-icons",
"gpui-native-theme",
"gpui-native-utils",
"gpui-pre",
]
[[package]]
name = "gpui-native-editor"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-core",
"gpui-native-icons",
"gpui-native-theme",
"gpui-native-utils",
"gpui-pre",
"pulldown-cmark",
"similar",
"tree-sitter",
"tree-sitter-javascript",
"tree-sitter-python",
"tree-sitter-rust",
"tree-sitter-typescript",
]
[[package]]
name = "gpui-native-icons"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"anyhow",
"gpui-pre",
]
[[package]]
name = "gpui-native-kit"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-core",
"gpui-native-data",
"gpui-native-editor",
"gpui-native-icons",
"gpui-native-layout",
"gpui-native-theme",
"gpui-pre",
]
[[package]]
name = "gpui-native-layout"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-core",
"gpui-native-data",
"gpui-native-icons",
"gpui-native-theme",
"gpui-native-utils",
"gpui-pre",
]
[[package]]
name = "gpui-native-theme"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"anyhow",
"async-channel",
"block2 0.6.2",
"gpui-pre",
"notify",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
"serde",
"toml 0.8.23",
"windows 0.62.2",
"windows-registry 0.6.1",
"zbus",
]
[[package]]
name = "gpui-native-utils"
version = "0.1.0"
source = "git+https://git.reya.info/reya/gpui-native-kit?rev=b75968ee0fecf78c3041248f1f6bfe8bfd85dee0#b75968ee0fecf78c3041248f1f6bfe8bfd85dee0"
dependencies = [
"gpui-native-theme",
"gpui-pre",
]
[[package]]
name = "gpui-pre"
version = "0.3.10"
@@ -3678,7 +3779,7 @@ dependencies = [
"parking",
"parking_lot",
"pin-project",
"pollster 0.4.0",
"pollster",
"profiling",
"rand 0.9.5",
"raw-window-handle",
@@ -5918,62 +6019,6 @@ dependencies = [
"thiserror 2.0.21",
]
[[package]]
name = "native-theme"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef2a6c2d7520b94d53802c0c94d0450280a7c10380246756661bd1c6ffc64dd1"
dependencies = [
"arc-swap",
"ashpd",
"async-io",
"async-trait",
"block2 0.6.2",
"configparser",
"fontdb",
"inventory",
"native-theme-derive",
"notify",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-core-text",
"objc2-foundation 0.3.2",
"pollster 1.0.1",
"serde",
"serde_with",
"toml 1.1.8+spec-1.1.0",
"unicase",
"windows 0.62.2",
"windows-version",
"zbus",
]
[[package]]
name = "native-theme-derive"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba9ec586e35be9d05bdd279adc9cbe213b5bd630536b8066b82caaaf4021dba7"
dependencies = [
"proc-macro2",
"quote",
"syn 3.0.9",
]
[[package]]
name = "native-theme-gpui"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e13cbaa86f1f0a1ac947380f5d8d47a5e9f7f939c77afd05d7039041abae146"
dependencies = [
"gpui-base",
"gpui-component",
"gpui-kit",
"gpui-pre",
"image",
"native-theme",
]
[[package]]
name = "native-tls"
version = "0.2.18"
@@ -6781,8 +6826,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
dependencies = [
"bitflags 2.13.2",
"block2 0.6.2",
"libc",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-core-graphics",
@@ -7587,12 +7630,6 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
[[package]]
name = "pollster"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336"
[[package]]
name = "poly1305"
version = "0.8.0"
@@ -7740,6 +7777,17 @@ dependencies = [
"syn 2.0.119",
]
[[package]]
name = "pulldown-cmark"
version = "0.13.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b"
dependencies = [
"bitflags 2.13.2",
"memchr",
"unicase",
]
[[package]]
name = "pulp"
version = "0.22.3"
@@ -9047,7 +9095,6 @@ version = "2.0.0-alpha3"
dependencies = [
"anyhow",
"common",
"gpui-kit",
"gpui-pre",
"log",
"nostr-sdk",
@@ -9463,6 +9510,12 @@ version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6"
[[package]]
name = "streaming-iterator"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520"
[[package]]
name = "strength_reduce"
version = "0.2.4"
@@ -10270,6 +10323,66 @@ dependencies = [
"strength_reduce",
]
[[package]]
name = "tree-sitter"
version = "0.25.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78f873475d258561b06f1c595d93308a7ed124d9977cb26b148c2084a4a3cc87"
dependencies = [
"cc",
"regex",
"regex-syntax",
"serde_json",
"streaming-iterator",
"tree-sitter-language",
]
[[package]]
name = "tree-sitter-javascript"
version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf40bf599e0416c16c125c3cec10ee5ddc7d1bb8b0c60fa5c4de249ad34dc1b1"
dependencies = [
"cc",
"tree-sitter-language",
]
[[package]]
name = "tree-sitter-language"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0af592be68c579aa78a16846bd19422978c3c52e438523d45ff5d1bff1f9d4a"
[[package]]
name = "tree-sitter-python"
version = "0.23.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d065aaa27f3aaceaf60c1f0e0ac09e1cb9eb8ed28e7bcdaa52129cffc7f4b04"
dependencies = [
"cc",
"tree-sitter-language",
]
[[package]]
name = "tree-sitter-rust"
version = "0.24.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439e577dbe07423ec2582ac62c7531120dbfccfa6e5f92406f93dd271a120e45"
dependencies = [
"cc",
"tree-sitter-language",
]
[[package]]
name = "tree-sitter-typescript"
version = "0.23.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c5f76ed8d947a75cc446d5fccd8b602ebf0cde64ccf2ffa434d873d7a575eff"
dependencies = [
"cc",
"tree-sitter-language",
]
[[package]]
name = "triomphe"
version = "0.1.17"
@@ -11957,6 +12070,7 @@ dependencies = [
"common",
"gpui-base",
"gpui-kit",
"gpui-native-kit",
"gpui-pre",
"instant",
"log",