diff --git a/Cargo.lock b/Cargo.lock index a0aae36d..c0565ca4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,112 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "accesskit" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf203f9d3bd8f29f98833d1fbef628df18f759248a547e7e01cfbf63cda36a99" + +[[package]] +name = "accesskit_atspi_common" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "890d241cf51fc784f0ac5ac34dfc847421f8d39da6c7c91a0fcc987db62a8267" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "serde", + "thiserror 1.0.69", + "zvariant", +] + +[[package]] +name = "accesskit_consumer" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db81010a6895d8707f9072e6ce98070579b43b717193d2614014abd5cb17dd43" +dependencies = [ + "accesskit", + "hashbrown 0.15.5", +] + +[[package]] +name = "accesskit_macos" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0089e5c0ac0ca281e13ea374773898d9354cc28d15af9f0f7394d44a495b575" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "accesskit_unix" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "301e55b39cfc15d9c48943ce5f572204a551646700d0e8efa424585f94fec528" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2d63dd5041e49c363d83f5419a896ecb074d309c414036f616dc0b04faca971" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "static_assertions", + "windows 0.61.3", + "windows-core 0.61.2", +] + +[[package]] +name = "accesskit_winit" +version = "0.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8cfabe59d0eaca7412bfb1f70198dd31e3b0496fee7e15b066f9c36a1a140a0" +dependencies = [ + "accesskit", + "accesskit_macos", + "accesskit_unix", + "accesskit_windows", + "raw-window-handle", + "winit", +] + [[package]] name = "addr2line" version = "0.27.1" @@ -11,12 +117,37 @@ dependencies = [ "gimli", ] +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + [[package]] name = "adler2" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" +[[package]] +name = "adler32" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.5" @@ -26,6 +157,31 @@ dependencies = [ "memchr", ] +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + [[package]] name = "android_system_properties" version = "0.1.6" @@ -85,6 +241,68 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "approx" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6" +dependencies = [ + "num-traits", +] + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "image 0.25.10", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading", +] + [[package]] name = "async-broadcast" version = "0.7.2" @@ -97,6 +315,79 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.6", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix 1.1.6", +] + [[package]] name = "async-recursion" version = "1.2.0" @@ -108,6 +399,30 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.6", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + [[package]] name = "async-trait" version = "0.1.92" @@ -119,6 +434,62 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "atspi" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c83247582e7508838caf5f316c00791eee0e15c0bf743e6880585b867e16815c" +dependencies = [ + "atspi-common", + "atspi-connection", + "atspi-proxies", +] + +[[package]] +name = "atspi-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33dfc05e7cdf90988a197803bf24f5788f94f7c94a69efa95683e8ffe76cfdfb" +dependencies = [ + "enumflags2", + "serde", + "static_assertions", + "zbus", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "atspi-connection" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4193d51303d8332304056ae0004714256b46b6635a5c556109b319c0d3784938" +dependencies = [ + "atspi-common", + "atspi-proxies", + "futures-lite", + "zbus", +] + +[[package]] +name = "atspi-proxies" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2eebcb9e7e76f26d0bcfd6f0295e1cd1e6f33bedbc5698a971db8dc43d7751c" +dependencies = [ + "atspi-common", + "serde", + "zbus", +] + [[package]] name = "autocfg" version = "1.5.1" @@ -134,10 +505,33 @@ dependencies = [ "addr2line", "cfg-if", "libc", - "miniz_oxide", + "miniz_oxide 0.9.1", "object", "rustc-demangle", - "windows-link", + "windows-link 0.2.1", +] + +[[package]] +name = "base16-egui-themes" +version = "0.1.0" +source = "git+https://github.com/LGUG2Z/base16-egui-themes?rev=3f157904c641f0dc80f043449fe0214fc4182425#3f157904c641f0dc80f043449fe0214fc4182425" +dependencies = [ + "egui", + "schemars 1.2.3", + "serde", + "strum", + "strum_macros", +] + +[[package]] +name = "base16_color_scheme" +version = "0.3.2" +source = "git+https://github.com/LGUG2Z/base16_color_scheme#c32a9e290f0997eacba3e74bba2442667b5fc478" +dependencies = [ + "hex", + "nom", + "ramhorns", + "serde", ] [[package]] @@ -146,6 +540,27 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" +[[package]] +name = "beef" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + [[package]] name = "bitflags" version = "1.3.2" @@ -158,13 +573,41 @@ version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + [[package]] name = "block2" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" dependencies = [ - "objc2", + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", ] [[package]] @@ -182,12 +625,127 @@ version = "3.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +[[package]] +name = "by_address" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + [[package]] name = "bytes" version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" +dependencies = [ + "bitflags 2.13.2", + "polling", + "rustix 1.1.6", + "tracing", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" +dependencies = [ + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.5", + "rustix 1.1.6", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calm_io" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea0608700fe42d90ec17ad0f86335cf229b67df2e34e7f463e8241ce7b8fa5f" +dependencies = [ + "calmio_filters", +] + +[[package]] +name = "calmio_filters" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "846501f4575cd66766a40bb7ab6d8e960adc7eb49f753c8232bd8e0e09cf6ca2" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "catppuccin-egui" +version = "5.6.0" +source = "git+https://github.com/LGUG2Z/catppuccin-egui?rev=b2f95cbf441d1dd99f3c955ef10dcb84ce23c20a#b2f95cbf441d1dd99f3c955ef10dcb84ce23c20a" +dependencies = [ + "egui", +] + [[package]] name = "cc" version = "1.10.0" @@ -212,6 +770,26 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" +[[package]] +name = "cgl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff" +dependencies = [ + "libc", +] + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core 0.10.1", +] + [[package]] name = "chrono" version = "0.4.45" @@ -223,7 +801,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -276,6 +854,26 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" +[[package]] +name = "clipboard-win" +version = "5.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" +dependencies = [ + "error-code", +] + +[[package]] +name = "codespan-reporting" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + [[package]] name = "color-eyre" version = "0.6.5" @@ -303,12 +901,46 @@ dependencies = [ "tracing-error", ] +[[package]] +name = "color-thief" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6460d760cf38ce67c9e0318f896538820acc54f2d0a3bfc5b2c557211066c98" +dependencies = [ + "rgb", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + [[package]] name = "colorchoice" version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "const_format" version = "0.2.37" @@ -330,12 +962,85 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055" +dependencies = [ + "cfg-if", +] + [[package]] name = "crossbeam-channel" version = "0.5.17" @@ -345,12 +1050,37 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "crossbeam-utils" version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + [[package]] name = "ctrlc" version = "3.5.2" @@ -362,6 +1092,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + [[package]] name = "darling" version = "0.24.1" @@ -396,6 +1132,16 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "deflate" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73770f8e1fe7d64df17ca66ad28994a0a623ea497fa69486e14984e715c5d174" +dependencies = [ + "adler32", + "byteorder", +] + [[package]] name = "defmt" version = "1.2.0" @@ -424,7 +1170,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0" dependencies = [ - "thiserror", + "thiserror 2.0.21", ] [[package]] @@ -436,13 +1182,42 @@ dependencies = [ "serde_core", ] +[[package]] +name = "dirs" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30baa043103c9d0c2a57cf537cc2f35623889dc0d405e6c3cccfadbc81c71309" +dependencies = [ + "dirs-sys 0.3.7", +] + +[[package]] +name = "dirs" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059" +dependencies = [ + "dirs-sys 0.3.7", +] + [[package]] name = "dirs" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" dependencies = [ - "dirs-sys", + "dirs-sys 0.5.0", +] + +[[package]] +name = "dirs-sys" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" +dependencies = [ + "libc", + "redox_users 0.4.6", + "winapi", ] [[package]] @@ -453,10 +1228,16 @@ checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" dependencies = [ "libc", "option-ext", - "redox_users", + "redox_users 0.5.3", "windows-sys 0.61.2", ] +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + [[package]] name = "dispatch2" version = "0.3.1" @@ -464,9 +1245,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" dependencies = [ "bitflags 2.13.2", - "block2", + "block2 0.6.2", "libc", - "objc2", + "objc2 0.6.5", ] [[package]] @@ -480,12 +1261,179 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + [[package]] name = "dyn-clone" version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" +[[package]] +name = "ecolor" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71ddb8ac7643d1dba1bb02110e804406dd459a838efcb14011ced10556711a8e" +dependencies = [ + "bytemuck", + "emath", +] + +[[package]] +name = "eframe" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "457481173e6db5ca9fa2be93a58df8f4c7be639587aeb4853b526c6cf87db4e6" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "egui-wgpu", + "egui-winit", + "egui_glow", + "glow", + "glutin", + "glutin-winit", + "image 0.25.10", + "js-sys", + "log", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "parking_lot", + "percent-encoding", + "profiling", + "raw-window-handle", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "web-time", + "windows-sys 0.61.2", + "winit", +] + +[[package]] +name = "egui" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a9b567d356674e9a5121ed3fedfb0a7c31e059fe71f6972b691bcd0bfc284e3" +dependencies = [ + "accesskit", + "ahash", + "bitflags 2.13.2", + "emath", + "epaint", + "log", + "nohash-hasher", + "profiling", + "smallvec", + "unicode-segmentation", +] + +[[package]] +name = "egui-wgpu" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e4d209971c84b2352a06174abdba701af1e552ce56b144d96f2bd50a3c91236" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "epaint", + "log", + "profiling", + "thiserror 2.0.21", + "type-map", + "web-time", + "wgpu", + "winit", +] + +[[package]] +name = "egui-winit" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec6687e5bb551702f4ad10ac428bab12acf9d53047ebb1082d4a0ed8c6251a29" +dependencies = [ + "accesskit_winit", + "arboard", + "bytemuck", + "egui", + "log", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "profiling", + "raw-window-handle", + "smithay-clipboard", + "web-time", + "webbrowser", + "winit", +] + +[[package]] +name = "egui_glow" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6420863ea1d90e750f75075231a260030ad8a9f30a7cef82cdc966492dc4c4eb" +dependencies = [ + "bytemuck", + "egui", + "glow", + "log", + "memoffset", + "profiling", + "wasm-bindgen", + "web-sys", + "winit", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "emath" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "491bdf728bf25ddd9ad60d4cf1c48588fa82c013a2440b91aa7fc43e34a07c32" +dependencies = [ + "bytemuck", +] + [[package]] name = "endi" version = "1.1.1" @@ -513,6 +1461,30 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "epaint" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009d0dd3c2163823a0abdb899451ecbc78798dec545ee91b43aff1fa790bab62" +dependencies = [ + "ab_glyph", + "ahash", + "bytemuck", + "ecolor", + "emath", + "epaint_default_fonts", + "log", + "nohash-hasher", + "parking_lot", + "profiling", +] + +[[package]] +name = "epaint_default_fonts" +version = "0.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c4fbe202b6578d3d56428fa185cdf114a05e49da05f477b3c7f0fbb221f1862" + [[package]] name = "equivalent" version = "1.0.3" @@ -529,6 +1501,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + [[package]] name = "event-listener" version = "5.4.2" @@ -566,6 +1544,21 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + [[package]] name = "file-id" version = "0.1.0" @@ -597,6 +1590,84 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "flavours" +version = "0.7.2" +source = "git+https://github.com/LGUG2Z/flavours?rev=24518c129918fe3260aa559eded7657e50752cb1#24518c129918fe3260aa559eded7657e50752cb1" +dependencies = [ + "anyhow", + "base16_color_scheme", + "calm_io", + "color-thief", + "dirs 3.0.2", + "glob", + "hex", + "image 0.23.14", + "palette", + "rand 0.10.3", + "serde", + "serde_yaml 0.8.26", + "shell-words", + "shellexpand", + "toml", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + [[package]] name = "form_urlencoded" version = "1.2.2" @@ -679,6 +1750,16 @@ dependencies = [ "slab", ] +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.6", + "windows-link 0.2.1", +] + [[package]] name = "getrandom" version = "0.2.17" @@ -690,6 +1771,18 @@ dependencies = [ "wasi", ] +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + [[package]] name = "getrandom" version = "0.4.3" @@ -698,7 +1791,18 @@ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" dependencies = [ "cfg-if", "libc", - "r-efi", + "r-efi 6.0.0", + "rand_core 0.10.1", +] + +[[package]] +name = "gif" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3edd93c6756b4dfaf2709eafcc345ba2636565295c198a9cfbf75fa5e3e00b06" +dependencies = [ + "color_quant", + "weezl", ] [[package]] @@ -720,12 +1824,188 @@ dependencies = [ "url", ] +[[package]] +name = "gl_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" +dependencies = [ + "khronos_api", + "log", + "xml-rs", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "glow" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "glutin" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325" +dependencies = [ + "bitflags 2.13.2", + "cfg_aliases", + "cgl", + "dispatch2", + "glutin_egl_sys", + "glutin_glx_sys", + "glutin_wgl_sys", + "libloading", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "once_cell", + "raw-window-handle", + "wayland-sys", + "windows-sys 0.52.0", + "x11-dl", +] + +[[package]] +name = "glutin-winit" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f" +dependencies = [ + "cfg_aliases", + "glutin", + "raw-window-handle", + "winit", +] + +[[package]] +name = "glutin_egl_sys" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2" +dependencies = [ + "gl_generator", + "windows-sys 0.52.0", +] + +[[package]] +name = "glutin_glx_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185" +dependencies = [ + "gl_generator", + "x11-dl", +] + +[[package]] +name = "glutin_wgl_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e" +dependencies = [ + "gl_generator", +] + +[[package]] +name = "gpu-alloc" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9" +dependencies = [ + "bitflags 2.13.2", + "gpu-alloc-types", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "gpu-allocator" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd" +dependencies = [ + "log", + "presser", + "thiserror 1.0.69", + "windows 0.58.0", +] + +[[package]] +name = "gpu-descriptor" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" +dependencies = [ + "bitflags 2.13.2", + "gpu-descriptor-types", + "hashbrown 0.15.5", +] + +[[package]] +name = "gpu-descriptor-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + [[package]] name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash 0.2.0", +] + [[package]] name = "hashbrown" version = "0.17.1" @@ -738,11 +2018,37 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +dependencies = [ + "serde", +] + +[[package]] +name = "hex_color" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37f101bf4c633f7ca2e4b5e136050314503dd198e78e325ea602c327c484ef0" +dependencies = [ + "arrayvec", + "rand 0.8.8", + "serde", +] + +[[package]] +name = "hexf-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" [[package]] name = "hotwatch" @@ -767,7 +2073,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core", + "windows-core 0.62.2", ] [[package]] @@ -889,6 +2195,39 @@ dependencies = [ "icu_properties", ] +[[package]] +name = "image" +version = "0.23.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24ffcb7e7244a9bf19d35bf2883b9c080c4ced3c07a9895572178cdb8f13f6a1" +dependencies = [ + "bytemuck", + "byteorder", + "color_quant", + "gif", + "jpeg-decoder", + "num-iter", + "num-rational", + "num-traits", + "png 0.16.8", + "scoped_threadpool", + "tiff 0.6.1", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png 0.18.1", + "tiff 0.11.3", +] + [[package]] name = "indenter" version = "0.3.4" @@ -970,7 +2309,7 @@ dependencies = [ "portable-atomic", "portable-atomic-util", "serde_core", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -1010,6 +2349,64 @@ dependencies = [ "jiff-tzdb", ] +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link 0.2.1", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + [[package]] name = "jobserver" version = "0.1.35" @@ -1020,6 +2417,15 @@ dependencies = [ "libc", ] +[[package]] +name = "jpeg-decoder" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "229d53d58899083193af11e15917b5640cd40b29ff475a1fe4ef725deb02d0f2" +dependencies = [ + "rayon", +] + [[package]] name = "js-sys" version = "0.3.106" @@ -1031,6 +2437,23 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "khronos-egl" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" +dependencies = [ + "libc", + "libloading", + "pkg-config", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + [[package]] name = "komorebi" version = "0.1.0" @@ -1038,11 +2461,13 @@ dependencies = [ "clap", "color-eyre", "crossbeam-channel", + "crossbeam-utils", "ctrlc", - "dirs", + "dirs 6.0.0", "futures-util", "hotwatch", "komorebi-layouts", + "komorebi-themes", "lazy_static", "nanoid", "parking_lot", @@ -1067,6 +2492,7 @@ name = "komorebi-client" version = "0.1.0" dependencies = [ "komorebi", + "komorebi-themes", "parking_lot", "serde_json_lenient", ] @@ -1081,11 +2507,27 @@ dependencies = [ "schemars 1.2.3", "serde", "serde_json_lenient", - "serde_yaml", + "serde_yaml 0.9.34+deprecated", "strum", "tracing", ] +[[package]] +name = "komorebi-themes" +version = "0.1.42" +source = "git+https://github.com/LGUG2Z/komorebi?rev=f08aa55511d77ca56ab0e789efabeb0a237a463e#f08aa55511d77ca56ab0e789efabeb0a237a463e" +dependencies = [ + "base16-egui-themes", + "catppuccin-egui", + "eframe", + "flavours", + "hex_color", + "schemars 1.2.3", + "serde", + "serde_variant", + "strum", +] + [[package]] name = "komorebic" version = "0.1.0" @@ -1094,7 +2536,7 @@ dependencies = [ "clap", "clap_complete", "color-eyre", - "dirs", + "dirs 6.0.0", "fs-tail", "komorebi-client", "lazy_static", @@ -1164,13 +2606,32 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link 0.2.1", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + [[package]] name = "libredox" version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" dependencies = [ + "bitflags 2.13.2", "libc", + "plain", + "redox_syscall 0.9.5", ] [[package]] @@ -1185,6 +2646,18 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "linked-hash-map" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + [[package]] name = "linux-raw-sys" version = "0.12.1" @@ -1197,6 +2670,12 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" +[[package]] +name = "litrs" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" + [[package]] name = "lock_api" version = "0.4.14" @@ -1212,6 +2691,48 @@ version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +[[package]] +name = "logos" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7251356ef8cb7aec833ddf598c6cb24d17b689d20b993f9d11a3d764e34e6458" +dependencies = [ + "logos-derive", +] + +[[package]] +name = "logos-codegen" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59f80069600c0d66734f5ff52cc42f2dabd6b29d205f333d61fd7832e9e9963f" +dependencies = [ + "beef", + "fnv", + "lazy_static", + "proc-macro2", + "quote", + "regex-syntax", + "syn 2.0.119", +] + +[[package]] +name = "logos-derive" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24fb722b06a9dc12adb0963ed585f19fc61dc5413e6a9be9422ef92c091e731d" +dependencies = [ + "logos-codegen", +] + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + [[package]] name = "matchers" version = "0.2.0" @@ -1227,6 +2748,15 @@ version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" +[[package]] +name = "memmap2" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" +dependencies = [ + "libc", +] + [[package]] name = "memoffset" version = "0.9.1" @@ -1236,6 +2766,56 @@ dependencies = [ "autocfg", ] +[[package]] +name = "metal" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-graphics-types 0.2.0", + "foreign-types", + "log", + "objc", + "paste", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791daaae1ed6889560f8c4359194f56648355540573244a5448a83ba1ecc7435" +dependencies = [ + "adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" +dependencies = [ + "adler", + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + [[package]] name = "miniz_oxide" version = "0.9.1" @@ -1243,6 +2823,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" dependencies = [ "adler2", + "simd-adler32", ] [[package]] @@ -1268,13 +2849,79 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "naga" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.16.1", + "hexf-parse", + "indexmap 2.14.2", + "libm", + "log", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + [[package]] name = "nanoid" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ffa00dec017b5b1a8b7cf5e2c008bfda1aa7e0697ac1508b491fdf2622fb4d8" dependencies = [ - "rand", + "rand 0.8.8", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", ] [[package]] @@ -1289,6 +2936,22 @@ dependencies = [ "libc", ] +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "notify" version = "6.1.1" @@ -1345,6 +3008,36 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.19" @@ -1352,6 +3045,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] @@ -1363,6 +3079,31 @@ dependencies = [ "libc", ] +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + [[package]] name = "objc2" version = "0.6.5" @@ -1372,6 +3113,71 @@ dependencies = [ "objc2-encode", ] +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation 0.2.2", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -1379,6 +3185,45 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", ] [[package]] @@ -1387,6 +3232,30 @@ version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + [[package]] name = "objc2-io-kit" version = "0.3.2" @@ -1397,6 +3266,109 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + [[package]] name = "object" version = "0.40.0" @@ -1424,6 +3396,25 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "orbclient" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f59006ce1e204c30956638535b74d317bca99477b9356dfaec54c37f6f600ab" +dependencies = [ + "num-traits", +] + [[package]] name = "ordered-stream" version = "0.2.0" @@ -1434,12 +3425,51 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "owned_ttf_parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b" +dependencies = [ + "ttf-parser", +] + [[package]] name = "owo-colors" version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8" +[[package]] +name = "palette" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddeed8580d347d2abf3dcf06a5f0b3dc020258338526b277847cd4248a70fc64" +dependencies = [ + "approx", + "palette_derive", + "palette_math", + "phf", +] + +[[package]] +name = "palette_derive" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88537020289b719d81be994ccf1bbf4990f477e2f69ee52fe3e45f43a02e56be" +dependencies = [ + "by_address", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "palette_math" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e6eb142958d64335fb0e345c5b9ead2ecd6fc438c307e9d7d3c4fd428dbaf12" + [[package]] name = "parking" version = "2.2.1" @@ -1466,11 +3496,17 @@ dependencies = [ "cfg-if", "libc", "petgraph", - "redox_syscall", + "redox_syscall 0.5.18", "smallvec", - "windows-link", + "windows-link 0.2.1", ] +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + [[package]] name = "pastey" version = "0.2.3" @@ -1493,18 +3529,112 @@ dependencies = [ "indexmap 2.14.2", ] +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_shared", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "pin-project-lite" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + [[package]] name = "pkg-config" version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.16.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3287920cb847dee3de33d301c463fba14dda99db24214ddf93f83d3021f4c6" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "deflate", + "miniz_oxide 0.3.7", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + [[package]] name = "portable-atomic" version = "1.15.0" @@ -1544,6 +3674,12 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + [[package]] name = "proc-macro-crate" version = "3.5.0" @@ -1562,6 +3698,33 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + [[package]] name = "quote" version = "1.0.47" @@ -1571,12 +3734,30 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "r-efi" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" +[[package]] +name = "ramhorns" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d64e28e1069d26c22d4f085ca7f9e2e2eaee16f9d6f80e5fdce62cbf8670f" +dependencies = [ + "arrayvec", + "beef", + "fnv", + "logos", +] + [[package]] name = "rand" version = "0.8.8" @@ -1585,7 +3766,18 @@ checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ "libc", "rand_chacha", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", ] [[package]] @@ -1595,7 +3787,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -1607,6 +3799,53 @@ dependencies = [ "getrandom 0.2.17", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + [[package]] name = "redox_syscall" version = "0.5.18" @@ -1616,6 +3855,26 @@ dependencies = [ "bitflags 2.13.2", ] +[[package]] +name = "redox_syscall" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + [[package]] name = "redox_users" version = "0.5.3" @@ -1623,7 +3882,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0" dependencies = [ "libredox", - "thiserror", + "thiserror 2.0.21", ] [[package]] @@ -1675,12 +3934,61 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + [[package]] name = "rustc-demangle" version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b74b56ffa8bb2830709a538c2cbcae9aa062db0d2a42563bfb09bdaae44020eb" +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + [[package]] name = "rustix" version = "1.1.6" @@ -1690,7 +3998,7 @@ dependencies = [ "bitflags 2.13.2", "errno", "libc", - "linux-raw-sys", + "linux-raw-sys 0.12.1", "windows-sys 0.61.2", ] @@ -1752,12 +4060,43 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scoped_threadpool" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" + [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + [[package]] name = "serde" version = "1.0.229" @@ -1836,6 +4175,15 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "serde_variant" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a0068df419f9d9b6488fdded3f1c818522cdea328e02ce9d9f147380265a432" +dependencies = [ + "serde", +] + [[package]] name = "serde_with" version = "3.24.0" @@ -1869,6 +4217,18 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "serde_yaml" +version = "0.8.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b" +dependencies = [ + "indexmap 1.9.3", + "ryu", + "serde", + "yaml-rust", +] + [[package]] name = "serde_yaml" version = "0.9.34+deprecated" @@ -1904,6 +4264,21 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shell-words" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77" + +[[package]] +name = "shellexpand" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ccc8076840c4da029af4f87e4e8daeb0fca6b87bbb02e10cb60b791450e11e4" +dependencies = [ + "dirs 4.0.0", +] + [[package]] name = "shlex" version = "2.0.1" @@ -1920,18 +4295,127 @@ dependencies = [ "libc", ] +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" + [[package]] name = "slab" version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + [[package]] name = "smallvec" version = "1.16.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.6", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + [[package]] name = "socket2" version = "0.6.5" @@ -1942,12 +4426,33 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "spirv" +version = "0.3.0+sdk-1.3.268.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844" +dependencies = [ + "bitflags 2.13.2", +] + [[package]] name = "stable_deref_trait" version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + [[package]] name = "strsim" version = "0.11.1" @@ -1981,6 +4486,17 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7973cce6668464ea31f176d85b13c7ab3bba2cb3b77a2ed26abd7801688010a" +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "2.0.119" @@ -2025,7 +4541,7 @@ dependencies = [ "ntapi", "objc2-core-foundation", "objc2-io-kit", - "windows", + "windows 0.62.2", ] [[package]] @@ -2037,27 +4553,56 @@ dependencies = [ "fastrand", "getrandom 0.4.3", "once_cell", - "rustix", + "rustix 1.1.6", "windows-sys 0.61.2", ] +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + [[package]] name = "terminal_size" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" dependencies = [ - "rustix", + "rustix 1.1.6", "windows-sys 0.61.2", ] +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + [[package]] name = "thiserror" version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" dependencies = [ - "thiserror-impl", + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] @@ -2080,6 +4625,31 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "tiff" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a53f4706d65497df0c4349241deddf35f84cee19c87ed86ea8ca590f4464437" +dependencies = [ + "jpeg-decoder", + "miniz_oxide 0.4.4", + "weezl", +] + +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + [[package]] name = "time" version = "0.3.55" @@ -2112,6 +4682,31 @@ dependencies = [ "time-core", ] +[[package]] +name = "tiny-skia" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "tiny-skia-path", +] + +[[package]] +name = "tiny-skia-path" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + [[package]] name = "tinystr" version = "0.8.5" @@ -2144,6 +4739,15 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + [[package]] name = "toml_datetime" version = "1.1.2+spec-1.1.0" @@ -2180,6 +4784,7 @@ version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -2193,7 +4798,7 @@ checksum = "050686193eb999b4bb3bc2acfa891a13da00f79734704c4b8b4ef1a10b368a3c" dependencies = [ "crossbeam-channel", "symlink", - "thiserror", + "thiserror 2.0.21", "time", "tracing-subscriber", ] @@ -2258,6 +4863,21 @@ dependencies = [ "tracing-log", ] +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" + +[[package]] +name = "type-map" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90" +dependencies = [ + "rustc-hash 2.1.3", +] + [[package]] name = "tz-rs" version = "0.7.3" @@ -2301,6 +4921,18 @@ version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + [[package]] name = "unicode-xid" version = "0.2.6" @@ -2368,6 +5000,12 @@ dependencies = [ "shadow-rs", ] +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + [[package]] name = "walkdir" version = "2.5.0" @@ -2384,6 +5022,15 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.129" @@ -2397,6 +5044,17 @@ dependencies = [ "wasm-bindgen-shared", ] +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + [[package]] name = "wasm-bindgen-macro" version = "0.2.129" @@ -2429,6 +5087,334 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.6", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags 2.13.2", + "rustix 1.1.6", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-csd-frame" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" +dependencies = [ + "bitflags 2.13.2", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" +dependencies = [ + "rustix 1.1.6", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-experimental" +version = "20250721.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webbrowser" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2c8ddfbbf66e501434657400268cefe51b95140a0266236415cda7627732df7" +dependencies = [ + "jni", + "log", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "url", + "web-sys", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "js-sys", + "log", + "naga", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "indexmap 2.14.2", + "log", + "naga", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-emscripten" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b06ac3444a95b0813ecfd81ddb2774b66220b264b3e2031152a4a29fda4da6b5" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "27.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block", + "bytemuck", + "cfg-if", + "cfg_aliases", + "core-graphics-types 0.2.0", + "glow", + "glutin_wgl_sys", + "gpu-alloc", + "gpu-allocator", + "gpu-descriptor", + "hashbrown 0.16.1", + "js-sys", + "khronos-egl", + "libc", + "libloading", + "log", + "metal", + "naga", + "ndk-sys", + "objc", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "renderdoc-sys", + "smallvec", + "thiserror 2.0.21", + "wasm-bindgen", + "web-sys", + "wgpu-types", + "windows 0.58.0", + "windows-core 0.58.0", +] + +[[package]] +name = "wgpu-types" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "js-sys", + "log", + "thiserror 2.0.21", + "web-sys", +] + [[package]] name = "winapi" version = "0.3.9" @@ -2451,7 +5437,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.48.0", ] [[package]] @@ -2460,16 +5446,48 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections 0.2.0", + "windows-core 0.61.2", + "windows-future 0.2.1", + "windows-link 0.1.3", + "windows-numerics 0.2.0", +] + [[package]] name = "windows" version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" dependencies = [ - "windows-collections", - "windows-core", - "windows-future", - "windows-numerics", + "windows-collections 0.3.2", + "windows-core 0.62.2", + "windows-future 0.3.2", + "windows-numerics 0.3.1", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", ] [[package]] @@ -2478,7 +5496,33 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" dependencies = [ - "windows-core", + "windows-core 0.62.2", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", ] [[package]] @@ -2487,11 +5531,22 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement", - "windows-interface", - "windows-link", - "windows-result", - "windows-strings", + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading 0.1.0", ] [[package]] @@ -2500,9 +5555,20 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" dependencies = [ - "windows-core", - "windows-link", - "windows-threading", + "windows-core 0.62.2", + "windows-link 0.2.1", + "windows-threading 0.2.1", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] @@ -2516,6 +5582,17 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "windows-interface" version = "0.59.3" @@ -2527,20 +5604,54 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + [[package]] name = "windows-numerics" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" dependencies = [ - "windows-core", - "windows-link", + "windows-core 0.62.2", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", ] [[package]] @@ -2549,7 +5660,26 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", ] [[package]] @@ -2558,7 +5688,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -2567,7 +5697,25 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets", + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", ] [[package]] @@ -2576,7 +5724,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -2585,13 +5733,38 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", ] [[package]] @@ -2600,7 +5773,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -2609,42 +5782,142 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "orbclient", + "percent-encoding", + "pin-project", + "raw-window-handle", + "redox_syscall 0.4.1", + "rustix 0.38.44", + "sctk-adwaita", + "smithay-client-toolkit 0.19.2", + "smol_str", + "tracing", + "unicode-segmentation", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-plasma", + "web-sys", + "web-time", + "windows-sys 0.52.0", + "x11-dl", + "x11rb", + "xkbcommon-dl", +] + [[package]] name = "winnow" version = "1.0.4" @@ -2654,12 +5927,90 @@ dependencies = [ "memchr", ] +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + [[package]] name = "writeable" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading", + "once_cell", + "rustix 1.1.6", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "xcursor" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.13.2", + "dlib", + "log", + "once_cell", + "xkeysym", +] + +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + +[[package]] +name = "xml-rs" +version = "0.8.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" + +[[package]] +name = "yaml-rust" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85" +dependencies = [ + "linked-hash-map", +] + [[package]] name = "yoke" version = "0.8.4" @@ -2690,8 +6041,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" dependencies = [ "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", "async-recursion", + "async-task", "async-trait", + "blocking", "enumflags2", "event-listener", "futures-core", @@ -2699,7 +6056,7 @@ dependencies = [ "hex", "libc", "ordered-stream", - "rustix", + "rustix 1.1.6", "serde", "serde_repr", "tokio", @@ -2713,6 +6070,30 @@ dependencies = [ "zvariant", ] +[[package]] +name = "zbus-lockstep" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863" +dependencies = [ + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus-lockstep-macros" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "zbus-lockstep", + "zbus_xml", + "zvariant", +] + [[package]] name = "zbus_macros" version = "5.19.0" @@ -2739,6 +6120,18 @@ dependencies = [ "zvariant", ] +[[package]] +name = "zbus_xml" +version = "5.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a" +dependencies = [ + "serde", + "winnow", + "zbus_names", + "zvariant", +] + [[package]] name = "zcheapstr" version = "1.1.0" @@ -2822,12 +6215,33 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + [[package]] name = "zmij" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + [[package]] name = "zvariant" version = "5.15.1" diff --git a/Cargo.toml b/Cargo.toml index 7987e630..46611746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,11 +12,14 @@ version = "0.1.0" komorebi-layouts = { git = "https://github.com/LGUG2Z/komorebi", rev = "f08aa55511d77ca56ab0e789efabeb0a237a463e", features = [ "schemars", ] } +# the themes (and the palettes made from pictures), from the same upstream revision +komorebi-themes = { git = "https://github.com/LGUG2Z/komorebi", rev = "f08aa55511d77ca56ab0e789efabeb0a237a463e" } chrono = "0.4" clap = { version = "4", features = ["derive", "wrap_help"] } color-eyre = "0.6" crossbeam-channel = "0.5" +crossbeam-utils = "0.8" dirs = "6" hotwatch = "0.5" lazy_static = "1" diff --git a/README.md b/README.md index 3d1f0a2e..6638a548 100644 --- a/README.md +++ b/README.md @@ -70,8 +70,9 @@ without a checkout of the toolchain. the settings of KWin's it needs in the user's `kwinrc`, the parking desktop it hides the back of a stack and the windows behind a monocle on, and the borders and animations it has KWin draw (`kwin`), the border and animation settings and - the look they make (`border_manager`, `animation`), the opacity of the windows - that do not have the focus (`transparency_manager`), + the look they make (`border_manager`, `animation`), the colors a theme gives the + borders (`theme_manager`), the opacity of the windows that do not have the focus + (`transparency_manager`), the model of what it tiles (`monitor`, `workspace`, `container`, `window`), the window manager that keeps the model (`window_manager`), loads it from the backend (`desktop`) and changes it when the compositor reports an event @@ -263,7 +264,8 @@ animated by another effect, Geometry Change, which `animation`, `animation-duration` and `animation-style` turn on and set. `transparency` makes the windows that do not have the focus see-through, by the opacity KWin gives a window, and `focus-follows-mouse` has KWin give the focus to the window under the -pointer, by its own focus policy. +pointer, by its own focus policy. A theme gives the borders their colors, and +the palette of a picture is made and kept in the cache directory. ## Documentation diff --git a/deny.toml b/deny.toml index 4530dfd5..3073b13f 100644 --- a/deny.toml +++ b/deny.toml @@ -16,15 +16,22 @@ ignore = [ { id = "RUSTSEC-2026-0370", reason = "zvariant is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, { id = "RUSTSEC-2026-0371", reason = "zbus_names is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, { id = "RUSTSEC-2026-0372", reason = "zvariant_derive is maintained inside zbus from zbus 6; komorebi talks to KWin with zbus 5" }, + { id = "RUSTSEC-2024-0320", reason = "yaml-rust comes with serde_yaml 0.8 under flavours, which komorebi-themes makes palettes with; not using any yaml features from this library" }, + { id = "RUSTSEC-2025-0056", reason = "adler comes with the image decoder under flavours, which komorebi-themes makes palettes with; only used for color palette generation" }, + { id = "RUSTSEC-2026-0192", reason = "ttf-parser comes with the fonts of egui, which komorebi-themes pulls in for its theme types; komorebi draws no text" }, ] [licenses] allow = [ "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", "CC0-1.0", "ISC", "MIT", "MPL-2.0", + "OFL-1.1", + "Ubuntu-font-1.0", "Unicode-3.0", "Zlib", "LicenseRef-Komorebi-2.0", @@ -51,11 +58,21 @@ crate = "komorebic" expression = "LicenseRef-Komorebi-2.0" license-files = [] +[[licenses.clarify]] +crate = "komorebi-themes" +expression = "LicenseRef-Komorebi-2.0" +license-files = [] + [[licenses.clarify]] crate = "version" expression = "LicenseRef-Komorebi-2.0" license-files = [] +[[licenses.clarify]] +crate = "base16-egui-themes" +expression = "MIT" +license-files = [] + [bans] multiple-versions = "allow" wildcards = "allow" @@ -67,4 +84,10 @@ external-default-features = "allow" unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] -allow-git = ["https://github.com/LGUG2Z/komorebi"] +allow-git = [ + "https://github.com/LGUG2Z/base16-egui-themes", + "https://github.com/LGUG2Z/base16_color_scheme", + "https://github.com/LGUG2Z/catppuccin-egui", + "https://github.com/LGUG2Z/flavours", + "https://github.com/LGUG2Z/komorebi", +] diff --git a/docs/dev/ARCHITECTURE.md b/docs/dev/ARCHITECTURE.md index ae07bd58..93070d08 100644 --- a/docs/dev/ARCHITECTURE.md +++ b/docs/dev/ARCHITECTURE.md @@ -363,12 +363,13 @@ notified. its socket, writes the JSON and closes the connection, all on the thread that handled the event or the message, with the window manager still locked. A subscriber with `filter_state_changes` is skipped when the state did not change, unless the notification is -about a window being shown or a subscriber being added. A subscriber that cannot be -connected to is removed, with its socket file, after the loop. Writing to a subscriber that -was connected to has no timeout, and a failed write returns an error from the call that -handled the event or the message. A subscriber that stops reading therefore holds the window -manager, and with it the thread that handles events: the backend's events wait in the -channel of [`window_manager_event_listener`], and past 20 the backend drops them. +about a window being shown, a subscriber being added, a theme being set (the colors of the +borders are not part of the state) or the configuration being reloaded. A subscriber that +cannot be connected to is removed, with its socket file, after the loop. Writing to a +subscriber that was connected to has no timeout, and a failed write returns an error from the +call that handled the event or the message. A subscriber that stops reading therefore holds +the window manager, and with it the thread that handles events: the backend's events wait in +the channel of [`window_manager_event_listener`], and past 20 the backend drops them. When the daemon stops ([`WindowManager::stop`], or `SIGINT` and `SIGTERM` in `main.rs`), it connects to each subscriber and shuts the connection down without writing anything. @@ -824,6 +825,23 @@ once, when the effect is the stock one: every border is then the focused or the the look. [PLATFORM.md](PLATFORM.md#kwin-effects) has the effect, its settings and what was measured. +## Themes + +A theme gives the borders their colors. The `Theme` message carries a [`KomorebiTheme`]: a +Catppuccin theme, a Base16 theme or a Base16 palette, each with the color it gives to each of the +six kinds of border, and a default for the ones it does not name. +[`theme_manager::send_notification`] puts the six colors into the statics of [`border_manager`], +keeps the theme as [`theme_manager::CURRENT_THEME`] and asks the backend for the look again, on +the thread that handled the message; [`border_manager::update_colours`] hands them to the border +effect with the next event or message. The palette of a picture is made by +`komorebi-themes` ([`komorebi_themes::generate_base16_palette`]), which takes seconds, so +[`theme_manager::wallpaper_palette`] keeps each palette it makes in `komorebi` in the user's cache +directory, in a file named by [`theme_manager::palette_file`] for the picture, a hash of its path, +size and time of last change, and the variant: a picture that was painted over, or one of the same +name in another folder, has a palette of its own. A picture it cannot make a palette from (it +cannot be read, or has fewer than eight colors) has none, and the borders keep their colors. +[DESIGN.md](DESIGN.md#why-is-a-palette-kept-by-the-hash-of-its-picture) has the reason. + ## Transparency The opacity of a window is a property KWin has, so komorebi sets it ([`Backend::set_opacity`], @@ -953,6 +971,8 @@ module's unit. - [`border_manager`](../../komorebi/src/border_manager/mod.rs): the border settings, and the [`Look`] they make, which it asks the backend for. - [`animation`](../../komorebi/src/animation/mod.rs): the animation settings, which the look has. +- [`theme_manager`](../../komorebi/src/theme_manager.rs): a theme's colors for the borders, and the + palettes made from pictures. - [`transparency_manager`](../../komorebi/src/transparency_manager.rs): which windows are see-through, and the opacity they are given. - [`kwin::effects`](../../komorebi/src/kwin/effects.rs): the KWin effect that draws the border, @@ -1106,6 +1126,9 @@ the fake. The window manager is its only caller, through [`backend`]. The contra | Every style is a curve Qt has | test: [`AnimationStyle::qt_curve`] is a `match` of every style, and the test checks each against its name without the "Ease" | `every_style_is_a_curve_qt_has`, the doctest of `qt_curve`, `vm-features` (section D: two curves are in different places at the same moment) | a cubic Bézier is an ease out | | Only the windows the rules make see-through are, and only while transparency is on | framework path: [`transparency_manager::apply`] asks [`transparency_manager::transparent_windows`] and sends the difference from [`WindowManager::opacity_applied`] | `unfocused_windows_are_transparent_and_the_focused_one_is_not`, `turning_transparency_off_makes_everything_opaque_again`, `a_monocled_window_is_not_transparent`, `windows_the_rules_ignore_keep_their_opacity`, `vm-features` (section B) | none | | The `transparency` keys of the file are the settings, and a key the file leaves out has the default | framework path: `StaticConfig::apply_globals` stores `transparency` and `transparency_alpha` whether the file has them or not, and adds the ignore rules to `TRANSPARENCY_BLACKLIST` | `the_transparency_keys_of_the_file_are_the_transparency_settings` | none | +| A theme gives every kind of border a color, the one it names or the theme's default | framework path: [`theme_manager::send_notification`] stores a color for each of the six kinds, from the theme's own defaults for the ones the message does not name | `a_named_theme_colours_every_kind_of_border` | none | +| The `border_colours` of the file are the border colors, and a theme in the file wins over them | framework path: `StaticConfig::apply_globals` stores each color the file names, and then calls [`theme_manager::send_notification`] for the `theme` | `the_colour_and_theme_keys_of_the_file_are_the_border_colours` | none | +| A picture's palette is made again when the picture changes, and is not mistaken for another picture's | framework path: [`theme_manager::palette_file`] names the file by a hash of the picture's path, size and time of last change, and the variant | the doctest of `palette_file` | the hash is not a proof of identity | | A window komorebi made see-through is opaque again when komorebi exits | framework path: [`WindowManager::stop`] and `main.rs` call [`transparency_manager::restore`] | `what_komorebi_made_see_through_is_opaque_again_when_it_exits` | `SIGKILL`: the windows stay as they were drawn | | What the backend sends for an opacity is what the bridge sets | tests: the `opacity` command of [`fixtures`] is what the backend's test sends and what the bridge's test answers with, checking the window's `opacity` | `the_commands_of_a_session_go_to_the_bridge_as_the_bridges_tests_answer_it`, `what the bridge sends for a session is what the daemon's tests read`, `a window is given the opacity it is asked for, and one KWin has not got is given back` | none | | The user's focus policy is put back when focus follows mouse is turned off and when komorebi exits | framework path: [`Kwinrc`] records the first value of each key it sets, `set_focus_follows_mouse(false)` puts the two keys back with [`Kwinrc::restore_keys`] and `shutdown` puts back all | `one_key_can_be_put_back_while_the_others_in_its_group_stay_changed`, `what_komorebi_changed_is_put_back_exactly_and_what_it_added_is_removed`, `vm-focus-follows-mouse` | `SIGKILL`: the next run puts it back when it stops | @@ -1247,7 +1270,9 @@ A window is shown, and ends up on a tile: [`komorebi/tests/animation.rs`](../../komorebi/tests/animation.rs), the messages that set the animation, [`komorebi/tests/animation_config.rs`](../../komorebi/tests/animation_config.rs), its key of the file, and [`komorebi/tests/animation_stack.rs`](../../komorebi/tests/animation_stack.rs), - the stack commands that turn it off; [`komorebi/tests/focus_follows_mouse.rs`](../../komorebi/tests/focus_follows_mouse.rs), + the stack commands that turn it off; [`komorebi/tests/themes.rs`](../../komorebi/tests/themes.rs), + a named theme and [`komorebi/tests/theme_config.rs`](../../komorebi/tests/theme_config.rs), the + colors and the theme of the file; [`komorebi/tests/focus_follows_mouse.rs`](../../komorebi/tests/focus_follows_mouse.rs), focus follows mouse; [`komorebi/tests/transparency.rs`](../../komorebi/tests/transparency.rs) and [`komorebi/tests/transparency_config.rs`](../../komorebi/tests/transparency_config.rs), transparency and its keys of the file; [`komorebi/tests/border_colours.rs`](../../komorebi/tests/border_colours.rs) and @@ -1343,6 +1368,12 @@ A window is shown, and ends up on a tile: [`border_manager::send_notification`]: ../../komorebi/src/border_manager/mod.rs [`BORDER_DRAWN`]: ../../komorebi/src/border_manager/mod.rs [`animation`]: ../../komorebi/src/animation/mod.rs +[`KomorebiTheme`]: ../../komorebi/src/core/mod.rs +[`theme_manager::send_notification`]: ../../komorebi/src/theme_manager.rs +[`theme_manager::CURRENT_THEME`]: ../../komorebi/src/theme_manager.rs +[`theme_manager::wallpaper_palette`]: ../../komorebi/src/theme_manager.rs +[`theme_manager::palette_file`]: ../../komorebi/src/theme_manager.rs +[`komorebi_themes::generate_base16_palette`]: https://github.com/LGUG2Z/komorebi/tree/f08aa55511d77ca56ab0e789efabeb0a237a463e/komorebi-themes [`WindowManager::focus_follows_mouse`]: ../../komorebi/src/window_manager.rs [`Backend::set_focus_follows_mouse`]: ../../komorebi/src/backend/mod.rs [`Kwinrc::restore_keys`]: ../../komorebi/src/kwin/kwinrc.rs diff --git a/docs/dev/DESIGN.md b/docs/dev/DESIGN.md index 79867385..dd957777 100644 --- a/docs/dev/DESIGN.md +++ b/docs/dev/DESIGN.md @@ -481,6 +481,15 @@ which is KWin's setting for no delay between the pointer entering a window and t given the focus; why 0 and not the delay KWin has by default is not written down, and needs a reason. +## Why is a palette kept by the hash of its picture? + +Because the name of a picture alone does not say which picture it is: two folders can each have a +`wallpaper.png`, and one wallpaper can be painted over. A palette takes seconds to make for a +large picture, so it is kept, in the user's cache directory (`~/.cache/komorebi`), where it +outlives a login; the runtime directory, where the socket is, does not. The file is named after the +picture, a hash of its path, size and time of last change, and the variant. A palette that cannot +be kept is made again the next time. komorebi for Windows keeps them by file name alone. + ## Why are the effects patched? Because the stock effects lack what komorebi needs of them. Each patch leaves the effect diff --git a/docs/index.md b/docs/index.md index cd559fbe..284a0548 100644 --- a/docs/index.md +++ b/docs/index.md @@ -62,8 +62,9 @@ configuration of a running daemon. [Borders](usage/borders.md) explains how komorebi has KWin draw a border around each window, [Animation](usage/animation.md) how it has KWin animate the windows going to their places, and [Transparency](usage/transparency.md) how it makes the windows that do not have the focus -see-through, and [Focus follows mouse](usage/focus-follows-mouse.md) how it has KWin give the focus -to the window under the pointer. +see-through, [Focus follows mouse](usage/focus-follows-mouse.md) how it has KWin give the focus +to the window under the pointer, and [Themes](usage/themes.md) how a theme gives the borders their +colors. [Subscribing to notifications](usage/subscribing-to-notifications.md) explains how a program such as a status bar follows what komorebi does. The [CLI reference](cli/start.md) has a page for every `komorebic` command, generated from its help. diff --git a/docs/usage/borders.md b/docs/usage/borders.md index 61a53063..c7aba91a 100644 --- a/docs/usage/borders.md +++ b/docs/usage/borders.md @@ -90,6 +90,19 @@ starts and when the file changes; a key it leaves out leaves the setting as it i } ``` +`border_colours` sets the colors of the kinds of window above, each as red, green and blue or as +a hex color, and leaves out the kinds it does not name. A [theme](themes.md), which the +`theme` key of the file gives too, replaces them. + +```json +{ + "border_colours": { + "single": { "r": 255, "g": 128, "b": 0 }, + "unfocused": "#404040" + } +} +``` + ## What is put back The effect keeps its settings in the user's `kwinrc`, in the group `[Round-Corners]`. komorebi diff --git a/docs/usage/configuration.md b/docs/usage/configuration.md index a292727b..0e9a51ae 100644 --- a/docs/usage/configuration.md +++ b/docs/usage/configuration.md @@ -38,8 +38,9 @@ trailing commas. Reading the file again sets every setting of the daemon from it, and a key the file leaves out is the default of the setting: a `resize-delta` given with a command is gone when the file changes. These stay as they were when the file leaves them out: `default_workspace_padding`, -`default_container_padding`, `display_index_preferences`, the four settings of the borders and the -animation, when the file has no `animation`. The rules add up, as +`default_container_padding`, `display_index_preferences`, the four settings of the borders, each +color of `border_colours` the file does not name, the theme and the animation, when the file has no +`animation`. The rules add up, as [Rules](#rules) says. A workspace the file lists gets its name, padding, offsets and rules from its entry, and its layout when the entry names one; a workspace the file does not list is left as it is. @@ -101,6 +102,8 @@ can have values of their own, which come before the default. | `border_width` | `10` | How thick the border is, in pixels (`active_window_border_width`) | | `border_offset` | `0` | How much more room than the width the layout leaves around each window (`active_window_border_offset`) | | `border_radius` | `10` | How round the corners of the border are, in pixels | +| `border_colours` | see [Borders](borders.md#colors) | The color of the border of each kind of window: `single`, `stack`, `monocle`, `floating`, `unfocused` and `unfocused_locked`, each as `{ "r": 66, "g": 165, "b": 245 }` or `"#42A5F5"` (`active_window_border_colours`). A theme replaces them | +| `theme` | none | A theme that gives every kind of border its color: a Catppuccin theme, a Base16 scheme or a palette of your own ([Themes](themes.md)). It wins over `border_colours` | [Borders](borders.md) explains what the compositor draws and what the layout leaves room for. `komorebic border`, `border-width` and `border-offset` change the first three while the daemon diff --git a/docs/usage/subscribing-to-notifications.md b/docs/usage/subscribing-to-notifications.md index 22b8480f..b87a0632 100644 --- a/docs/usage/subscribing-to-notifications.md +++ b/docs/usage/subscribing-to-notifications.md @@ -50,8 +50,9 @@ sent. A subscriber can ask to be sent a notification only when the event or the message changed the state, with the `filter_state_changes` option. It is still sent the notification of a window that is shown, of every new subscription, so it receives the state as soon as it -subscribes, and of every reload of `komorebi.json`. `komorebic subscribe-socket` has no option for it; a program writes the message -on the daemon's socket itself: +subscribes, of a theme, which changes the colors of the borders and nothing in the state, +and of every reload of `komorebi.json`. `komorebic subscribe-socket` has no option for it; a +program writes the message on the daemon's socket itself: ```sh printf '%s' '{"type":"AddSubscriberSocketWithOptions","content":["bar.sock",{"filter_state_changes":true}]}' | diff --git a/docs/usage/themes.md b/docs/usage/themes.md new file mode 100644 index 00000000..4e49a6c4 --- /dev/null +++ b/docs/usage/themes.md @@ -0,0 +1,68 @@ +# Themes + +A theme gives the borders their colors. Instead of choosing the color of each kind of window with +[`komorebic border-colour`](../cli/border-colour.md), a program tells the daemon to take a theme, +and the six kinds of border (`single`, `stack`, `monocle`, `floating`, `unfocused` and +`unfocused-locked`) take the colors the theme gives them: a Catppuccin theme, a Base16 theme, or a +Base16 palette of your own. + +There is no `komorebic` command for it: the daemon takes it from the `theme` key of +[`komorebi.json`](configuration.md#borders), or as a message on its socket, the `Theme` message, +which a program sends with [`komorebi-client`](../../komorebi-client/src/lib.rs) or a script writes +as a line of JSON. + +```rust +use komorebi_client::SocketMessage; +use komorebi_client::send_message; + +let theme: SocketMessage = r#"{ + "type": "Theme", + "content": { "palette": "Catppuccin", "name": "Mocha" } +}"# +.parse()?; +send_message(&theme)?; +``` + +The key has the same fields as the message, and wins over `border_colours` of the file, which has +no effect while a theme is set: + +```json +{ + "theme": { "palette": "Catppuccin", "name": "Mocha" } +} +``` + +The file sets the theme when the daemon starts and when the file changes. A file without `theme` +leaves the one the daemon has. + +## What a theme gives + +`palette` is the kind of theme (`Catppuccin`, `Base16` or `Custom`), and `name` the theme: one of +Catppuccin's four, `Latte`, `Frappe`, `Macchiato` and `Mocha`, or one of the Base16 schemes +(`Custom` has a `colours` of the sixteen Base16 colors instead). A kind of border that the message +does not name takes the theme's default for it: + +| Border | Catppuccin | Base16 | +|---|---|---| +| `single_border` | Blue | Base0D | +| `stack_border` | Green | Base0B | +| `monocle_border` | Pink | Base0F | +| `floating_border` | Yellow | Base09 | +| `unfocused_border` | Base | Base01 | +| `unfocused_locked_border` | Red | Base08 | + +The message can name another color of the theme for any of them, as `"single_border": "Mauve"` +for Catppuccin or `"single_border": "Base0E"` for Base16. + +A theme sets the colors that `border-colour` sets, and replaces them, and the colors set after it +replace the theme's. The theme is kept as the current one. The border has to be on and drawn by +the effect for any of it to show ([Borders](borders.md)). + +## Palettes from a picture + +The Base16 palette of a picture can be made from the picture itself: the same palette generator as +komorebi for Windows takes the picture's colors and gives a light or a dark variant. A palette +takes seconds to make for a large picture, so each one is kept in `$XDG_CACHE_HOME/komorebi` +(`~/.cache/komorebi`), in a file named for the picture, a hash of its path, size and time of last +change, and the variant. It is made again when the path, the size or the time of change differ. A +picture with fewer than eight colors has no palette. diff --git a/komorebi-client/Cargo.toml b/komorebi-client/Cargo.toml index 066c69bd..0fd64e3e 100644 --- a/komorebi-client/Cargo.toml +++ b/komorebi-client/Cargo.toml @@ -5,6 +5,7 @@ edition = "2024" [dependencies] komorebi = { path = "../komorebi", default-features = false } +komorebi-themes = { workspace = true } serde_json = { workspace = true } diff --git a/komorebi-client/src/lib.rs b/komorebi-client/src/lib.rs index cdbc4d4f..caa9fea4 100644 --- a/komorebi-client/src/lib.rs +++ b/komorebi-client/src/lib.rs @@ -84,6 +84,9 @@ pub use komorebi::static_config::StaticConfig; pub use komorebi::window::Window; pub use komorebi::workspace::Workspace; pub use komorebi::workspace::WorkspaceLayer; +pub use komorebi_themes::KomorebiTheme; +pub use komorebi_themes::colour::Colour; +pub use komorebi_themes::colour::Rgb; use std::borrow::Borrow; use std::io::BufReader; use std::io::Read; @@ -319,8 +322,8 @@ pub fn subscribe(name: &str) -> std::io::Result { /// The same as [`subscribe`], with the [`SubscribeOptions`] the daemon applies to this subscriber /// /// With `filter_state_changes`, the daemon sends a notification only when the event or the message -/// changed the [`State`], and always when a window is shown, when a subscriber is added and when -/// the configuration is reloaded. +/// changed the [`State`], and always when a window is shown, when a subscriber is added, when a +/// theme is set and when the configuration is reloaded. /// /// # Errors /// diff --git a/komorebi-client/tests/subscribe.rs b/komorebi-client/tests/subscribe.rs index 5c22ee40..da9c687f 100644 --- a/komorebi-client/tests/subscribe.rs +++ b/komorebi-client/tests/subscribe.rs @@ -25,6 +25,9 @@ use komorebi_client::SubscribeOptions; use komorebi_client::send_query; use komorebi_client::subscribe; use komorebi_client::subscribe_with_options; +use komorebi_themes::Catppuccin; +use komorebi_themes::KomorebiTheme; +use komorebi_themes::KomorebiThemeCatppuccin; use parking_lot::Mutex; use std::io::ErrorKind; use std::io::Read; @@ -249,6 +252,37 @@ fn a_subscriber_that_filters_state_changes_is_not_sent_what_changed_nothing() Ok(()) } +#[test] +fn a_subscriber_that_filters_state_changes_is_sent_a_theme() +-> Result<(), Box> { + let (_turn, _daemon) = daemon(); + let options = SubscribeOptions { + filter_state_changes: true, + }; + let filtered = Subscriber::new("theme.sock", subscribe_with_options("theme.sock", options)?); + filtered.subscribed(); + + // the colors of the borders are not part of the state, so the state is the same after a theme + // as before it; a message that changes nothing else is not sent + send_query(&SocketMessage::State)?; + let theme = KomorebiTheme::Catppuccin(KomorebiThemeCatppuccin { + name: Catppuccin::Mocha, + bar_accent: None, + single_border: None, + stack_border: None, + monocle_border: None, + floating_border: None, + unfocused_border: None, + unfocused_locked_border: None, + }); + send_query(&SocketMessage::Theme(Box::new(theme)))?; + + let received = + filtered.until(|event| matches!(event, NotificationEvent::Socket(SocketMessage::Theme(_)))); + assert_eq!(received.len(), 1, "{received:?}"); + Ok(()) +} + #[test] fn a_subscriber_that_is_gone_is_dropped_and_not_tried_again() -> Result<(), Box> { diff --git a/komorebi/Cargo.toml b/komorebi/Cargo.toml index bb3fda84..d0950999 100644 --- a/komorebi/Cargo.toml +++ b/komorebi/Cargo.toml @@ -5,12 +5,14 @@ description = "A tiling window manager for KDE Plasma" edition = "2024" [dependencies] +komorebi-themes = { workspace = true } komorebi-layouts = { workspace = true } version = { path = "../version" } clap = { workspace = true } color-eyre = { workspace = true } crossbeam-channel = { workspace = true } +crossbeam-utils = { workspace = true } ctrlc = { version = "3", features = ["termination"] } dirs = { workspace = true } hotwatch = { workspace = true } diff --git a/komorebi/src/border_manager/mod.rs b/komorebi/src/border_manager/mod.rs index cc27cf55..c8f6de66 100644 --- a/komorebi/src/border_manager/mod.rs +++ b/komorebi/src/border_manager/mod.rs @@ -1,4 +1,4 @@ -//! The borders around the windows, which the compositor draws. +//! The borders around the windows, which the compositor draws, and their colors. //! //! komorebi draws no border itself. KWin's KDE Rounded Corners effect draws an outline outside //! each window, in the gap komorebi leaves between tiles, and this module decides what it looks @@ -13,9 +13,9 @@ //! is to the layout ([`window_kinds`]). Only komorebi's build of the effect takes them; the //! stock one draws the look's two colors, one for the active window and one for the others. //! -//! The settings are the statics of this module, which the `komorebic border*` commands set and -//! the `border*` keys of `komorebi.json` ([`crate::static_config::StaticConfig`]) give their -//! first values. +//! The settings are the statics of this module, which the `komorebic border*` commands and the +//! themes set, and the `border*` keys of `komorebi.json` ([`crate::static_config::StaticConfig`]) +//! give their first values. use crate::backend::AnimationLook; use crate::backend::BorderLook; @@ -25,6 +25,8 @@ use crate::core::WindowKind; use crate::core::animation::AnimationStyle; use crate::window_manager::WindowManager; use color_eyre::eyre; +use komorebi_themes::colour::Colour; +use komorebi_themes::colour::Rgb; use lazy_static::lazy_static; use std::sync::atomic::AtomicBool; use std::sync::atomic::AtomicI32; @@ -46,18 +48,23 @@ pub static BORDER_RADIUS: AtomicI32 = AtomicI32::new(10); pub static BORDER_ENABLED: AtomicBool = AtomicBool::new(true); lazy_static! { - /// The color of the focused window's border, as [`pack`] stores it. - pub static ref FOCUSED: AtomicU32 = AtomicU32::new(pack(66, 165, 245)); - /// The color of the border of every other window, as [`pack`] stores it. - pub static ref UNFOCUSED: AtomicU32 = AtomicU32::new(pack(128, 128, 128)); + /// The color of the focused window's border, red, green and blue in one number. + pub static ref FOCUSED: AtomicU32 = + AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(66, 165, 245)))); + /// The color of the border of every other window. + pub static ref UNFOCUSED: AtomicU32 = + AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(128, 128, 128)))); /// The color of the border of a locked container that does not have the focus. - pub static ref UNFOCUSED_LOCKED: AtomicU32 = AtomicU32::new(pack(158, 8, 8)); + pub static ref UNFOCUSED_LOCKED: AtomicU32 = + AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(158, 8, 8)))); /// The color of the border of a monocled window. - pub static ref MONOCLE: AtomicU32 = AtomicU32::new(pack(255, 51, 153)); + pub static ref MONOCLE: AtomicU32 = + AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(255, 51, 153)))); /// The color of the border of a stack that has the focus. - pub static ref STACK: AtomicU32 = AtomicU32::new(pack(0, 165, 66)); + pub static ref STACK: AtomicU32 = AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(0, 165, 66)))); /// The color of the border of a floating window that has the focus. - pub static ref FLOATING: AtomicU32 = AtomicU32::new(pack(245, 245, 165)); + pub static ref FLOATING: AtomicU32 = + AtomicU32::new(u32::from(Colour::Rgb(Rgb::new(245, 245, 165)))); } /// Returns the kind of border the stock border effect gives a window of this kind. @@ -170,11 +177,8 @@ pub fn window_colours(wm: &WindowManager) -> Vec<(u32, u32)> { window_kinds(wm) .into_iter() .map(|(id, kind)| { - let (r, g, b) = unpack(kind_colour(kind)); - ( - id, - (u32::from(r) << 16) | (u32::from(g) << 8) | u32::from(b), - ) + let rgb = Rgb::from(kind_colour(kind)); + (id, (rgb.r << 16) | (rgb.g << 8) | rgb.b) }) .collect() } @@ -197,29 +201,6 @@ pub fn update_colours(wm: &WindowManager) { } } -/// Returns a color as the statics store it: red in the low byte, then green, then blue. -/// -/// ```rust -/// use komorebi::border_manager::pack; -/// use komorebi::border_manager::unpack; -/// -/// assert_eq!(pack(1, 2, 3), 0x030201); -/// assert_eq!(unpack(pack(66, 165, 245)), (66, 165, 245)); -/// ``` -pub const fn pack(r: u32, g: u32, b: u32) -> u32 { - r | (g << 8) | (b << 16) -} - -/// Returns the red, green and blue of a color as the statics store it. The bits above the third -/// byte are dropped. -pub const fn unpack(colour: u32) -> (u8, u8, u8) { - ( - (colour & 0xff) as u8, - ((colour >> 8) & 0xff) as u8, - ((colour >> 16) & 0xff) as u8, - ) -} - /// Whether the compositor is drawing the borders, as the backend last answered /// [`send_notification`]. /// @@ -235,11 +216,11 @@ pub static BORDER_DRAWN: AtomicBool = AtomicBool::new(false); /// /// ```rust /// use komorebi::border_manager::look; -/// use komorebi::border_manager::pack; /// use komorebi::core::animation::AnimationStyle; +/// use komorebi_themes::colour::Rgb; /// -/// let blue = pack(66, 165, 245); -/// let grey = pack(128, 128, 128); +/// let blue = u32::from(Rgb::new(66, 165, 245)); +/// let grey = u32::from(Rgb::new(128, 128, 128)); /// /// let on = look( /// true, @@ -265,12 +246,17 @@ pub fn look( unfocused: u32, animation: Option<(u64, AnimationStyle)>, ) -> Look { + let rgb = |colour: u32| { + let rgb = Rgb::from(colour); + (rgb.r as u8, rgb.g as u8, rgb.b as u8) + }; + Look { border: enabled.then(|| BorderLook { width: width.max(0), radius: radius.max(0), - focused: unpack(focused), - unfocused: unpack(unfocused), + focused: rgb(focused), + unfocused: rgb(unfocused), }), animation: animation.map(|(duration_ms, style)| AnimationLook { duration_ms, @@ -326,8 +312,8 @@ mod tests { #[test] fn the_stored_colours_become_red_green_and_blue() { - let blue = pack(66, 165, 245); - let grey = pack(128, 128, 128); + let blue: u32 = Colour::Rgb(Rgb::new(66, 165, 245)).into(); + let grey: u32 = Colour::Rgb(Rgb::new(128, 128, 128)).into(); let look = look(true, 10, 12, blue, grey, None); let border = look.border.unwrap(); diff --git a/komorebi/src/core/mod.rs b/komorebi/src/core/mod.rs index d78d1985..6a9b2b88 100644 --- a/komorebi/src/core/mod.rs +++ b/komorebi/src/core/mod.rs @@ -17,6 +17,7 @@ use crate::core::animation::AnimationStyle; use crate::core::pathext::ResolvedPathBuf; use clap::ValueEnum; use color_eyre::eyre; +use komorebi_themes::KomorebiTheme; use serde::Deserialize; use serde::Serialize; use std::num::NonZeroUsize; @@ -291,8 +292,8 @@ pub enum StateQuery { /// sent a notification for every event and message the window manager handles. With /// `filter_state_changes`, it is sent one only when the event or the message changed the /// [`State`](crate::state::State), and always when a window is shown, when a subscriber is added -/// (so a new subscriber receives the state as soon as it subscribes) and when the configuration is -/// reloaded. +/// (so a new subscriber receives the state as soon as it subscribes), when a theme is set (the +/// colors of the borders are not part of the state) and when the configuration is reloaded. /// /// # Example /// @@ -473,6 +474,7 @@ pub enum SocketMessage { // WatchConfiguration(bool), // CompleteConfiguration, // AltFocusHack(bool), + Theme(Box), Transparency(bool), ToggleTransparency, TransparencyAlpha(u8), diff --git a/komorebi/src/lib.rs b/komorebi/src/lib.rs index 36d4c566..bc50d3c1 100644 --- a/komorebi/src/lib.rs +++ b/komorebi/src/lib.rs @@ -13,7 +13,7 @@ //! //! On KDE Plasma the backend is [`kwin::KWinBackend`], which talks to a script it loads into KWin. //! The compositor also draws what the windows look like: [`border_manager`] asks the backend for -//! the borders, [`animation`] holds how windows are animated going to their places, and +//! the borders, [`theme_manager`] colors them from a theme, [`animation`] holds how windows are animated going to their places, and //! [`transparency_manager`] makes the windows that do not have the focus see-through. //! //! The daemon also listens on a socket, `komorebi.sock` in [`struct@DATA_DIR`], for the messages @@ -69,6 +69,7 @@ pub mod process_command; pub mod process_event; pub mod state; pub mod static_config; +pub mod theme_manager; pub mod transparency_manager; pub mod window; pub mod window_manager; @@ -263,7 +264,8 @@ pub struct Notification { /// Each subscriber is sent the notification as JSON on a new connection to its socket, which is /// closed after it. A subscriber with `filter_state_changes` in its [`SubscribeOptions`] is sent it /// only if `state_has_been_modified`, or if the notification is about a window being shown, a -/// subscriber being added or the configuration being reloaded. +/// subscriber being added, a theme being set (the colors of the borders are not part of the +/// [`State`]) or the configuration being reloaded. /// /// A subscriber that cannot be connected to (its program has exited, or its socket was removed) /// is removed, with its socket file, and is not tried again: it has to subscribe again. The @@ -323,6 +325,7 @@ pub fn notify_subscribers( notification.event, NotificationEvent::Socket(SocketMessage::AddSubscriberSocket(_)) | NotificationEvent::Socket(SocketMessage::AddSubscriberSocketWithOptions(_, _)) + | NotificationEvent::Socket(SocketMessage::Theme(_)) | NotificationEvent::Socket(SocketMessage::ReloadStaticConfiguration(_)) | NotificationEvent::WindowManager(WindowManagerEvent::Show(_, _)) ); diff --git a/komorebi/src/process_command.rs b/komorebi/src/process_command.rs index ffeb1324..cc165804 100644 --- a/komorebi/src/process_command.rs +++ b/komorebi/src/process_command.rs @@ -248,6 +248,7 @@ use crate::notify_subscribers; use crate::state::GlobalState; use crate::state::State; use crate::static_config::StaticConfig; +use crate::theme_manager; use crate::transparency_manager; use crate::window::RuleDebug; use crate::window::Window; @@ -258,6 +259,7 @@ use crate::workspace::WorkspaceWindowLocation; use color_eyre::eyre; use color_eyre::eyre::Context; use color_eyre::eyre::OptionExt; +use komorebi_themes::colour::Rgb; use parking_lot::Mutex; use std::collections::HashMap; use std::fs::File; @@ -424,7 +426,11 @@ impl WindowManager { message: SocketMessage, mut reply: impl std::io::Write, ) -> eyre::Result<()> { - tracing::info!("processing command: {message}"); + if matches!(message, SocketMessage::Theme(_)) { + tracing::trace!("processing command: {message}"); + } else { + tracing::info!("processing command: {message}"); + } // a window that is maximized (by `toggle-maximize`) is not in the layout, and what is // asked of the layout is not asked of it: nothing happens until it is restored, by @@ -1990,6 +1996,9 @@ impl WindowManager { border_manager::destroy_all_borders()?; } } + SocketMessage::Theme(ref theme) => { + theme_manager::send_notification(*theme.clone()); + } SocketMessage::Transparency(enable) => { transparency_manager::TRANSPARENCY_ENABLED.store(enable, Ordering::SeqCst); } @@ -2002,24 +2011,23 @@ impl WindowManager { } SocketMessage::BorderColour(kind, r, g, b) => match kind { WindowKind::Single => { - border_manager::FOCUSED.store(border_manager::pack(r, g, b), Ordering::SeqCst); + border_manager::FOCUSED.store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } WindowKind::Stack => { - border_manager::STACK.store(border_manager::pack(r, g, b), Ordering::SeqCst); + border_manager::STACK.store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } WindowKind::Monocle => { - border_manager::MONOCLE.store(border_manager::pack(r, g, b), Ordering::SeqCst); + border_manager::MONOCLE.store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } WindowKind::Unfocused => { - border_manager::UNFOCUSED - .store(border_manager::pack(r, g, b), Ordering::SeqCst); + border_manager::UNFOCUSED.store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } WindowKind::UnfocusedLocked => { border_manager::UNFOCUSED_LOCKED - .store(border_manager::pack(r, g, b), Ordering::SeqCst); + .store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } WindowKind::Floating => { - border_manager::FLOATING.store(border_manager::pack(r, g, b), Ordering::SeqCst); + border_manager::FLOATING.store(Rgb::new(r, g, b).into(), Ordering::SeqCst); } }, SocketMessage::BorderWidth(width) => { @@ -2081,7 +2089,11 @@ impl WindowManager { border_manager::update_colours(self); transparency_manager::apply(self); - tracing::info!("processed command: {message}"); + if matches!(message, SocketMessage::Theme(_)) { + tracing::trace!("processed command: {message}"); + } else { + tracing::info!("processed command: {message}"); + } Ok(()) } diff --git a/komorebi/src/static_config.rs b/komorebi/src/static_config.rs index fcd24028..024c3f9f 100644 --- a/komorebi/src/static_config.rs +++ b/komorebi/src/static_config.rs @@ -75,6 +75,7 @@ use crate::core::config_generation::WorkspaceMatchingRule; use crate::core::pathext::ResolvedPathBuf; use crate::monitor::Monitor; use crate::ring::Ring; +use crate::theme_manager; use crate::transparency_manager; use crate::window::AspectRatio; use crate::window::PredefinedAspectRatio; @@ -85,6 +86,8 @@ use color_eyre::eyre; use crossbeam_channel::Receiver; use hotwatch::EventKind; use hotwatch::Hotwatch; +use komorebi_themes::KomorebiTheme; +use komorebi_themes::colour::Colour; use parking_lot::Mutex; use regex::Regex; use serde::Deserialize; @@ -98,6 +101,32 @@ use std::path::PathBuf; use std::sync::Arc; use std::sync::atomic::Ordering; +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)] +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] +/// Border colours for different container states +/// +/// These options will have no effect if a `theme` is set +pub struct BorderColours { + /// Border colour when the container contains a single window + #[serde(skip_serializing_if = "Option::is_none")] + pub single: Option, + /// Border colour when the container contains multiple windows + #[serde(skip_serializing_if = "Option::is_none")] + pub stack: Option, + /// Border colour when the container is in monocle mode + #[serde(skip_serializing_if = "Option::is_none")] + pub monocle: Option, + /// Border colour when the container is in floating mode + #[serde(skip_serializing_if = "Option::is_none")] + pub floating: Option, + /// Border colour when the container is unfocused + #[serde(skip_serializing_if = "Option::is_none")] + pub unfocused: Option, + /// Border colour when the container is unfocused and locked + #[serde(skip_serializing_if = "Option::is_none")] + pub unfocused_locked: Option, +} + // serde_as must be before derive #[serde_with::serde_as] #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] @@ -445,6 +474,10 @@ pub struct StaticConfig { #[serde(alias = "active_window_border")] #[cfg_attr(feature = "schemars", schemars(extend("default" = border_manager::BORDER_ENABLED)))] pub border: Option, + /// Window border colours for different container types (has no effect if a theme is defined) + #[serde(skip_serializing_if = "Option::is_none")] + #[serde(alias = "active_window_border_colours")] + pub border_colours: Option, // /// Active window border style (default: System) // #[serde(skip_serializing_if = "Option::is_none")] // #[serde(alias = "active_window_border_style")] @@ -528,6 +561,11 @@ pub struct StaticConfig { /// Animations configuration options #[serde(skip_serializing_if = "Option::is_none")] pub animation: Option, + /// Theme configuration options + /// + /// If a theme is specified, `border_colours` will have no effect + #[serde(skip_serializing_if = "Option::is_none")] + pub theme: Option, /// Aspect ratio to resize with when toggling floating mode for a window #[serde(skip_serializing_if = "Option::is_none")] pub floating_window_aspect_ratio: Option, @@ -605,6 +643,25 @@ impl From<&WindowManager> for StaticConfig { monitors.push(MonitorConfig::from(m)); } + let border_colours = if border_manager::FOCUSED.load(Ordering::SeqCst) == 0 { + None + } else { + Option::from(BorderColours { + single: Option::from(Colour::from(border_manager::FOCUSED.load(Ordering::SeqCst))), + stack: Option::from(Colour::from(border_manager::STACK.load(Ordering::SeqCst))), + monocle: Option::from(Colour::from(border_manager::MONOCLE.load(Ordering::SeqCst))), + floating: Option::from(Colour::from( + border_manager::FLOATING.load(Ordering::SeqCst), + )), + unfocused: Option::from(Colour::from( + border_manager::UNFOCUSED.load(Ordering::SeqCst), + )), + unfocused_locked: Option::from(Colour::from( + border_manager::UNFOCUSED_LOCKED.load(Ordering::SeqCst), + )), + }) + }; + Self { // invisible_borders: None, resize_delta: Option::from(value.resize_delta), @@ -642,6 +699,7 @@ impl From<&WindowManager> for StaticConfig { border_offset: Option::from(border_manager::BORDER_OFFSET.load(Ordering::SeqCst)), border_radius: Option::from(border_manager::BORDER_RADIUS.load(Ordering::SeqCst)), border: Option::from(border_manager::BORDER_ENABLED.load(Ordering::SeqCst)), + border_colours, transparency: Option::from( transparency_manager::TRANSPARENCY_ENABLED.load(Ordering::SeqCst), ), @@ -682,6 +740,7 @@ impl From<&WindowManager> for StaticConfig { display_index_preferences: Option::from(DISPLAY_INDEX_PREFERENCES.read().clone()), // stackbar: None, animation: None, + theme: None, // slow_application_compensation_time: Option::from( // SLOW_APPLICATION_COMPENSATION_TIME.load(Ordering::SeqCst), // ), @@ -796,6 +855,33 @@ impl StaticConfig { border_manager::BORDER_ENABLED.store(border_enabled, Ordering::SeqCst); } + if let Some(colours) = &self.border_colours { + if let Some(single) = colours.single { + border_manager::FOCUSED.store(u32::from(single), Ordering::SeqCst); + } + + if let Some(stack) = colours.stack { + border_manager::STACK.store(u32::from(stack), Ordering::SeqCst); + } + + if let Some(monocle) = colours.monocle { + border_manager::MONOCLE.store(u32::from(monocle), Ordering::SeqCst); + } + + if let Some(floating) = colours.floating { + border_manager::FLOATING.store(u32::from(floating), Ordering::SeqCst); + } + + if let Some(unfocused) = colours.unfocused { + border_manager::UNFOCUSED.store(u32::from(unfocused), Ordering::SeqCst); + } + + if let Some(unfocused_locked) = colours.unfocused_locked { + border_manager::UNFOCUSED_LOCKED + .store(u32::from(unfocused_locked), Ordering::SeqCst); + } + } + // STYLE.store(self.border_style.unwrap_or_default()); // // if !*WINDOWS_11 @@ -940,6 +1026,10 @@ impl StaticConfig { // } // } // + if let Some(theme) = &self.theme { + theme_manager::send_notification(theme.clone()); + } + if let Some(path) = &self.app_specific_configuration_path { match path { AppSpecificConfigurationPath::Single(path) => handle_asc_file( diff --git a/komorebi/src/theme_manager.rs b/komorebi/src/theme_manager.rs new file mode 100644 index 00000000..acd8f26b --- /dev/null +++ b/komorebi/src/theme_manager.rs @@ -0,0 +1,278 @@ +//! Turns a theme into border colors: a named theme or a palette of one's own, or the palette made +//! from a picture. +//! +//! [`send_notification`] puts a theme's six border colors into the statics of +//! [`border_manager`], which hands them to the border effect. The palette of a picture takes +//! seconds to make, so [`wallpaper_palette`] keeps each one it makes in komorebi's cache directory +//! ([`palette_file`]). + +use crate::border_manager; +use crossbeam_utils::atomic::AtomicCell; +use komorebi_themes::Base16ColourPalette; +use komorebi_themes::Base16Wrapper; +use komorebi_themes::KomorebiTheme; +use komorebi_themes::KomorebiThemeBase16; +use komorebi_themes::KomorebiThemeCatppuccin; +use komorebi_themes::KomorebiThemeCustom; +use komorebi_themes::ThemeVariant; +use komorebi_themes::colour::Colour; +use std::hash::Hash; +use std::hash::Hasher; +use std::path::Path; +use std::path::PathBuf; +use std::sync::atomic::Ordering; + +/// Returns the directory the palettes made from wallpapers are kept in: `komorebi` in the user's +/// cache directory (`$XDG_CACHE_HOME`, else `~/.cache`), else in the log directory. +/// +/// A palette takes seconds to make, so it should outlive a login, and the runtime directory, where +/// komorebi's socket is, does not. +fn palette_dir() -> PathBuf { + dirs::cache_dir() + .unwrap_or_else(|| crate::LOG_DIR.clone()) + .join("komorebi") +} + +/// Returns the file the palette of the picture at `path`, in this variant, is kept in. +/// +/// The name alone is not enough to know a wallpaper by: two folders can each have a +/// `wallpaper.png`, and one wallpaper can be painted over. The file is named after the picture, a +/// hash of its path, size and time of last change, and the variant, so the palette is made again +/// when the path, the size or the time of the last change differ. +/// +/// ```rust +/// use komorebi::theme_manager::palette_file; +/// use komorebi_themes::ThemeVariant; +/// use std::path::Path; +/// +/// let file = palette_file(Path::new("/nonexistent/dunes.png"), ThemeVariant::Dark); +/// let name = file.file_name().unwrap().to_string_lossy().into_owned(); +/// assert!(name.starts_with("dunes-") && name.ends_with(".base16.dark.json"), "{name}"); +/// +/// // a picture of the same name in another folder has a palette of its own +/// let elsewhere = palette_file(Path::new("/elsewhere/dunes.png"), ThemeVariant::Dark); +/// assert_ne!(file, elsewhere); +/// ``` +pub fn palette_file(path: &Path, variant: ThemeVariant) -> PathBuf { + let mut hasher = std::collections::hash_map::DefaultHasher::new(); + path.hash(&mut hasher); + if let Ok(meta) = std::fs::metadata(path) { + meta.len().hash(&mut hasher); + meta.modified().ok().hash(&mut hasher); + } + + palette_dir().join(format!( + "{}-{:016x}.base16.{variant}.json", + path.file_stem().unwrap_or_default().to_string_lossy(), + hasher.finish() + )) +} + +/// Returns the Base16 palette of a picture, in this variant: from the cache if it was made before, +/// else made now (which can take a few seconds for a large picture) and kept. +/// +/// Returns `None`, and logs why, when no palette can be made from the picture: it cannot be read, +/// or it has fewer than the eight colors a palette needs. A palette that cannot be kept is made +/// again the next time. +pub fn wallpaper_palette(path: &Path, variant: ThemeVariant) -> Option { + let cached = palette_file(path, variant); + + if let Ok(text) = std::fs::read_to_string(&cached) + && let Ok(palette) = serde_json::from_str::(&text) + { + tracing::info!( + "colour palette for wallpaper {} found in cache", + cached.display() + ); + return Some(palette); + } + + let palette = match komorebi_themes::generate_base16_palette(path, variant) { + Ok(palette) => palette, + Err(error) => { + tracing::error!( + "could not make a colour palette from {}: {error}", + path.display() + ); + return None; + } + }; + + // not being able to keep it only means making it again next time + let kept = std::fs::create_dir_all(palette_dir()).and_then(|()| { + std::fs::write( + &cached, + serde_json::to_string_pretty(&palette).map_err(std::io::Error::other)?, + ) + }); + match kept { + Ok(()) => tracing::info!("colour palette for wallpaper {} cached", cached.display()), + Err(error) => tracing::warn!("could not keep {}: {error}", cached.display()), + } + + Some(palette) +} + +pub static CURRENT_THEME: AtomicCell> = AtomicCell::new(None); + +/// Makes `theme` the theme of the borders: puts its colors into the statics of [`border_manager`] +/// and the theme into [`CURRENT_THEME`], and asks the compositor for the new look, on the +/// caller's thread. +pub fn send_notification(theme: KomorebiTheme) { + apply(&theme); + CURRENT_THEME.store(Some(theme)); + border_manager::send_notification(); +} + +/// Puts the six border colors of a theme into the statics of [`border_manager`]: the color the +/// theme names for each kind of border, else the theme's default for that kind. +fn apply(theme: &KomorebiTheme) { + let ( + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + ) = match theme { + KomorebiTheme::Catppuccin(KomorebiThemeCatppuccin { + name, + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + .. + }) => { + let single_border = single_border + .unwrap_or(komorebi_themes::CatppuccinValue::Blue) + .color32(name.as_theme()); + + let stack_border = stack_border + .unwrap_or(komorebi_themes::CatppuccinValue::Green) + .color32(name.as_theme()); + + let monocle_border = monocle_border + .unwrap_or(komorebi_themes::CatppuccinValue::Pink) + .color32(name.as_theme()); + + let floating_border = floating_border + .unwrap_or(komorebi_themes::CatppuccinValue::Yellow) + .color32(name.as_theme()); + + let unfocused_border = unfocused_border + .unwrap_or(komorebi_themes::CatppuccinValue::Base) + .color32(name.as_theme()); + + let unfocused_locked_border = unfocused_locked_border + .unwrap_or(komorebi_themes::CatppuccinValue::Red) + .color32(name.as_theme()); + + ( + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + ) + } + KomorebiTheme::Base16(KomorebiThemeBase16 { + name, + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + .. + }) => { + let single_border = single_border + .unwrap_or(komorebi_themes::Base16Value::Base0D) + .color32(Base16Wrapper::Base16(*name)); + + let stack_border = stack_border + .unwrap_or(komorebi_themes::Base16Value::Base0B) + .color32(Base16Wrapper::Base16(*name)); + + let monocle_border = monocle_border + .unwrap_or(komorebi_themes::Base16Value::Base0F) + .color32(Base16Wrapper::Base16(*name)); + + let unfocused_border = unfocused_border + .unwrap_or(komorebi_themes::Base16Value::Base01) + .color32(Base16Wrapper::Base16(*name)); + + let unfocused_locked_border = unfocused_locked_border + .unwrap_or(komorebi_themes::Base16Value::Base08) + .color32(Base16Wrapper::Base16(*name)); + + let floating_border = floating_border + .unwrap_or(komorebi_themes::Base16Value::Base09) + .color32(Base16Wrapper::Base16(*name)); + + ( + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + ) + } + KomorebiTheme::Custom(KomorebiThemeCustom { + colours, + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + .. + }) => { + let single_border = single_border + .unwrap_or(komorebi_themes::Base16Value::Base0D) + .color32(Base16Wrapper::Custom(colours.clone())); + + let stack_border = stack_border + .unwrap_or(komorebi_themes::Base16Value::Base0B) + .color32(Base16Wrapper::Custom(colours.clone())); + + let monocle_border = monocle_border + .unwrap_or(komorebi_themes::Base16Value::Base0F) + .color32(Base16Wrapper::Custom(colours.clone())); + + let unfocused_border = unfocused_border + .unwrap_or(komorebi_themes::Base16Value::Base01) + .color32(Base16Wrapper::Custom(colours.clone())); + + let unfocused_locked_border = unfocused_locked_border + .unwrap_or(komorebi_themes::Base16Value::Base08) + .color32(Base16Wrapper::Custom(colours.clone())); + + let floating_border = floating_border + .unwrap_or(komorebi_themes::Base16Value::Base09) + .color32(Base16Wrapper::Custom(colours.clone())); + + ( + single_border, + stack_border, + monocle_border, + floating_border, + unfocused_border, + unfocused_locked_border, + ) + } + }; + + border_manager::FOCUSED.store(u32::from(Colour::from(single_border)), Ordering::SeqCst); + border_manager::MONOCLE.store(u32::from(Colour::from(monocle_border)), Ordering::SeqCst); + border_manager::STACK.store(u32::from(Colour::from(stack_border)), Ordering::SeqCst); + border_manager::FLOATING.store(u32::from(Colour::from(floating_border)), Ordering::SeqCst); + border_manager::UNFOCUSED.store(u32::from(Colour::from(unfocused_border)), Ordering::SeqCst); + border_manager::UNFOCUSED_LOCKED.store( + u32::from(Colour::from(unfocused_locked_border)), + Ordering::SeqCst, + ); +} diff --git a/komorebi/tests/border_commands.rs b/komorebi/tests/border_commands.rs index eb5c6205..a561ebfb 100644 --- a/komorebi/tests/border_commands.rs +++ b/komorebi/tests/border_commands.rs @@ -13,6 +13,7 @@ use komorebi::border_manager; use komorebi::core::SocketMessage; use komorebi::core::WindowKind; use komorebi::window_manager::WindowManager; +use komorebi_themes::colour::Rgb; use std::sync::Arc; use std::sync::atomic::Ordering; @@ -68,10 +69,8 @@ fn the_border_messages_set_the_border_and_the_compositor_is_asked_for_it() { (border.focused, border.unfocused), ((10, 20, 30), (40, 50, 60)) ); - assert_eq!( - border_manager::unpack(border_manager::FLOATING.load(Ordering::SeqCst)), - (70, 80, 90) - ); + let floating = Rgb::from(border_manager::FLOATING.load(Ordering::SeqCst)); + assert_eq!((floating.r, floating.g, floating.b), (70, 80, 90)); send(&mut wm, SocketMessage::Border(false)); assert_eq!(last_look(), Look::default()); diff --git a/komorebi/tests/config_parity.rs b/komorebi/tests/config_parity.rs index 1fff6723..59c5a10a 100644 --- a/komorebi/tests/config_parity.rs +++ b/komorebi/tests/config_parity.rs @@ -2,7 +2,7 @@ //! ships (`docs/komorebi.example.json`) and files of komorebi for Windows, which has keys that //! mean nothing on KDE Plasma. Every fixture must deserialize with [`StaticConfig`], round-trip //! through its serializer, and lose only the top-level keys that are Windows-only -//! ([`WINDOWS_ONLY`]) or that are read once the feature they configure is there ([`NOT_YET`]). +//! ([`WINDOWS_ONLY`]). //! Run with `--nocapture` to see exactly which paths each config has silently dropped. //! //! Extra configs (for example your own) can be checked without copying them into the repo: @@ -39,16 +39,6 @@ const WINDOWS_ONLY: &[&str] = &[ "window_hiding_behaviour", ]; -/// Top-level fields that `StaticConfig` has when the feature they configure is there, and that are -/// ignored until then. Each comment says which commit of the plan brings the feature, and takes -/// the key off this list. -const NOT_YET: &[&str] = &[ - // a color for each kind of window's border, whose type is komorebi-themes' (49) - "border_colours", - // themes (49) - "theme", -]; - fn repo_root() -> PathBuf { Path::new(env!("CARGO_MANIFEST_DIR")) .parent() @@ -114,7 +104,7 @@ fn dropped(input: &Value, output: &Value, path: &str, out: &mut Vec) { #[test] fn fixtures_load_round_trip_and_only_lose_windows_only_keys() { - let windows_only: BTreeSet<&str> = WINDOWS_ONLY.iter().chain(NOT_YET).copied().collect(); + let windows_only: BTreeSet<&str> = WINDOWS_ONLY.iter().copied().collect(); let files = fixtures(); assert!( files.len() >= 3, @@ -158,7 +148,7 @@ fn fixtures_load_round_trip_and_only_lose_windows_only_keys() { .collect(); assert!( unexpected.is_empty(), - "{name}: dropped top-level keys that are neither Windows-only nor not yet read: {unexpected:?}" + "{name}: dropped top-level keys that are not Windows-only: {unexpected:?}" ); } } @@ -180,7 +170,6 @@ fn the_lists_name_no_key_that_is_read() { let stale: Vec<_> = WINDOWS_ONLY .iter() - .chain(NOT_YET) .filter(|key| read.contains(**key)) .collect(); diff --git a/komorebi/tests/theme_config.rs b/komorebi/tests/theme_config.rs new file mode 100644 index 00000000..c5722710 --- /dev/null +++ b/komorebi/tests/theme_config.rs @@ -0,0 +1,104 @@ +//! The `border_colours` and `theme` keys of `komorebi.json` are the border colors: the file sets +//! the colors it names when the daemon starts and when it is read again, a color it leaves out is +//! left as it is, a theme wins over the colors, and the colors come out again in the configuration +//! the daemon generates. +//! +//! This file has one test because it changes the process-wide border colors, which every other test +//! that asks for the look would see. + +use color_eyre::eyre; +use komorebi::backend::fake::FakeBackend; +use komorebi::backend::with_backend; +use komorebi::border_manager; +use komorebi::static_config::StaticConfig; +use komorebi::window_manager::WindowManager; +use komorebi_themes::colour::Colour; +use komorebi_themes::colour::Rgb; +use parking_lot::Mutex; +use std::os::unix::net::UnixListener; +use std::path::PathBuf; +use std::sync::Arc; +use std::sync::atomic::Ordering; + +fn write_config(name: &str, json: &str) -> PathBuf { + let path = PathBuf::from(format!("/tmp/kmb-theme-{name}-{}.json", std::process::id())); + std::fs::write(&path, json).unwrap(); + path +} + +#[test] +fn the_colour_and_theme_keys_of_the_file_are_the_border_colours() { + let fake = Arc::new(FakeBackend::with_one_monitor()); + let colour = |slot: &std::sync::atomic::AtomicU32| slot.load(Ordering::SeqCst); + + let path = write_config( + "colours", + r##"{ + "border_colours": { + "single": { "r": 1, "g": 2, "b": 3 }, + "stack": "#040506" + } + }"##, + ); + let (_sender, receiver) = crossbeam_channel::bounded(1); + let socket = PathBuf::from(format!("/tmp/kmb-theme-config-{}.sock", std::process::id())); + let listener = UnixListener::bind(&socket).unwrap(); + + let wm = with_backend(fake.clone(), || -> eyre::Result { + let mut wm = StaticConfig::preload(&path, receiver, Some(listener))?; + wm.init()?; + Ok(wm) + }) + .unwrap(); + let wm = Arc::new(Mutex::new(wm)); + with_backend(fake.clone(), || StaticConfig::postload(&path, &wm)).unwrap(); + let _ = std::fs::remove_file(&socket); + + // the colors the file names are the border's, in red, green and blue; the others are as they were + assert_eq!(colour(&border_manager::FOCUSED), 0x03_02_01); + assert_eq!(colour(&border_manager::STACK), 0x06_05_04); + assert_eq!(colour(&border_manager::UNFOCUSED), 0x80_80_80); + + // and they come out again in the generated configuration + let generated = StaticConfig::from(&*wm.lock()).border_colours.unwrap(); + assert_eq!(generated.single, Some(Colour::Rgb(Rgb::new(1, 2, 3)))); + assert_eq!(generated.stack, Some(Colour::Rgb(Rgb::new(4, 5, 6)))); + + // the old name of the key is the same key + let aliased = StaticConfig::read_raw( + r#"{ "active_window_border_colours": { "floating": { "r": 7, "g": 8, "b": 9 } } }"#, + ) + .unwrap(); + assert_eq!( + aliased.border_colours.unwrap().floating, + Some(Colour::Rgb(Rgb::new(7, 8, 9))) + ); + + // a theme wins over the colors that come with it + let themed = write_config( + "themed", + r#"{ + "border_colours": { "single": { "r": 9, "g": 9, "b": 9 } }, + "theme": { "palette": "Catppuccin", "name": "Mocha" } + }"#, + ); + with_backend(fake.clone(), || { + StaticConfig::reload(&themed, &mut wm.lock()).unwrap(); + }); + assert_eq!( + colour(&border_manager::FOCUSED), + 0xFA_B4_89, + "Mocha's blue, and not the 9 9 9 of the file" + ); + + // and a file with neither leaves the colors as they are + let empty = write_config("empty", "{}"); + with_backend(fake.clone(), || { + StaticConfig::reload(&empty, &mut wm.lock()).unwrap(); + }); + assert_eq!(colour(&border_manager::FOCUSED), 0xFA_B4_89); + + for file in [path, themed, empty] { + let _ = std::fs::remove_file(file); + } +} diff --git a/komorebi/tests/themes.rs b/komorebi/tests/themes.rs new file mode 100644 index 00000000..bb31dafc --- /dev/null +++ b/komorebi/tests/themes.rs @@ -0,0 +1,89 @@ +//! Named themes, against an in-memory desktop: a theme gives every kind of border its color. +//! +//! Window ids are in the 70_000s. The colors are process-wide, so the tests of this file take +//! turns. + +use komorebi::backend::fake::FakeBackend; +use komorebi::backend::with_backend; +use komorebi::border_manager; +use komorebi::core::SocketMessage; +use komorebi::window::Window; +use komorebi::window_manager::WindowManager; +use komorebi::window_manager_event::KWinNotification; +use komorebi::window_manager_event::SystemNotification; +use komorebi::window_manager_event::WindowManagerEvent; +use komorebi_themes::KomorebiTheme; +use komorebi_themes::KomorebiThemeCatppuccin; +use parking_lot::Mutex; +use std::path::PathBuf; +use std::sync::Arc; +use std::sync::atomic::Ordering; + +static TURN: Mutex<()> = Mutex::new(()); + +fn desktop() -> (Arc, WindowManager) { + let fake = Arc::new(FakeBackend::with_one_monitor()); + let (_sender, receiver) = crossbeam_channel::bounded(1); + let socket = PathBuf::from(format!("/tmp/kmf-wallpaper-{}.sock", std::process::id())); + + let wm = with_backend(fake.clone(), || { + let mut wm = WindowManager::new(receiver, Some(socket)).unwrap(); + wm.init().unwrap(); + wm + }); + + (fake, wm) +} + +fn command(fake: &Arc, wm: &mut WindowManager, message: SocketMessage) { + with_backend(fake.clone(), || wm.process_command(message, Vec::new())).unwrap(); +} + +fn focused_border() -> u32 { + border_manager::FOCUSED.load(Ordering::SeqCst) +} + +#[test] +fn a_named_theme_colours_every_kind_of_border() { + let _turn = TURN.lock(); + let (fake, mut wm) = desktop(); + + fake.open_window(70_001, "foot", "foot", "terminal"); + with_backend(fake.clone(), || { + wm.process_event(WindowManagerEvent::Show( + SystemNotification::KWin(KWinNotification::WindowAdded), + Window::from(70_001), + )) + }) + .unwrap(); + border_manager::BORDER_ENABLED.store(true, Ordering::SeqCst); + + command( + &fake, + &mut wm, + SocketMessage::Theme(Box::new(KomorebiTheme::Catppuccin( + KomorebiThemeCatppuccin { + name: komorebi_themes::Catppuccin::Mocha, + bar_accent: None, + single_border: None, + stack_border: None, + monocle_border: None, + floating_border: None, + unfocused_border: None, + unfocused_locked_border: None, + }, + ))), + ); + + // Mocha's blue, which is the default for the focused window: kept as Windows keeps colours + // (0x00BBGGRR), and given to the compositor as 0xRRGGBB + assert_eq!(focused_border(), 0xFAB489); + assert_eq!( + fake.border_colour_of(70_001), + Some(0x89B4FA), + "{:?}", + fake.commands() + ); + + border_manager::BORDER_ENABLED.store(false, Ordering::SeqCst); +} diff --git a/nix/komorebi-options.nix b/nix/komorebi-options.nix index a1b35a9f..fbe9f390 100644 --- a/nix/komorebi-options.nix +++ b/nix/komorebi-options.nix @@ -1,4 +1,4 @@ -# schema-sha256: c001e5dc47908d250a272d3be32faaccd8e0b57629a62a0537d7880a53183ae5 +# schema-sha256: 475a8bc02a8f0e0e68cc0fbb41bd949ff7743feda00fac5c4bf02565d2848561 { lib, ... }: let animationStyle = ( @@ -46,6 +46,77 @@ let }) ] ); + base16Value = ( + lib.types.enum [ + "Base00" + "Base01" + "Base02" + "Base03" + "Base04" + "Base05" + "Base06" + "Base07" + "Base08" + "Base09" + "Base0A" + "Base0B" + "Base0C" + "Base0D" + "Base0E" + "Base0F" + ] + ); + catppuccinValue = ( + lib.types.enum [ + "Rosewater" + "Flamingo" + "Pink" + "Mauve" + "Red" + "Maroon" + "Peach" + "Yellow" + "Green" + "Teal" + "Sky" + "Sapphire" + "Blue" + "Lavender" + "Text" + "Subtext1" + "Subtext0" + "Overlay2" + "Overlay1" + "Overlay0" + "Surface2" + "Surface1" + "Surface0" + "Base" + "Mantle" + "Crust" + ] + ); + colour = ( + lib.types.oneOf [ + (lib.types.submodule { + options = { + b = lib.mkOption { + type = lib.types.int; + description = "Blue"; + }; + g = lib.mkOption { + type = lib.types.int; + description = "Green"; + }; + r = lib.mkOption { + type = lib.types.int; + description = "Red"; + }; + }; + }) + lib.types.str + ] + ); defaultLayout = ( lib.types.enum [ "BSP" @@ -292,6 +363,48 @@ in default = true; description = "Display window borders"; }; + border_colours = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.submodule { + options = { + floating = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container is in floating mode"; + }; + monocle = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container is in monocle mode"; + }; + single = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container contains a single window"; + }; + stack = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container contains multiple windows"; + }; + unfocused = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container is unfocused"; + }; + unfocused_locked = lib.mkOption { + type = (lib.types.nullOr colour); + default = null; + description = "Border colour when the container is unfocused and locked"; + }; + }; + } + ) + ); + default = null; + description = "Window border colours for different container types (has no effect if a theme is defined)"; + }; border_offset = lib.mkOption { type = (lib.types.nullOr lib.types.int); default = 0; @@ -635,6 +748,465 @@ in default = null; description = "Accepted so that a configuration written for another platform loads, and ignored: a KWin\nwindow has no native tabs"; }; + theme = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.submodule { + options = { + palette = lib.mkOption { + type = ( + lib.types.enum [ + "Catppuccin" + "Base16" + "Custom" + ] + ); + }; + monocle_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + colours = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.submodule { + options = { + base_00 = lib.mkOption { + type = colour; + description = "Base00"; + }; + base_01 = lib.mkOption { + type = colour; + description = "Base01"; + }; + base_02 = lib.mkOption { + type = colour; + description = "Base02"; + }; + base_03 = lib.mkOption { + type = colour; + description = "Base03"; + }; + base_04 = lib.mkOption { + type = colour; + description = "Base04"; + }; + base_05 = lib.mkOption { + type = colour; + description = "Base05"; + }; + base_06 = lib.mkOption { + type = colour; + description = "Base06"; + }; + base_07 = lib.mkOption { + type = colour; + description = "Base07"; + }; + base_08 = lib.mkOption { + type = colour; + description = "Base08"; + }; + base_09 = lib.mkOption { + type = colour; + description = "Base09"; + }; + base_0a = lib.mkOption { + type = colour; + description = "Base0A"; + }; + base_0b = lib.mkOption { + type = colour; + description = "Base0B"; + }; + base_0c = lib.mkOption { + type = colour; + description = "Base0C"; + }; + base_0d = lib.mkOption { + type = colour; + description = "Base0D"; + }; + base_0e = lib.mkOption { + type = colour; + description = "Base0E"; + }; + base_0f = lib.mkOption { + type = colour; + description = "Base0F"; + }; + }; + } + ) + ); + default = null; + }; + unfocused_locked_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + unfocused_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + name = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.enum [ + "Frappe" + "Latte" + "Macchiato" + "Mocha" + ]) + (lib.types.enum [ + "3024" + "Apathy" + "Apprentice" + "Ashes" + "AtelierCaveLight" + "AtelierCave" + "AtelierDuneLight" + "AtelierDune" + "AtelierEstuaryLight" + "AtelierEstuary" + "AtelierForestLight" + "AtelierForest" + "AtelierHeathLight" + "AtelierHeath" + "AtelierLakesideLight" + "AtelierLakeside" + "AtelierPlateauLight" + "AtelierPlateau" + "AtelierSavannaLight" + "AtelierSavanna" + "AtelierSeasideLight" + "AtelierSeaside" + "AtelierSulphurpoolLight" + "AtelierSulphurpool" + "Atlas" + "AyuDark" + "AyuLight" + "AyuMirage" + "Aztec" + "Bespin" + "BlackMetalBathory" + "BlackMetalBurzum" + "BlackMetalDarkFuneral" + "BlackMetalGorgoroth" + "BlackMetalImmortal" + "BlackMetalKhold" + "BlackMetalMarduk" + "BlackMetalMayhem" + "BlackMetalNile" + "BlackMetalVenom" + "BlackMetal" + "Blueforest" + "Blueish" + "Brewer" + "Bright" + "Brogrammer" + "BrushtreesDark" + "Brushtrees" + "Caroline" + "CatppuccinFrappe" + "CatppuccinLatte" + "CatppuccinMacchiato" + "CatppuccinMocha" + "Chalk" + "Circus" + "ClassicDark" + "ClassicLight" + "Codeschool" + "Colors" + "Cupcake" + "Cupertino" + "DaOneBlack" + "DaOneGray" + "DaOneOcean" + "DaOnePaper" + "DaOneSea" + "DaOneWhite" + "DanqingLight" + "Danqing" + "Darcula" + "Darkmoss" + "Darktooth" + "Darkviolet" + "Decaf" + "DefaultDark" + "DefaultLight" + "Dirtysea" + "Dracula" + "EdgeDark" + "EdgeLight" + "Eighties" + "EmbersLight" + "Embers" + "Emil" + "EquilibriumDark" + "EquilibriumGrayDark" + "EquilibriumGrayLight" + "EquilibriumLight" + "Eris" + "Espresso" + "EvaDim" + "Eva" + "EvenokDark" + "EverforestDarkHard" + "Everforest" + "Flat" + "Framer" + "FruitSoda" + "Gigavolt" + "Github" + "GoogleDark" + "GoogleLight" + "Gotham" + "GrayscaleDark" + "GrayscaleLight" + "Greenscreen" + "Gruber" + "GruvboxDarkHard" + "GruvboxDarkMedium" + "GruvboxDarkPale" + "GruvboxDarkSoft" + "GruvboxLightHard" + "GruvboxLightMedium" + "GruvboxLightSoft" + "GruvboxMaterialDarkHard" + "GruvboxMaterialDarkMedium" + "GruvboxMaterialDarkSoft" + "GruvboxMaterialLightHard" + "GruvboxMaterialLightMedium" + "GruvboxMaterialLightSoft" + "Hardcore" + "Harmonic16Dark" + "Harmonic16Light" + "HeetchLight" + "Heetch" + "Helios" + "Hopscotch" + "HorizonDark" + "HorizonLight" + "HorizonTerminalDark" + "HorizonTerminalLight" + "HumanoidDark" + "HumanoidLight" + "IaDark" + "IaLight" + "Icy" + "Irblack" + "Isotope" + "Jabuti" + "Kanagawa" + "Katy" + "Kimber" + "Lime" + "Macintosh" + "Marrakesh" + "Materia" + "MaterialDarker" + "MaterialLighter" + "MaterialPalenight" + "MaterialVivid" + "Material" + "MeasuredDark" + "MeasuredLight" + "MellowPurple" + "MexicoLight" + "Mocha" + "Monokai" + "Moonlight" + "Mountain" + "Nebula" + "NordLight" + "Nord" + "Nova" + "Ocean" + "Oceanicnext" + "OneLight" + "OnedarkDark" + "Onedark" + "OutrunDark" + "OxocarbonDark" + "OxocarbonLight" + "Pandora" + "PapercolorDark" + "PapercolorLight" + "Paraiso" + "Pasque" + "Phd" + "Pico" + "Pinky" + "Pop" + "Porple" + "PreciousDarkEleven" + "PreciousDarkFifteen" + "PreciousLightWarm" + "PreciousLightWhite" + "PrimerDarkDimmed" + "PrimerDark" + "PrimerLight" + "Purpledream" + "Qualia" + "Railscasts" + "Rebecca" + "RosePineDawn" + "RosePineMoon" + "RosePine" + "Saga" + "Sagelight" + "Sakura" + "Sandcastle" + "SelenizedBlack" + "SelenizedDark" + "SelenizedLight" + "SelenizedWhite" + "Seti" + "ShadesOfPurple" + "ShadesmearDark" + "ShadesmearLight" + "Shapeshifter" + "SilkDark" + "SilkLight" + "Snazzy" + "SolarflareLight" + "Solarflare" + "SolarizedDark" + "SolarizedLight" + "Spaceduck" + "Spacemacs" + "Sparky" + "StandardizedDark" + "StandardizedLight" + "Stella" + "StillAlive" + "Summercamp" + "SummerfruitDark" + "SummerfruitLight" + "SynthMidnightDark" + "SynthMidnightLight" + "Tango" + "Tarot" + "Tender" + "TerracottaDark" + "Terracotta" + "TokyoCityDark" + "TokyoCityLight" + "TokyoCityTerminalDark" + "TokyoCityTerminalLight" + "TokyoNightDark" + "TokyoNightLight" + "TokyoNightMoon" + "TokyoNightStorm" + "TokyoNightTerminalDark" + "TokyoNightTerminalLight" + "TokyoNightTerminalStorm" + "TokyodarkTerminal" + "Tokyodark" + "TomorrowNightEighties" + "TomorrowNight" + "Tomorrow" + "Tube" + "Twilight" + "UnikittyDark" + "UnikittyLight" + "UnikittyReversible" + "Uwunicorn" + "Vesper" + "Vice" + "Vulcan" + "Windows10Light" + "Windows10" + "Windows95Light" + "Windows95" + "WindowsHighcontrastLight" + "WindowsHighcontrast" + "WindowsNtLight" + "WindowsNt" + "Woodland" + "XcodeDusk" + "Zenbones" + "Zenburn" + ]) + ] + ) + ); + default = null; + }; + stack_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + floating_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + single_border = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + bar_accent = lib.mkOption { + type = ( + lib.types.nullOr ( + lib.types.oneOf [ + (lib.types.nullOr catppuccinValue) + (lib.types.nullOr base16Value) + ] + ) + ); + default = null; + }; + }; + } + ) + ); + default = null; + description = "Theme configuration options\n\nIf a theme is specified, `border_colours` will have no effect"; + }; titleless_applications = lib.mkOption { type = (lib.types.nullOr (lib.types.listOf lib.types.str)); default = null; diff --git a/schema.json b/schema.json index 34cb3dc0..429fb275 100644 --- a/schema.json +++ b/schema.json @@ -34,6 +34,17 @@ ], "default": true }, + "border_colours": { + "description": "Window border colours for different container types (has no effect if a theme is defined)", + "anyOf": [ + { + "$ref": "#/$defs/BorderColours" + }, + { + "type": "null" + } + ] + }, "border_offset": { "description": "Offset of window borders", "type": [ @@ -292,6 +303,17 @@ "type": "string" } }, + "theme": { + "description": "Theme configuration options\n\nIf a theme is specified, `border_colours` will have no effect", + "anyOf": [ + { + "$ref": "#/$defs/KomorebiTheme" + }, + { + "type": "null" + } + ] + }, "titleless_applications": { "description": "Accepted so that a configuration written for another platform loads, and ignored: a KWin\nwindow is always a window", "type": [ @@ -697,6 +719,1774 @@ } ] }, + "Base16": { + "description": "Base 16 colour palette", + "oneOf": [ + { + "description": "3024 (https://tinted-theming.github.io/tinted-gallery/#base16-3024)", + "type": "string", + "const": "3024" + }, + { + "description": "Apathy (https://tinted-theming.github.io/tinted-gallery/#base16-apathy)", + "type": "string", + "const": "Apathy" + }, + { + "description": "Apprentice (https://tinted-theming.github.io/tinted-gallery/#base16-apprentice)", + "type": "string", + "const": "Apprentice" + }, + { + "description": "Ashes (https://tinted-theming.github.io/tinted-gallery/#base16-ashes)", + "type": "string", + "const": "Ashes" + }, + { + "description": "Atelier Cave Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-cave-light)", + "type": "string", + "const": "AtelierCaveLight" + }, + { + "description": "Atelier Cave (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-cave)", + "type": "string", + "const": "AtelierCave" + }, + { + "description": "Atelier Dune Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-dune-light)", + "type": "string", + "const": "AtelierDuneLight" + }, + { + "description": "Atelier Dune (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-dune)", + "type": "string", + "const": "AtelierDune" + }, + { + "description": "Atelier Estuary Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-estuary-light)", + "type": "string", + "const": "AtelierEstuaryLight" + }, + { + "description": "Atelier Estuary (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-estuary)", + "type": "string", + "const": "AtelierEstuary" + }, + { + "description": "Atelier Forest Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-forest-light)", + "type": "string", + "const": "AtelierForestLight" + }, + { + "description": "Atelier Forest (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-forest)", + "type": "string", + "const": "AtelierForest" + }, + { + "description": "Atelier Heath Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-heath-light)", + "type": "string", + "const": "AtelierHeathLight" + }, + { + "description": "Atelier Heath (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-heath)", + "type": "string", + "const": "AtelierHeath" + }, + { + "description": "Atelier Lakeside Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-lakeside-light)", + "type": "string", + "const": "AtelierLakesideLight" + }, + { + "description": "Atelier Lakeside (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-lakeside)", + "type": "string", + "const": "AtelierLakeside" + }, + { + "description": "Atelier Plateau Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-plateau-light)", + "type": "string", + "const": "AtelierPlateauLight" + }, + { + "description": "Atelier Plateau (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-plateau)", + "type": "string", + "const": "AtelierPlateau" + }, + { + "description": "Atelier Savanna Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-savanna-light)", + "type": "string", + "const": "AtelierSavannaLight" + }, + { + "description": "Atelier Savanna (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-savanna)", + "type": "string", + "const": "AtelierSavanna" + }, + { + "description": "Atelier Seaside Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-seaside-light)", + "type": "string", + "const": "AtelierSeasideLight" + }, + { + "description": "Atelier Seaside (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-seaside)", + "type": "string", + "const": "AtelierSeaside" + }, + { + "description": "Atelier Sulphurpool Light (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-sulphurpool-light)", + "type": "string", + "const": "AtelierSulphurpoolLight" + }, + { + "description": "Atelier Sulphurpool (https://tinted-theming.github.io/tinted-gallery/#base16-atelier-sulphurpool)", + "type": "string", + "const": "AtelierSulphurpool" + }, + { + "description": "Atlas (https://tinted-theming.github.io/tinted-gallery/#base16-atlas)", + "type": "string", + "const": "Atlas" + }, + { + "description": "Ayu Dark (https://tinted-theming.github.io/tinted-gallery/#base16-ayu-dark)", + "type": "string", + "const": "AyuDark" + }, + { + "description": "Ayu Light (https://tinted-theming.github.io/tinted-gallery/#base16-ayu-light)", + "type": "string", + "const": "AyuLight" + }, + { + "description": "Ayu Mirage (https://tinted-theming.github.io/tinted-gallery/#base16-ayu-mirage)", + "type": "string", + "const": "AyuMirage" + }, + { + "description": "Aztec (https://tinted-theming.github.io/tinted-gallery/#base16-aztec)", + "type": "string", + "const": "Aztec" + }, + { + "description": "Bespin (https://tinted-theming.github.io/tinted-gallery/#base16-bespin)", + "type": "string", + "const": "Bespin" + }, + { + "description": "Black Metal Bathory (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-bathory)", + "type": "string", + "const": "BlackMetalBathory" + }, + { + "description": "Black Metal Burzum (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-burzum)", + "type": "string", + "const": "BlackMetalBurzum" + }, + { + "description": "Black Metal Dark Funeral (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-dark-funeral)", + "type": "string", + "const": "BlackMetalDarkFuneral" + }, + { + "description": "Black Metal Gorgoroth (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-gorgoroth)", + "type": "string", + "const": "BlackMetalGorgoroth" + }, + { + "description": "Black Metal Immortal (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-immortal)", + "type": "string", + "const": "BlackMetalImmortal" + }, + { + "description": "Black Metal Khold (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-khold)", + "type": "string", + "const": "BlackMetalKhold" + }, + { + "description": "Black Metal Marduk (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-marduk)", + "type": "string", + "const": "BlackMetalMarduk" + }, + { + "description": "Black Metal Mayhem (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-mayhem)", + "type": "string", + "const": "BlackMetalMayhem" + }, + { + "description": "Black Metal Nile (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-nile)", + "type": "string", + "const": "BlackMetalNile" + }, + { + "description": "Black Metal Venom (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal-venom)", + "type": "string", + "const": "BlackMetalVenom" + }, + { + "description": "Black Metal (https://tinted-theming.github.io/tinted-gallery/#base16-black-metal)", + "type": "string", + "const": "BlackMetal" + }, + { + "description": "Blueforest (https://tinted-theming.github.io/tinted-gallery/#base16-blueforest)", + "type": "string", + "const": "Blueforest" + }, + { + "description": "Blueish (https://tinted-theming.github.io/tinted-gallery/#base16-blueish)", + "type": "string", + "const": "Blueish" + }, + { + "description": "Brewer (https://tinted-theming.github.io/tinted-gallery/#base16-brewer)", + "type": "string", + "const": "Brewer" + }, + { + "description": "Bright (https://tinted-theming.github.io/tinted-gallery/#base16-bright)", + "type": "string", + "const": "Bright" + }, + { + "description": "Brogrammer (https://tinted-theming.github.io/tinted-gallery/#base16-brogrammer)", + "type": "string", + "const": "Brogrammer" + }, + { + "description": "Brushtrees Dark (https://tinted-theming.github.io/tinted-gallery/#base16-brushtrees-dark)", + "type": "string", + "const": "BrushtreesDark" + }, + { + "description": "Brushtrees (https://tinted-theming.github.io/tinted-gallery/#base16-brushtrees)", + "type": "string", + "const": "Brushtrees" + }, + { + "description": "Caroline (https://tinted-theming.github.io/tinted-gallery/#base16-caroline)", + "type": "string", + "const": "Caroline" + }, + { + "description": "Catppuccin Frappe (https://tinted-theming.github.io/tinted-gallery/#base16-catppuccin-frappe)", + "type": "string", + "const": "CatppuccinFrappe" + }, + { + "description": "Catppuccin Latte (https://tinted-theming.github.io/tinted-gallery/#base16-catppuccin-latte)", + "type": "string", + "const": "CatppuccinLatte" + }, + { + "description": "Catppuccin Macchiato (https://tinted-theming.github.io/tinted-gallery/#base16-catppuccin-macchiato)", + "type": "string", + "const": "CatppuccinMacchiato" + }, + { + "description": "Catppuccin Mocha (https://tinted-theming.github.io/tinted-gallery/#base16-catppuccin-mocha)", + "type": "string", + "const": "CatppuccinMocha" + }, + { + "description": "Chalk (https://tinted-theming.github.io/tinted-gallery/#base16-chalk)", + "type": "string", + "const": "Chalk" + }, + { + "description": "Circus (https://tinted-theming.github.io/tinted-gallery/#base16-circus)", + "type": "string", + "const": "Circus" + }, + { + "description": "Classic Dark (https://tinted-theming.github.io/tinted-gallery/#base16-classic-dark)", + "type": "string", + "const": "ClassicDark" + }, + { + "description": "Classic Light (https://tinted-theming.github.io/tinted-gallery/#base16-classic-light)", + "type": "string", + "const": "ClassicLight" + }, + { + "description": "Codeschool (https://tinted-theming.github.io/tinted-gallery/#base16-codeschool)", + "type": "string", + "const": "Codeschool" + }, + { + "description": "Colors (https://tinted-theming.github.io/tinted-gallery/#base16-colors)", + "type": "string", + "const": "Colors" + }, + { + "description": "Cupcake (https://tinted-theming.github.io/tinted-gallery/#base16-cupcake)", + "type": "string", + "const": "Cupcake" + }, + { + "description": "Cupertino (https://tinted-theming.github.io/tinted-gallery/#base16-cupertino)", + "type": "string", + "const": "Cupertino" + }, + { + "description": "Da One Black (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-black)", + "type": "string", + "const": "DaOneBlack" + }, + { + "description": "Da One Gray (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-gray)", + "type": "string", + "const": "DaOneGray" + }, + { + "description": "Da One Ocean (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-ocean)", + "type": "string", + "const": "DaOneOcean" + }, + { + "description": "Da One Paper (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-paper)", + "type": "string", + "const": "DaOnePaper" + }, + { + "description": "Da One Sea (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-sea)", + "type": "string", + "const": "DaOneSea" + }, + { + "description": "Da One White (https://tinted-theming.github.io/tinted-gallery/#base16-da-one-white)", + "type": "string", + "const": "DaOneWhite" + }, + { + "description": "Danqing Light (https://tinted-theming.github.io/tinted-gallery/#base16-danqing-light)", + "type": "string", + "const": "DanqingLight" + }, + { + "description": "Danqing (https://tinted-theming.github.io/tinted-gallery/#base16-danqing)", + "type": "string", + "const": "Danqing" + }, + { + "description": "Darcula (https://tinted-theming.github.io/tinted-gallery/#base16-darcula)", + "type": "string", + "const": "Darcula" + }, + { + "description": "Darkmoss (https://tinted-theming.github.io/tinted-gallery/#base16-darkmoss)", + "type": "string", + "const": "Darkmoss" + }, + { + "description": "Darktooth (https://tinted-theming.github.io/tinted-gallery/#base16-darktooth)", + "type": "string", + "const": "Darktooth" + }, + { + "description": "Darkviolet (https://tinted-theming.github.io/tinted-gallery/#base16-darkviolet)", + "type": "string", + "const": "Darkviolet" + }, + { + "description": "Decaf (https://tinted-theming.github.io/tinted-gallery/#base16-decaf)", + "type": "string", + "const": "Decaf" + }, + { + "description": "Default Dark (https://tinted-theming.github.io/tinted-gallery/#base16-default-dark)", + "type": "string", + "const": "DefaultDark" + }, + { + "description": "Default Light (https://tinted-theming.github.io/tinted-gallery/#base16-default-light)", + "type": "string", + "const": "DefaultLight" + }, + { + "description": "Dirtysea (https://tinted-theming.github.io/tinted-gallery/#base16-dirtysea)", + "type": "string", + "const": "Dirtysea" + }, + { + "description": "Dracula (https://tinted-theming.github.io/tinted-gallery/#base16-dracula)", + "type": "string", + "const": "Dracula" + }, + { + "description": "Edge Dark (https://tinted-theming.github.io/tinted-gallery/#base16-edge-dark)", + "type": "string", + "const": "EdgeDark" + }, + { + "description": "Edge Light (https://tinted-theming.github.io/tinted-gallery/#base16-edge-light)", + "type": "string", + "const": "EdgeLight" + }, + { + "description": "Eighties (https://tinted-theming.github.io/tinted-gallery/#base16-eighties)", + "type": "string", + "const": "Eighties" + }, + { + "description": "Embers Light (https://tinted-theming.github.io/tinted-gallery/#base16-embers-light)", + "type": "string", + "const": "EmbersLight" + }, + { + "description": "Embers (https://tinted-theming.github.io/tinted-gallery/#base16-embers)", + "type": "string", + "const": "Embers" + }, + { + "description": "Emil (https://tinted-theming.github.io/tinted-gallery/#base16-emil)", + "type": "string", + "const": "Emil" + }, + { + "description": "Equilibrium Dark (https://tinted-theming.github.io/tinted-gallery/#base16-equilibrium-dark)", + "type": "string", + "const": "EquilibriumDark" + }, + { + "description": "Equilibrium Gray Dark (https://tinted-theming.github.io/tinted-gallery/#base16-equilibrium-gray-dark)", + "type": "string", + "const": "EquilibriumGrayDark" + }, + { + "description": "Equilibrium Gray Light (https://tinted-theming.github.io/tinted-gallery/#base16-equilibrium-gray-light)", + "type": "string", + "const": "EquilibriumGrayLight" + }, + { + "description": "Equilibrium Light (https://tinted-theming.github.io/tinted-gallery/#base16-equilibrium-light)", + "type": "string", + "const": "EquilibriumLight" + }, + { + "description": "Eris (https://tinted-theming.github.io/tinted-gallery/#base16-eris)", + "type": "string", + "const": "Eris" + }, + { + "description": "Espresso (https://tinted-theming.github.io/tinted-gallery/#base16-espresso)", + "type": "string", + "const": "Espresso" + }, + { + "description": "Eva Dim (https://tinted-theming.github.io/tinted-gallery/#base16-eva-dim)", + "type": "string", + "const": "EvaDim" + }, + { + "description": "Eva (https://tinted-theming.github.io/tinted-gallery/#base16-eva)", + "type": "string", + "const": "Eva" + }, + { + "description": "Evenok Dark (https://tinted-theming.github.io/tinted-gallery/#base16-evenok-dark)", + "type": "string", + "const": "EvenokDark" + }, + { + "description": "Everforest Dark Hard (https://tinted-theming.github.io/tinted-gallery/#base16-everforest-dark-hard)", + "type": "string", + "const": "EverforestDarkHard" + }, + { + "description": "Everforest (https://tinted-theming.github.io/tinted-gallery/#base16-everforest)", + "type": "string", + "const": "Everforest" + }, + { + "description": "Flat (https://tinted-theming.github.io/tinted-gallery/#base16-flat)", + "type": "string", + "const": "Flat" + }, + { + "description": "Framer (https://tinted-theming.github.io/tinted-gallery/#base16-framer)", + "type": "string", + "const": "Framer" + }, + { + "description": "Fruit Soda (https://tinted-theming.github.io/tinted-gallery/#base16-fruit-soda)", + "type": "string", + "const": "FruitSoda" + }, + { + "description": "Gigavolt (https://tinted-theming.github.io/tinted-gallery/#base16-gigavolt)", + "type": "string", + "const": "Gigavolt" + }, + { + "description": "Github (https://tinted-theming.github.io/tinted-gallery/#base16-github)", + "type": "string", + "const": "Github" + }, + { + "description": "Google Dark (https://tinted-theming.github.io/tinted-gallery/#base16-google-dark)", + "type": "string", + "const": "GoogleDark" + }, + { + "description": "Google Light (https://tinted-theming.github.io/tinted-gallery/#base16-google-light)", + "type": "string", + "const": "GoogleLight" + }, + { + "description": "Gotham (https://tinted-theming.github.io/tinted-gallery/#base16-gotham)", + "type": "string", + "const": "Gotham" + }, + { + "description": "Grayscale Dark (https://tinted-theming.github.io/tinted-gallery/#base16-grayscale-dark)", + "type": "string", + "const": "GrayscaleDark" + }, + { + "description": "Grayscale Light (https://tinted-theming.github.io/tinted-gallery/#base16-grayscale-light)", + "type": "string", + "const": "GrayscaleLight" + }, + { + "description": "Greenscreen (https://tinted-theming.github.io/tinted-gallery/#base16-greenscreen)", + "type": "string", + "const": "Greenscreen" + }, + { + "description": "Gruber (https://tinted-theming.github.io/tinted-gallery/#base16-gruber)", + "type": "string", + "const": "Gruber" + }, + { + "description": "Gruvbox Dark Hard (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-dark-hard)", + "type": "string", + "const": "GruvboxDarkHard" + }, + { + "description": "Gruvbox Dark Medium (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-dark-medium)", + "type": "string", + "const": "GruvboxDarkMedium" + }, + { + "description": "Gruvbox Dark Pale (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-dark-pale)", + "type": "string", + "const": "GruvboxDarkPale" + }, + { + "description": "Gruvbox Dark Soft (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-dark-soft)", + "type": "string", + "const": "GruvboxDarkSoft" + }, + { + "description": "Gruvbox Light Hard (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-light-hard)", + "type": "string", + "const": "GruvboxLightHard" + }, + { + "description": "Gruvbox Light Medium (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-light-medium)", + "type": "string", + "const": "GruvboxLightMedium" + }, + { + "description": "Gruvbox Light Soft (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-light-soft)", + "type": "string", + "const": "GruvboxLightSoft" + }, + { + "description": "Gruvbox Material Dark Hard (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-dark-hard)", + "type": "string", + "const": "GruvboxMaterialDarkHard" + }, + { + "description": "Gruvbox Material Dark Medium (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-dark-medium)", + "type": "string", + "const": "GruvboxMaterialDarkMedium" + }, + { + "description": "Gruvbox Material Dark Soft (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-dark-soft)", + "type": "string", + "const": "GruvboxMaterialDarkSoft" + }, + { + "description": "Gruvbox Material Light Hard (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-light-hard)", + "type": "string", + "const": "GruvboxMaterialLightHard" + }, + { + "description": "Gruvbox Material Light Medium (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-light-medium)", + "type": "string", + "const": "GruvboxMaterialLightMedium" + }, + { + "description": "Gruvbox Material Light Soft (https://tinted-theming.github.io/tinted-gallery/#base16-gruvbox-material-light-soft)", + "type": "string", + "const": "GruvboxMaterialLightSoft" + }, + { + "description": "Hardcore (https://tinted-theming.github.io/tinted-gallery/#base16-hardcore)", + "type": "string", + "const": "Hardcore" + }, + { + "description": "Harmonic16 Dark (https://tinted-theming.github.io/tinted-gallery/#base16-harmonic16-dark)", + "type": "string", + "const": "Harmonic16Dark" + }, + { + "description": "Harmonic16 Light (https://tinted-theming.github.io/tinted-gallery/#base16-harmonic16-light)", + "type": "string", + "const": "Harmonic16Light" + }, + { + "description": "Heetch Light (https://tinted-theming.github.io/tinted-gallery/#base16-heetch-light)", + "type": "string", + "const": "HeetchLight" + }, + { + "description": "Heetch (https://tinted-theming.github.io/tinted-gallery/#base16-heetch)", + "type": "string", + "const": "Heetch" + }, + { + "description": "Helios (https://tinted-theming.github.io/tinted-gallery/#base16-helios)", + "type": "string", + "const": "Helios" + }, + { + "description": "Hopscotch (https://tinted-theming.github.io/tinted-gallery/#base16-hopscotch)", + "type": "string", + "const": "Hopscotch" + }, + { + "description": "Horizon Dark (https://tinted-theming.github.io/tinted-gallery/#base16-horizon-dark)", + "type": "string", + "const": "HorizonDark" + }, + { + "description": "Horizon Light (https://tinted-theming.github.io/tinted-gallery/#base16-horizon-light)", + "type": "string", + "const": "HorizonLight" + }, + { + "description": "Horizon Terminal Dark (https://tinted-theming.github.io/tinted-gallery/#base16-horizon-terminal-dark)", + "type": "string", + "const": "HorizonTerminalDark" + }, + { + "description": "Horizon Terminal Light (https://tinted-theming.github.io/tinted-gallery/#base16-horizon-terminal-light)", + "type": "string", + "const": "HorizonTerminalLight" + }, + { + "description": "Humanoid Dark (https://tinted-theming.github.io/tinted-gallery/#base16-humanoid-dark)", + "type": "string", + "const": "HumanoidDark" + }, + { + "description": "Humanoid Light (https://tinted-theming.github.io/tinted-gallery/#base16-humanoid-light)", + "type": "string", + "const": "HumanoidLight" + }, + { + "description": "Ia Dark (https://tinted-theming.github.io/tinted-gallery/#base16-ia-dark)", + "type": "string", + "const": "IaDark" + }, + { + "description": "Ia Light (https://tinted-theming.github.io/tinted-gallery/#base16-ia-light)", + "type": "string", + "const": "IaLight" + }, + { + "description": "Icy (https://tinted-theming.github.io/tinted-gallery/#base16-icy)", + "type": "string", + "const": "Icy" + }, + { + "description": "Irblack (https://tinted-theming.github.io/tinted-gallery/#base16-irblack)", + "type": "string", + "const": "Irblack" + }, + { + "description": "Isotope (https://tinted-theming.github.io/tinted-gallery/#base16-isotope)", + "type": "string", + "const": "Isotope" + }, + { + "description": "Jabuti (https://tinted-theming.github.io/tinted-gallery/#base16-jabuti)", + "type": "string", + "const": "Jabuti" + }, + { + "description": "Kanagawa (https://tinted-theming.github.io/tinted-gallery/#base16-kanagawa)", + "type": "string", + "const": "Kanagawa" + }, + { + "description": "Katy (https://tinted-theming.github.io/tinted-gallery/#base16-katy)", + "type": "string", + "const": "Katy" + }, + { + "description": "Kimber (https://tinted-theming.github.io/tinted-gallery/#base16-kimber)", + "type": "string", + "const": "Kimber" + }, + { + "description": "Lime (https://tinted-theming.github.io/tinted-gallery/#base16-lime)", + "type": "string", + "const": "Lime" + }, + { + "description": "Macintosh (https://tinted-theming.github.io/tinted-gallery/#base16-macintosh)", + "type": "string", + "const": "Macintosh" + }, + { + "description": "Marrakesh (https://tinted-theming.github.io/tinted-gallery/#base16-marrakesh)", + "type": "string", + "const": "Marrakesh" + }, + { + "description": "Materia (https://tinted-theming.github.io/tinted-gallery/#base16-materia)", + "type": "string", + "const": "Materia" + }, + { + "description": "Material Darker (https://tinted-theming.github.io/tinted-gallery/#base16-material-darker)", + "type": "string", + "const": "MaterialDarker" + }, + { + "description": "Material Lighter (https://tinted-theming.github.io/tinted-gallery/#base16-material-lighter)", + "type": "string", + "const": "MaterialLighter" + }, + { + "description": "Material Palenight (https://tinted-theming.github.io/tinted-gallery/#base16-material-palenight)", + "type": "string", + "const": "MaterialPalenight" + }, + { + "description": "Material Vivid (https://tinted-theming.github.io/tinted-gallery/#base16-material-vivid)", + "type": "string", + "const": "MaterialVivid" + }, + { + "description": "Material (https://tinted-theming.github.io/tinted-gallery/#base16-material)", + "type": "string", + "const": "Material" + }, + { + "description": "Measured Dark (https://tinted-theming.github.io/tinted-gallery/#base16-measured-dark)", + "type": "string", + "const": "MeasuredDark" + }, + { + "description": "Measured Light (https://tinted-theming.github.io/tinted-gallery/#base16-measured-light)", + "type": "string", + "const": "MeasuredLight" + }, + { + "description": "Mellow Purple (https://tinted-theming.github.io/tinted-gallery/#base16-mellow-purple)", + "type": "string", + "const": "MellowPurple" + }, + { + "description": "Mexico Light (https://tinted-theming.github.io/tinted-gallery/#base16-mexico-light)", + "type": "string", + "const": "MexicoLight" + }, + { + "description": "Mocha (https://tinted-theming.github.io/tinted-gallery/#base16-mocha)", + "type": "string", + "const": "Mocha" + }, + { + "description": "Monokai (https://tinted-theming.github.io/tinted-gallery/#base16-monokai)", + "type": "string", + "const": "Monokai" + }, + { + "description": "Moonlight (https://tinted-theming.github.io/tinted-gallery/#base16-moonlight)", + "type": "string", + "const": "Moonlight" + }, + { + "description": "Mountain (https://tinted-theming.github.io/tinted-gallery/#base16-mountain)", + "type": "string", + "const": "Mountain" + }, + { + "description": "Nebula (https://tinted-theming.github.io/tinted-gallery/#base16-nebula)", + "type": "string", + "const": "Nebula" + }, + { + "description": "Nord Light (https://tinted-theming.github.io/tinted-gallery/#base16-nord-light)", + "type": "string", + "const": "NordLight" + }, + { + "description": "Nord (https://tinted-theming.github.io/tinted-gallery/#base16-nord)", + "type": "string", + "const": "Nord" + }, + { + "description": "Nova (https://tinted-theming.github.io/tinted-gallery/#base16-nova)", + "type": "string", + "const": "Nova" + }, + { + "description": "Ocean (https://tinted-theming.github.io/tinted-gallery/#base16-ocean)", + "type": "string", + "const": "Ocean" + }, + { + "description": "Oceanicnext (https://tinted-theming.github.io/tinted-gallery/#base16-oceanicnext)", + "type": "string", + "const": "Oceanicnext" + }, + { + "description": "One Light (https://tinted-theming.github.io/tinted-gallery/#base16-one-light)", + "type": "string", + "const": "OneLight" + }, + { + "description": "Onedark Dark (https://tinted-theming.github.io/tinted-gallery/#base16-onedark-dark)", + "type": "string", + "const": "OnedarkDark" + }, + { + "description": "Onedark (https://tinted-theming.github.io/tinted-gallery/#base16-onedark)", + "type": "string", + "const": "Onedark" + }, + { + "description": "Outrun Dark (https://tinted-theming.github.io/tinted-gallery/#base16-outrun-dark)", + "type": "string", + "const": "OutrunDark" + }, + { + "description": "Oxocarbon Dark (https://tinted-theming.github.io/tinted-gallery/#base16-oxocarbon-dark)", + "type": "string", + "const": "OxocarbonDark" + }, + { + "description": "Oxocarbon Light (https://tinted-theming.github.io/tinted-gallery/#base16-oxocarbon-light)", + "type": "string", + "const": "OxocarbonLight" + }, + { + "description": "Pandora (https://tinted-theming.github.io/tinted-gallery/#base16-pandora)", + "type": "string", + "const": "Pandora" + }, + { + "description": "Papercolor Dark (https://tinted-theming.github.io/tinted-gallery/#base16-papercolor-dark)", + "type": "string", + "const": "PapercolorDark" + }, + { + "description": "Papercolor Light (https://tinted-theming.github.io/tinted-gallery/#base16-papercolor-light)", + "type": "string", + "const": "PapercolorLight" + }, + { + "description": "Paraiso (https://tinted-theming.github.io/tinted-gallery/#base16-paraiso)", + "type": "string", + "const": "Paraiso" + }, + { + "description": "Pasque (https://tinted-theming.github.io/tinted-gallery/#base16-pasque)", + "type": "string", + "const": "Pasque" + }, + { + "description": "Phd (https://tinted-theming.github.io/tinted-gallery/#base16-phd)", + "type": "string", + "const": "Phd" + }, + { + "description": "Pico (https://tinted-theming.github.io/tinted-gallery/#base16-pico)", + "type": "string", + "const": "Pico" + }, + { + "description": "Pinky (https://tinted-theming.github.io/tinted-gallery/#base16-pinky)", + "type": "string", + "const": "Pinky" + }, + { + "description": "Pop (https://tinted-theming.github.io/tinted-gallery/#base16-pop)", + "type": "string", + "const": "Pop" + }, + { + "description": "Porple (https://tinted-theming.github.io/tinted-gallery/#base16-porple)", + "type": "string", + "const": "Porple" + }, + { + "description": "Precious Dark Eleven (https://tinted-theming.github.io/tinted-gallery/#base16-precious-dark-eleven)", + "type": "string", + "const": "PreciousDarkEleven" + }, + { + "description": "Precious Dark Fifteen (https://tinted-theming.github.io/tinted-gallery/#base16-precious-dark-fifteen)", + "type": "string", + "const": "PreciousDarkFifteen" + }, + { + "description": "Precious Light Warm (https://tinted-theming.github.io/tinted-gallery/#base16-precious-light-warm)", + "type": "string", + "const": "PreciousLightWarm" + }, + { + "description": "Precious Light White (https://tinted-theming.github.io/tinted-gallery/#base16-precious-light-white)", + "type": "string", + "const": "PreciousLightWhite" + }, + { + "description": "Primer Dark Dimmed (https://tinted-theming.github.io/tinted-gallery/#base16-primer-dark-dimmed)", + "type": "string", + "const": "PrimerDarkDimmed" + }, + { + "description": "Primer Dark (https://tinted-theming.github.io/tinted-gallery/#base16-primer-dark)", + "type": "string", + "const": "PrimerDark" + }, + { + "description": "Primer Light (https://tinted-theming.github.io/tinted-gallery/#base16-primer-light)", + "type": "string", + "const": "PrimerLight" + }, + { + "description": "Purpledream (https://tinted-theming.github.io/tinted-gallery/#base16-purpledream)", + "type": "string", + "const": "Purpledream" + }, + { + "description": "Qualia (https://tinted-theming.github.io/tinted-gallery/#base16-qualia)", + "type": "string", + "const": "Qualia" + }, + { + "description": "Railscasts (https://tinted-theming.github.io/tinted-gallery/#base16-railscasts)", + "type": "string", + "const": "Railscasts" + }, + { + "description": "Rebecca (https://tinted-theming.github.io/tinted-gallery/#base16-rebecca)", + "type": "string", + "const": "Rebecca" + }, + { + "description": "Rose Pine Dawn (https://tinted-theming.github.io/tinted-gallery/#base16-rose-pine-dawn)", + "type": "string", + "const": "RosePineDawn" + }, + { + "description": "Rose Pine Moon (https://tinted-theming.github.io/tinted-gallery/#base16-rose-pine-moon)", + "type": "string", + "const": "RosePineMoon" + }, + { + "description": "Rose Pine (https://tinted-theming.github.io/tinted-gallery/#base16-rose-pine)", + "type": "string", + "const": "RosePine" + }, + { + "description": "Saga (https://tinted-theming.github.io/tinted-gallery/#base16-saga)", + "type": "string", + "const": "Saga" + }, + { + "description": "Sagelight (https://tinted-theming.github.io/tinted-gallery/#base16-sagelight)", + "type": "string", + "const": "Sagelight" + }, + { + "description": "Sakura (https://tinted-theming.github.io/tinted-gallery/#base16-sakura)", + "type": "string", + "const": "Sakura" + }, + { + "description": "Sandcastle (https://tinted-theming.github.io/tinted-gallery/#base16-sandcastle)", + "type": "string", + "const": "Sandcastle" + }, + { + "description": "Selenized Black (https://tinted-theming.github.io/tinted-gallery/#base16-selenized-black)", + "type": "string", + "const": "SelenizedBlack" + }, + { + "description": "Selenized Dark (https://tinted-theming.github.io/tinted-gallery/#base16-selenized-dark)", + "type": "string", + "const": "SelenizedDark" + }, + { + "description": "Selenized Light (https://tinted-theming.github.io/tinted-gallery/#base16-selenized-light)", + "type": "string", + "const": "SelenizedLight" + }, + { + "description": "Selenized White (https://tinted-theming.github.io/tinted-gallery/#base16-selenized-white)", + "type": "string", + "const": "SelenizedWhite" + }, + { + "description": "Seti (https://tinted-theming.github.io/tinted-gallery/#base16-seti)", + "type": "string", + "const": "Seti" + }, + { + "description": "Shades Of Purple (https://tinted-theming.github.io/tinted-gallery/#base16-shades-of-purple)", + "type": "string", + "const": "ShadesOfPurple" + }, + { + "description": "Shadesmear Dark (https://tinted-theming.github.io/tinted-gallery/#base16-shadesmear-dark)", + "type": "string", + "const": "ShadesmearDark" + }, + { + "description": "Shadesmear Light (https://tinted-theming.github.io/tinted-gallery/#base16-shadesmear-light)", + "type": "string", + "const": "ShadesmearLight" + }, + { + "description": "Shapeshifter (https://tinted-theming.github.io/tinted-gallery/#base16-shapeshifter)", + "type": "string", + "const": "Shapeshifter" + }, + { + "description": "Silk Dark (https://tinted-theming.github.io/tinted-gallery/#base16-silk-dark)", + "type": "string", + "const": "SilkDark" + }, + { + "description": "Silk Light (https://tinted-theming.github.io/tinted-gallery/#base16-silk-light)", + "type": "string", + "const": "SilkLight" + }, + { + "description": "Snazzy (https://tinted-theming.github.io/tinted-gallery/#base16-snazzy)", + "type": "string", + "const": "Snazzy" + }, + { + "description": "Solarflare Light (https://tinted-theming.github.io/tinted-gallery/#base16-solarflare-light)", + "type": "string", + "const": "SolarflareLight" + }, + { + "description": "Solarflare (https://tinted-theming.github.io/tinted-gallery/#base16-solarflare)", + "type": "string", + "const": "Solarflare" + }, + { + "description": "Solarized Dark (https://tinted-theming.github.io/tinted-gallery/#base16-solarized-dark)", + "type": "string", + "const": "SolarizedDark" + }, + { + "description": "Solarized Light (https://tinted-theming.github.io/tinted-gallery/#base16-solarized-light)", + "type": "string", + "const": "SolarizedLight" + }, + { + "description": "Spaceduck (https://tinted-theming.github.io/tinted-gallery/#base16-spaceduck)", + "type": "string", + "const": "Spaceduck" + }, + { + "description": "Spacemacs (https://tinted-theming.github.io/tinted-gallery/#base16-spacemacs)", + "type": "string", + "const": "Spacemacs" + }, + { + "description": "Sparky (https://tinted-theming.github.io/tinted-gallery/#base16-sparky)", + "type": "string", + "const": "Sparky" + }, + { + "description": "Standardized Dark (https://tinted-theming.github.io/tinted-gallery/#base16-standardized-dark)", + "type": "string", + "const": "StandardizedDark" + }, + { + "description": "Standardized Light (https://tinted-theming.github.io/tinted-gallery/#base16-standardized-light)", + "type": "string", + "const": "StandardizedLight" + }, + { + "description": "Stella (https://tinted-theming.github.io/tinted-gallery/#base16-stella)", + "type": "string", + "const": "Stella" + }, + { + "description": "Still Alive (https://tinted-theming.github.io/tinted-gallery/#base16-still-alive)", + "type": "string", + "const": "StillAlive" + }, + { + "description": "Summercamp (https://tinted-theming.github.io/tinted-gallery/#base16-summercamp)", + "type": "string", + "const": "Summercamp" + }, + { + "description": "Summerfruit Dark (https://tinted-theming.github.io/tinted-gallery/#base16-summerfruit-dark)", + "type": "string", + "const": "SummerfruitDark" + }, + { + "description": "Summerfruit Light (https://tinted-theming.github.io/tinted-gallery/#base16-summerfruit-light)", + "type": "string", + "const": "SummerfruitLight" + }, + { + "description": "Synth Midnight Dark (https://tinted-theming.github.io/tinted-gallery/#base16-synth-midnight-dark)", + "type": "string", + "const": "SynthMidnightDark" + }, + { + "description": "Synth Midnight Light (https://tinted-theming.github.io/tinted-gallery/#base16-synth-midnight-light)", + "type": "string", + "const": "SynthMidnightLight" + }, + { + "description": "Tango (https://tinted-theming.github.io/tinted-gallery/#base16-tango)", + "type": "string", + "const": "Tango" + }, + { + "description": "Tarot (https://tinted-theming.github.io/tinted-gallery/#base16-tarot)", + "type": "string", + "const": "Tarot" + }, + { + "description": "Tender (https://tinted-theming.github.io/tinted-gallery/#base16-tender)", + "type": "string", + "const": "Tender" + }, + { + "description": "Terracotta Dark (https://tinted-theming.github.io/tinted-gallery/#base16-terracotta-dark)", + "type": "string", + "const": "TerracottaDark" + }, + { + "description": "Terracotta (https://tinted-theming.github.io/tinted-gallery/#base16-terracotta)", + "type": "string", + "const": "Terracotta" + }, + { + "description": "Tokyo City Dark (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-city-dark)", + "type": "string", + "const": "TokyoCityDark" + }, + { + "description": "Tokyo City Light (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-city-light)", + "type": "string", + "const": "TokyoCityLight" + }, + { + "description": "Tokyo City Terminal Dark (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-city-terminal-dark)", + "type": "string", + "const": "TokyoCityTerminalDark" + }, + { + "description": "Tokyo City Terminal Light (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-city-terminal-light)", + "type": "string", + "const": "TokyoCityTerminalLight" + }, + { + "description": "Tokyo Night Dark (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-dark)", + "type": "string", + "const": "TokyoNightDark" + }, + { + "description": "Tokyo Night Light (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-light)", + "type": "string", + "const": "TokyoNightLight" + }, + { + "description": "Tokyo Night Moon (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-moon)", + "type": "string", + "const": "TokyoNightMoon" + }, + { + "description": "Tokyo Night Storm (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-storm)", + "type": "string", + "const": "TokyoNightStorm" + }, + { + "description": "Tokyo Night Terminal Dark (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-terminal-dark)", + "type": "string", + "const": "TokyoNightTerminalDark" + }, + { + "description": "Tokyo Night Terminal Light (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-terminal-light)", + "type": "string", + "const": "TokyoNightTerminalLight" + }, + { + "description": "Tokyo Night Terminal Storm (https://tinted-theming.github.io/tinted-gallery/#base16-tokyo-night-terminal-storm)", + "type": "string", + "const": "TokyoNightTerminalStorm" + }, + { + "description": "Tokyodark Terminal (https://tinted-theming.github.io/tinted-gallery/#base16-tokyodark-terminal)", + "type": "string", + "const": "TokyodarkTerminal" + }, + { + "description": "Tokyodark (https://tinted-theming.github.io/tinted-gallery/#base16-tokyodark)", + "type": "string", + "const": "Tokyodark" + }, + { + "description": "Tomorrow Night Eighties (https://tinted-theming.github.io/tinted-gallery/#base16-tomorrow-night-eighties)", + "type": "string", + "const": "TomorrowNightEighties" + }, + { + "description": "Tomorrow Night (https://tinted-theming.github.io/tinted-gallery/#base16-tomorrow-night)", + "type": "string", + "const": "TomorrowNight" + }, + { + "description": "Tomorrow (https://tinted-theming.github.io/tinted-gallery/#base16-tomorrow)", + "type": "string", + "const": "Tomorrow" + }, + { + "description": "Tube (https://tinted-theming.github.io/tinted-gallery/#base16-tube)", + "type": "string", + "const": "Tube" + }, + { + "description": "Twilight (https://tinted-theming.github.io/tinted-gallery/#base16-twilight)", + "type": "string", + "const": "Twilight" + }, + { + "description": "Unikitty Dark (https://tinted-theming.github.io/tinted-gallery/#base16-unikitty-dark)", + "type": "string", + "const": "UnikittyDark" + }, + { + "description": "Unikitty Light (https://tinted-theming.github.io/tinted-gallery/#base16-unikitty-light)", + "type": "string", + "const": "UnikittyLight" + }, + { + "description": "Unikitty Reversible (https://tinted-theming.github.io/tinted-gallery/#base16-unikitty-reversible)", + "type": "string", + "const": "UnikittyReversible" + }, + { + "description": "Uwunicorn (https://tinted-theming.github.io/tinted-gallery/#base16-uwunicorn)", + "type": "string", + "const": "Uwunicorn" + }, + { + "description": "Vesper (https://tinted-theming.github.io/tinted-gallery/#base16-vesper)", + "type": "string", + "const": "Vesper" + }, + { + "description": "Vice (https://tinted-theming.github.io/tinted-gallery/#base16-vice)", + "type": "string", + "const": "Vice" + }, + { + "description": "Vulcan (https://tinted-theming.github.io/tinted-gallery/#base16-vulcan)", + "type": "string", + "const": "Vulcan" + }, + { + "description": "Windows 10 Light (https://tinted-theming.github.io/tinted-gallery/#base16-windows-10-light)", + "type": "string", + "const": "Windows10Light" + }, + { + "description": "Windows 10 (https://tinted-theming.github.io/tinted-gallery/#base16-windows-10)", + "type": "string", + "const": "Windows10" + }, + { + "description": "Windows 95 Light (https://tinted-theming.github.io/tinted-gallery/#base16-windows-95-light)", + "type": "string", + "const": "Windows95Light" + }, + { + "description": "Windows 95 (https://tinted-theming.github.io/tinted-gallery/#base16-windows-95)", + "type": "string", + "const": "Windows95" + }, + { + "description": "Windows Highcontrast Light (https://tinted-theming.github.io/tinted-gallery/#base16-windows-highcontrast-light)", + "type": "string", + "const": "WindowsHighcontrastLight" + }, + { + "description": "Windows Highcontrast (https://tinted-theming.github.io/tinted-gallery/#base16-windows-highcontrast)", + "type": "string", + "const": "WindowsHighcontrast" + }, + { + "description": "Windows Nt Light (https://tinted-theming.github.io/tinted-gallery/#base16-windows-nt-light)", + "type": "string", + "const": "WindowsNtLight" + }, + { + "description": "Windows Nt (https://tinted-theming.github.io/tinted-gallery/#base16-windows-nt)", + "type": "string", + "const": "WindowsNt" + }, + { + "description": "Woodland (https://tinted-theming.github.io/tinted-gallery/#base16-woodland)", + "type": "string", + "const": "Woodland" + }, + { + "description": "Xcode Dusk (https://tinted-theming.github.io/tinted-gallery/#base16-xcode-dusk)", + "type": "string", + "const": "XcodeDusk" + }, + { + "description": "Zenbones (https://tinted-theming.github.io/tinted-gallery/#base16-zenbones)", + "type": "string", + "const": "Zenbones" + }, + { + "description": "Zenburn (https://tinted-theming.github.io/tinted-gallery/#base16-zenburn)", + "type": "string", + "const": "Zenburn" + } + ] + }, + "Base16ColourPalette": { + "description": "Base16 colour palette: https://github.com/chriskempson/base16", + "type": "object", + "properties": { + "base_00": { + "description": "Base00", + "$ref": "#/$defs/Colour" + }, + "base_01": { + "description": "Base01", + "$ref": "#/$defs/Colour" + }, + "base_02": { + "description": "Base02", + "$ref": "#/$defs/Colour" + }, + "base_03": { + "description": "Base03", + "$ref": "#/$defs/Colour" + }, + "base_04": { + "description": "Base04", + "$ref": "#/$defs/Colour" + }, + "base_05": { + "description": "Base05", + "$ref": "#/$defs/Colour" + }, + "base_06": { + "description": "Base06", + "$ref": "#/$defs/Colour" + }, + "base_07": { + "description": "Base07", + "$ref": "#/$defs/Colour" + }, + "base_08": { + "description": "Base08", + "$ref": "#/$defs/Colour" + }, + "base_09": { + "description": "Base09", + "$ref": "#/$defs/Colour" + }, + "base_0a": { + "description": "Base0A", + "$ref": "#/$defs/Colour" + }, + "base_0b": { + "description": "Base0B", + "$ref": "#/$defs/Colour" + }, + "base_0c": { + "description": "Base0C", + "$ref": "#/$defs/Colour" + }, + "base_0d": { + "description": "Base0D", + "$ref": "#/$defs/Colour" + }, + "base_0e": { + "description": "Base0E", + "$ref": "#/$defs/Colour" + }, + "base_0f": { + "description": "Base0F", + "$ref": "#/$defs/Colour" + } + }, + "required": [ + "base_00", + "base_01", + "base_02", + "base_03", + "base_04", + "base_05", + "base_06", + "base_07", + "base_08", + "base_09", + "base_0a", + "base_0b", + "base_0c", + "base_0d", + "base_0e", + "base_0f" + ] + }, + "Base16Value": { + "description": "Base16 value", + "oneOf": [ + { + "description": "Base00", + "type": "string", + "const": "Base00" + }, + { + "description": "Base01", + "type": "string", + "const": "Base01" + }, + { + "description": "Base02", + "type": "string", + "const": "Base02" + }, + { + "description": "Base03", + "type": "string", + "const": "Base03" + }, + { + "description": "Base04", + "type": "string", + "const": "Base04" + }, + { + "description": "Base05", + "type": "string", + "const": "Base05" + }, + { + "description": "Base06", + "type": "string", + "const": "Base06" + }, + { + "description": "Base07", + "type": "string", + "const": "Base07" + }, + { + "description": "Base08", + "type": "string", + "const": "Base08" + }, + { + "description": "Base09", + "type": "string", + "const": "Base09" + }, + { + "description": "Base0A", + "type": "string", + "const": "Base0A" + }, + { + "description": "Base0B", + "type": "string", + "const": "Base0B" + }, + { + "description": "Base0C", + "type": "string", + "const": "Base0C" + }, + { + "description": "Base0D", + "type": "string", + "const": "Base0D" + }, + { + "description": "Base0E", + "type": "string", + "const": "Base0E" + }, + { + "description": "Base0F", + "type": "string", + "const": "Base0F" + } + ] + }, + "BorderColours": { + "description": "Border colours for different container states\n\nThese options will have no effect if a `theme` is set", + "type": "object", + "properties": { + "floating": { + "description": "Border colour when the container is in floating mode", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + }, + "monocle": { + "description": "Border colour when the container is in monocle mode", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + }, + "single": { + "description": "Border colour when the container contains a single window", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + }, + "stack": { + "description": "Border colour when the container contains multiple windows", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + }, + "unfocused": { + "description": "Border colour when the container is unfocused", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + }, + "unfocused_locked": { + "description": "Border colour when the container is unfocused and locked", + "anyOf": [ + { + "$ref": "#/$defs/Colour" + }, + { + "type": "null" + } + ] + } + } + }, + "Catppuccin": { + "description": "Catppuccin palette", + "oneOf": [ + { + "description": "Frappe (https://catppuccin.com/palette#flavor-frappe)", + "type": "string", + "const": "Frappe" + }, + { + "description": "Latte (https://catppuccin.com/palette#flavor-latte)", + "type": "string", + "const": "Latte" + }, + { + "description": "Macchiato (https://catppuccin.com/palette#flavor-macchiato)", + "type": "string", + "const": "Macchiato" + }, + { + "description": "Mocha (https://catppuccin.com/palette#flavor-mocha)", + "type": "string", + "const": "Mocha" + } + ] + }, + "CatppuccinValue": { + "description": "Catppuccin Value", + "oneOf": [ + { + "description": "Rosewater", + "type": "string", + "const": "Rosewater" + }, + { + "description": "Flamingo", + "type": "string", + "const": "Flamingo" + }, + { + "description": "Pink", + "type": "string", + "const": "Pink" + }, + { + "description": "Mauve", + "type": "string", + "const": "Mauve" + }, + { + "description": "Red", + "type": "string", + "const": "Red" + }, + { + "description": "Maroon", + "type": "string", + "const": "Maroon" + }, + { + "description": "Peach", + "type": "string", + "const": "Peach" + }, + { + "description": "Yellow", + "type": "string", + "const": "Yellow" + }, + { + "description": "Green", + "type": "string", + "const": "Green" + }, + { + "description": "Teal", + "type": "string", + "const": "Teal" + }, + { + "description": "Sky", + "type": "string", + "const": "Sky" + }, + { + "description": "Sapphire", + "type": "string", + "const": "Sapphire" + }, + { + "description": "Blue", + "type": "string", + "const": "Blue" + }, + { + "description": "Lavender", + "type": "string", + "const": "Lavender" + }, + { + "description": "Text", + "type": "string", + "const": "Text" + }, + { + "description": "Subtext1", + "type": "string", + "const": "Subtext1" + }, + { + "description": "Subtext0", + "type": "string", + "const": "Subtext0" + }, + { + "description": "Overlay2", + "type": "string", + "const": "Overlay2" + }, + { + "description": "Overlay1", + "type": "string", + "const": "Overlay1" + }, + { + "description": "Overlay0", + "type": "string", + "const": "Overlay0" + }, + { + "description": "Surface2", + "type": "string", + "const": "Surface2" + }, + { + "description": "Surface1", + "type": "string", + "const": "Surface1" + }, + { + "description": "Surface0", + "type": "string", + "const": "Surface0" + }, + { + "description": "Base", + "type": "string", + "const": "Base" + }, + { + "description": "Mantle", + "type": "string", + "const": "Mantle" + }, + { + "description": "Crust", + "type": "string", + "const": "Crust" + } + ] + }, + "Colour": { + "description": "Colour representation", + "anyOf": [ + { + "description": "Colour represented as RGB", + "$ref": "#/$defs/Rgb" + }, + { + "description": "Colour represented as Hex", + "$ref": "#/$defs/Hex" + } + ] + }, "CrossBoundaryBehaviour": { "description": "Behavior when an action would cross a monitor boundary", "oneOf": [ @@ -807,6 +2597,11 @@ "rows" ] }, + "Hex": { + "description": "Colour represented as a Hex string", + "type": "string", + "format": "color-hex" + }, "IdWithIdentifier": { "description": "Rule for matching applications", "type": "object", @@ -836,6 +2631,347 @@ "id" ] }, + "KomorebiTheme": { + "description": "Komorebi theme", + "oneOf": [ + { + "title": "Catppuccin", + "description": "Theme from catppuccin-egui", + "type": "object", + "properties": { + "palette": { + "type": "string", + "const": "Catppuccin" + } + }, + "$ref": "#/$defs/KomorebiThemeCatppuccin", + "required": [ + "palette" + ] + }, + { + "title": "Base16", + "description": "Theme from base16-egui-themes", + "type": "object", + "properties": { + "palette": { + "type": "string", + "const": "Base16" + } + }, + "$ref": "#/$defs/KomorebiThemeBase16", + "required": [ + "palette" + ] + }, + { + "title": "Custom", + "description": "Custom Base16 theme", + "type": "object", + "properties": { + "palette": { + "type": "string", + "const": "Custom" + } + }, + "$ref": "#/$defs/KomorebiThemeCustom", + "required": [ + "palette" + ] + } + ] + }, + "KomorebiThemeBase16": { + "description": "Theme from base16-egui-themes", + "type": "object", + "properties": { + "bar_accent": { + "description": "Bar accent colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0D" + }, + "floating_border": { + "description": "Floating window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base09" + }, + "monocle_border": { + "description": "Monocle window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0F" + }, + "name": { + "description": "Name of the Base16 theme (theme previews: https://tinted-theming.github.io/tinted-gallery/)", + "$ref": "#/$defs/Base16" + }, + "single_border": { + "description": "Single window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0D" + }, + "stack_border": { + "description": "Stack window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0B" + }, + "unfocused_border": { + "description": "Unfocused window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base01" + }, + "unfocused_locked_border": { + "description": "Unfocused locked window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base08" + } + }, + "required": [ + "name" + ] + }, + "KomorebiThemeCatppuccin": { + "description": "Theme from catppuccin-egui", + "type": "object", + "properties": { + "bar_accent": { + "description": "Bar accent colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Blue" + }, + "floating_border": { + "description": "Floating window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Yellow" + }, + "monocle_border": { + "description": "Monocle window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Pink" + }, + "name": { + "description": "Name of the Catppuccin theme (previews: https://github.com/catppuccin/catppuccin)", + "$ref": "#/$defs/Catppuccin" + }, + "single_border": { + "description": "Single window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Blue" + }, + "stack_border": { + "description": "Stack window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Green" + }, + "unfocused_border": { + "description": "Unfocused window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Base" + }, + "unfocused_locked_border": { + "description": "Unfocused locked window border colour", + "anyOf": [ + { + "$ref": "#/$defs/CatppuccinValue" + }, + { + "type": "null" + } + ], + "default": "Red" + } + }, + "required": [ + "name" + ] + }, + "KomorebiThemeCustom": { + "description": "Custom Base16 theme", + "type": "object", + "properties": { + "bar_accent": { + "description": "Bar accent colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0D" + }, + "colours": { + "description": "Colours of the custom Base16 theme palette", + "$ref": "#/$defs/Base16ColourPalette" + }, + "floating_border": { + "description": "Floating window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base09" + }, + "monocle_border": { + "description": "Monocle window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0F" + }, + "single_border": { + "description": "Single window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0D" + }, + "stack_border": { + "description": "Stack window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base0B" + }, + "unfocused_border": { + "description": "Unfocused window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base01" + }, + "unfocused_locked_border": { + "description": "Unfocused locked window border colour", + "anyOf": [ + { + "$ref": "#/$defs/Base16Value" + }, + { + "type": "null" + } + ], + "default": "Base08" + } + }, + "required": [ + "colours" + ] + }, "LayoutDefaultEntry": { "description": "Per-layout default options entry for the `layout_defaults` global setting.\nContains both base layout options and threshold-based layout options rules.", "type": "object", @@ -1272,6 +3408,35 @@ "bottom" ] }, + "Rgb": { + "description": "Colour represented as RGB", + "type": "object", + "properties": { + "b": { + "description": "Blue", + "type": "integer", + "format": "uint32", + "minimum": 0 + }, + "g": { + "description": "Green", + "type": "integer", + "format": "uint32", + "minimum": 0 + }, + "r": { + "description": "Red", + "type": "integer", + "format": "uint32", + "minimum": 0 + } + }, + "required": [ + "r", + "g", + "b" + ] + }, "ScrollingLayoutOptions": { "description": "Options for the Scrolling layout", "type": "object",