diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index e6a99778..20d91dd6 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -31,7 +31,7 @@ These come from Rust crate dependencies (not files in this repository) and keep | Asset | Used for | Author | Source | License | |---|---|---|---|---| -| Phosphor Icons (regular), via the `egui-phosphor` crate | Every UI icon (tools, layers, panels) | Phosphor Icons (Helena Zhang, Tobias Fried) | https://phosphoricons.com, https://github.com/amPerl/egui-phosphor | MIT (icons); crate MIT OR Apache-2.0 | +| Phosphor Icons (regular), via the `egui-phosphor` crate (vendored in `vendor/egui-phosphor` for egui 0.37) | Every UI icon (tools, layers, panels) | Phosphor Icons (Helena Zhang, Tobias Fried) | https://phosphoricons.com, https://github.com/amPerl/egui-phosphor | MIT (icons); crate MIT OR Apache-2.0 | | egui default fonts (Ubuntu-Light, Hack, Noto Emoji, emoji-icon-font), via `epaint_default_fonts` | UI text | Canonical / Source Foundry / Google / Jessie Jung | https://github.com/emilk/egui | Ubuntu Font Licence 1.0, MIT + Bitstream Vera License, OFL 1.1, MIT | | Only in builds made with `CRAFT_FONTS_DIR`: BIZ UDPGothic Regular (desktop and web) and Noto Sans CJK SC Regular (desktop), from storytold/craft-fonts (`crates/ui-egui/build.rs`) | Japanese and Chinese UI text | The BIZ UDGothic Project Authors (Morisawa Inc.); The Noto Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 | diff --git a/Cargo.lock b/Cargo.lock index da1a0a95..c7493e45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "accesskit" -version = "0.24.1" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320" +checksum = "4e883d1d28c5fd5568c79ed2d2bd48d9f2fd3945c8974ed0f53690ceddb051be" dependencies = [ "enumn", "serde", @@ -15,12 +15,12 @@ dependencies = [ [[package]] name = "accesskit_atspi_common" -version = "0.18.1" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e8c61bee90b42a772d39d06a740207dc71a4e780004ace1db8d99fb1baaa954" +checksum = "24f5baf62e34a4a6c30e3d697e4782f821a7337049c44c3b40576a27dfbb580d" dependencies = [ "accesskit", - "accesskit_consumer 0.36.0", + "accesskit_consumer", "atspi-common", "phf", "serde", @@ -29,43 +29,37 @@ dependencies = [ [[package]] name = "accesskit_consumer" -version = "0.35.0" +version = "0.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53cf47daed85312e763fbf85ceca136e0d7abc68e0a7e12abe11f48172bc3b10" +checksum = "f3da8f27636015191b2264ee1df681503170a632cafd832fdc1edfdd4e3a2fd3" dependencies = [ "accesskit", - "hashbrown 0.16.1", + "hashbrown 0.17.1", ] [[package]] -name = "accesskit_consumer" -version = "0.36.0" +name = "accesskit_ios" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25e0d7e25d06f4dc21d1774d67146e9e80d6789216cbd4d1e88185b0095dba60" +checksum = "a5280724673bbfa8b30a838c013500b719392989be3b97c5a9964062c252c232" dependencies = [ "accesskit", - "hashbrown 0.16.1", -] - -[[package]] -name = "accesskit_consumer" -version = "0.38.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d10a236f96f87d70732e44520046785431ef01d5bcd6b041317bfadd2f88245" -dependencies = [ - "accesskit", - "hashbrown 0.16.1", + "accesskit_consumer", + "hashbrown 0.17.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", ] [[package]] name = "accesskit_macos" -version = "0.26.3" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce02dc63b43f0c9296af9ac946312a2dc8814427d7a64d2d600971dac55b6076" +checksum = "123828ceeec755b05255e3976cb0852993202de98a0626c97dd8d34246991f84" dependencies = [ "accesskit", - "accesskit_consumer 0.38.0", - "hashbrown 0.16.1", + "accesskit_consumer", + "hashbrown 0.17.1", "objc2 0.5.3", "objc2-app-kit 0.2.2", "objc2-foundation 0.2.2", @@ -73,9 +67,9 @@ dependencies = [ [[package]] name = "accesskit_unix" -version = "0.21.1" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b016ca8db0ea0ea2ceff29a9d6240391492d960716aa471967c00e8cc8cb197c" +checksum = "30d5192871228c54f1b0fb4a85cef000e11a3804f25d2165f14afa0daa67f3f6" dependencies = [ "accesskit", "accesskit_atspi_common", @@ -91,13 +85,13 @@ dependencies = [ [[package]] name = "accesskit_windows" -version = "0.32.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eff7009f1a532e917d66970a1e80c965140c6cfbbabbdde3d64e5431e6c78e21" +checksum = "498668b90da9995302a0055aaecad4756932333da2ddef6baee1c00844c430fc" dependencies = [ "accesskit", - "accesskit_consumer 0.35.0", - "hashbrown 0.16.1", + "accesskit_consumer", + "hashbrown 0.17.1", "static_assertions", "windows", "windows-core", @@ -105,11 +99,12 @@ dependencies = [ [[package]] name = "accesskit_winit" -version = "0.32.2" +version = "0.34.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fe9a94394896352cc4660ca2288bd4ef883d83238853c038b44070c8f134313" +checksum = "cd4ab4437b520ff03088fbe48676a11e7d44a929535e64b31432c1073e48dbcc" dependencies = [ "accesskit", + "accesskit_ios", "accesskit_macos", "accesskit_unix", "accesskit_windows", @@ -209,6 +204,7 @@ dependencies = [ "parking_lot", "percent-encoding", "windows-sys 0.60.2", + "wl-clipboard-rs", "x11rb", ] @@ -550,42 +546,18 @@ dependencies = [ "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.5", - "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", + "calloop", "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.5", - "wayland-backend", - "wayland-client", -] - [[package]] name = "cap-primitives" version = "4.0.3" @@ -670,6 +642,15 @@ dependencies = [ "error-code", ] +[[package]] +name = "cobs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1" +dependencies = [ + "thiserror 2.0.21", +] + [[package]] name = "codespan-reporting" version = "0.13.1" @@ -749,12 +730,53 @@ dependencies = [ "libc", ] +[[package]] +name = "craft-fonts-build" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=f8f8829cc7be65d466d687dae381d1ca60e31242#f8f8829cc7be65d466d687dae381d1ca60e31242" + +[[package]] +name = "craft-i18n" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=f8f8829cc7be65d466d687dae381d1ca60e31242#f8f8829cc7be65d466d687dae381d1ca60e31242" +dependencies = [ + "fixed_decimal", + "icu_decimal", + "icu_locale_core", + "icu_locale_fallback", + "icu_normalizer", + "icu_plurals", + "icu_properties", + "icu_provider", + "icu_provider_adapters", + "icu_provider_blob", + "log", + "objc2-foundation 0.3.2", + "sys-locale", + "unicode-bidi", + "windows-registry", + "writeable", +] + [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=5c874d51eeb3de70e735c8ce87a59a7dedd47675#5c874d51eeb3de70e735c8ce87a59a7dedd47675" +source = "git+https://github.com/storytold/craft-libs?rev=f8f8829cc7be65d466d687dae381d1ca60e31242#f8f8829cc7be65d466d687dae381d1ca60e31242" dependencies = [ + "craft-fonts-build", + "craft-i18n", "egui", + "epaint", + "js-sys", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "serde", + "skrifa", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", ] [[package]] @@ -907,17 +929,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" -[[package]] -name = "duplicate" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e92f10a49176cbffacaedabfaa11d51db1ea0f80a83c26e1873b43cd1742c24" -dependencies = [ - "heck", - "proc-macro2", - "proc-macro2-diagnostics", -] - [[package]] name = "dyn-clone" version = "1.0.20" @@ -926,9 +937,8 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" [[package]] name = "ecolor" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0656a7530b9e2841ee7a5f983965bdd9840c32f4012f759cfd44b912cced6b34" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "bytemuck", "emath", @@ -937,9 +947,8 @@ dependencies = [ [[package]] name = "eframe" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ad41fac6e3149abb4866e93df37dbd33baa95db525c3368c944584e95a5dc2" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "ahash", "bytemuck", @@ -962,6 +971,7 @@ dependencies = [ "profiling", "raw-window-handle", "ron", + "send_wrapper", "serde", "static_assertions", "wasm-bindgen", @@ -974,9 +984,8 @@ dependencies = [ [[package]] name = "egui" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc938cc27cd911415e1e4d151bc56ff9df063d8db081374e87aeb805ea74b2ba" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "accesskit", "ahash", @@ -997,17 +1006,14 @@ dependencies = [ [[package]] name = "egui-phosphor" version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f4299551488dddaa8f757727e1eb4ffdaf277ffe6e30b413403468f5ecf4634" dependencies = [ "egui", ] [[package]] name = "egui-wgpu" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cef1f6d1bba40b09a4d0d62cb822b81030922cfbf65c5373398c3a3caafc5bd" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "ahash", "bytemuck", @@ -1025,44 +1031,31 @@ dependencies = [ [[package]] name = "egui-winit" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98466000559d66ba4db786a30448b01483946add4188e7f10f522a27b4fb89cc" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "accesskit_winit", "arboard", + "block2 0.6.2", "bytemuck", "egui", "log", "objc2 0.6.5", + "objc2-app-kit 0.3.2", "objc2-foundation 0.3.2", "objc2-ui-kit 0.3.2", "profiling", "raw-window-handle", "serde", - "smithay-clipboard", "web-time", + "windows-sys 0.61.2", "winit", ] -[[package]] -name = "egui_dock" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d9f668eb59ff0ab130c8bce71a513135e1d3017fb3103fb8758e9eea99d759f" -dependencies = [ - "duplicate", - "egui", - "paste", - "serde", - "thiserror 2.0.21", -] - [[package]] name = "egui_glow" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "606ed4167daf341e5753d703285c4c1d562324b2c07aa8f405cd7d066fe58f3b" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "bytemuck", "egui", @@ -1080,9 +1073,8 @@ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "emath" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52c8d4141cf0f60fb2f7aefaf352d3ffa5171ef0ab09731c64391801e95e48f1" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "bytemuck", "serde", @@ -1128,9 +1120,8 @@ dependencies = [ [[package]] name = "epaint" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0ec0308dc23130fc1a7d4623a8534c2ed069c6dc84e258ee4f3de99615aa1a3" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" dependencies = [ "ahash", "bytemuck", @@ -1147,16 +1138,17 @@ dependencies = [ "serde", "skrifa", "smallvec", + "unicode-bidi", "unicode-general-category", + "unicode-properties", "unicode-segmentation", "vello_cpu", ] [[package]] name = "epaint_default_fonts" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773fa9c96dd0dbef887e39d0ed6177f141cce4d68e6041df77570aa3702dfa13" +version = "0.37.0" +source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" [[package]] name = "equivalent" @@ -1258,6 +1250,23 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" +[[package]] +name = "fixed_decimal" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae" +dependencies = [ + "displaydoc", + "smallvec", + "writeable", +] + +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flate2" version = "1.1.10" @@ -1269,6 +1278,12 @@ dependencies = [ "zlib-rs", ] +[[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" @@ -1486,12 +1501,12 @@ dependencies = [ [[package]] name = "glifo" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed4a1bb24121291d27230c1b1b44e07d6a9b28cefdb32fe1581dfb84e14f940a" +checksum = "282a26c1e23de04bdab3e34a21b6f877a479b96737792516b9b8b8f69b6661be" dependencies = [ "bytemuck", - "foldhash", + "foldhash 0.2.0", "hashbrown 0.17.1", "log", "peniko", @@ -1664,6 +1679,15 @@ dependencies = [ "smallvec", ] +[[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" @@ -1672,7 +1696,7 @@ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.2.0", ] [[package]] @@ -1681,15 +1705,9 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" dependencies = [ - "foldhash", + "foldhash 0.2.0", ] -[[package]] -name = "heck" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - [[package]] name = "hermit-abi" version = "0.5.3" @@ -1726,6 +1744,183 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_decimal" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb8f655bba2d0c0459e43a5b0e6cd3cd388109898fb3d85d048165e8b0abd08" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_locale_core", + "icu_pattern", + "icu_plurals", + "icu_provider", + "serde", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "251af8e57c9400e3eb58242fe5b8b1152b2a64fdf4cf632f923c38ccee6f2fa9" +dependencies = [ + "icu_locale_core", + "icu_locale_fallback_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "decf2a22ec8fa68f1a0c1129a3f8583f8f8bc24e8b9ccbe98ead99f62a4dc3a8" + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_pattern" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc43ce0e76ee8cb0482dc6e2dbb9b76278e8038f45daabf2a2877577e2ceb18f" +dependencies = [ + "displaydoc", + "either", + "serde", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_plurals" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e475e6766ef87b1d3c1f97be6363995b0bfaeddbc789671615df598a97ff0593" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_provider", + "serde", + "zerovec", +] + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +dependencies = [ + "displaydoc", + "icu_locale_core", + "postcard", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_provider_adapters" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df887bc4f55dbc773c7c45a0c7dfa75be886f7b7812830a71ab7271cc1801820" +dependencies = [ + "icu_locale_fallback", + "icu_provider", +] + +[[package]] +name = "icu_provider_blob" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5916b44fac319d3f58e4d8d805a627df19e27937b582cd99fcde3bb6b7ce1b0e" +dependencies = [ + "icu_provider", + "postcard", + "serde", + "writeable", + "zerotrie", + "zerovec", +] + [[package]] name = "ident_case" version = "1.0.1" @@ -1993,6 +2188,15 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" +dependencies = [ + "serde_core", +] + [[package]] name = "litrs" version = "1.0.1" @@ -2174,6 +2378,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + [[package]] name = "num-complex" version = "0.4.6" @@ -2562,6 +2775,16 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + [[package]] name = "parking" version = "2.2.1" @@ -2623,10 +2846,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] -name = "phf" -version = "0.13.1" +name = "petgraph" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" +dependencies = [ + "fixedbitset", + "hashbrown 0.15.5", + "indexmap", +] + +[[package]] +name = "phf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" dependencies = [ "phf_macros", "phf_shared", @@ -2635,9 +2869,9 @@ dependencies = [ [[package]] name = "phf_generator" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100" dependencies = [ "fastrand", "phf_shared", @@ -2645,9 +2879,9 @@ dependencies = [ [[package]] name = "phf_macros" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" dependencies = [ "phf_generator", "phf_shared", @@ -2658,9 +2892,9 @@ dependencies = [ [[package]] name = "phf_shared" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" dependencies = [ "siphasher", ] @@ -2777,6 +3011,27 @@ dependencies = [ "portable-atomic", ] +[[package]] +name = "postcard" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" +dependencies = [ + "cobs", + "serde", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "serde_core", + "writeable", + "zerovec", +] + [[package]] name = "presser" version = "0.3.1" @@ -2801,18 +3056,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "proc-macro2-diagnostics" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", - "version_check", -] - [[package]] name = "profiling" version = "1.0.18" @@ -3206,6 +3449,12 @@ version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + [[package]] name = "serde" version = "1.0.229" @@ -3365,8 +3614,8 @@ 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", + "calloop", + "calloop-wayland-source", "cursor-icon", "libc", "log", @@ -3383,44 +3632,6 @@ dependencies = [ "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.5", - "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" @@ -3449,6 +3660,12 @@ 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" @@ -3483,13 +3700,27 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + [[package]] name = "sys-locale" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" dependencies = [ + "js-sys", "libc", + "wasm-bindgen", + "web-sys", ] [[package]] @@ -3686,7 +3917,6 @@ dependencies = [ "eframe", "egui", "egui-phosphor", - "egui_dock", "image", "js-sys", "log", @@ -3771,6 +4001,17 @@ dependencies = [ "zune-jpeg", ] +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "serde_core", + "zerovec", +] + [[package]] name = "tobj" version = "4.0.5" @@ -3885,7 +4126,6 @@ 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", @@ -3911,6 +4151,17 @@ dependencies = [ "once_cell", ] +[[package]] +name = "tree_magic_mini" +version = "3.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8765b90061cba6c22b5831f675da109ae5561588290f9fa2317adab2714d5a6" +dependencies = [ + "memchr", + "nom", + "petgraph", +] + [[package]] name = "type-map" version = "0.5.1" @@ -3937,6 +4188,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + [[package]] name = "unicode-general-category" version = "1.1.0" @@ -3949,6 +4206,12 @@ version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" +[[package]] +name = "unicode-properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "993ad287eb20e8ba755312801cfe1413e0f25d604075863acaddca10b04c1833" + [[package]] name = "unicode-segmentation" version = "1.13.3" @@ -3967,6 +4230,30 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" +[[package]] +name = "utf16_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c7de35d9d8757dbc1f5125dc8b51438c68b4430546a735c3a9b91aaaaf9a18a" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf8_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + [[package]] name = "uuid" version = "1.28.0" @@ -3981,9 +4268,9 @@ dependencies = [ [[package]] name = "vello_common" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2e9aed918117e8152c9eddfd8362d73c465c23f26c44786aa331707b8a64fa2" +checksum = "bbb2141a2bca6e6d598e471fd4d1d7eed8e020aad6a28187edda07f091a325dd" dependencies = [ "bytemuck", "fearless_simd", @@ -3996,9 +4283,9 @@ dependencies = [ [[package]] name = "vello_cpu" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac7349e1f55f6b801c7c277958df4ea53e7f20f21e8014910ad888b2ecda93ea" +checksum = "ace506ca414548966fcf3c283be94eb1cad8254de488791ee698bf438b0890a9" dependencies = [ "bytemuck", "glifo", @@ -4153,32 +4440,6 @@ dependencies = [ "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" @@ -4529,6 +4790,17 @@ dependencies = [ "windows-link", ] +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + [[package]] name = "windows-result" version = "0.4.1" @@ -4724,8 +4996,7 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "winit" version = "0.30.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +source = "git+https://github.com/storytold/winit.git?rev=a517b3846ee8457d84ee4975110bfda6797c44dc#a517b3846ee8457d84ee4975110bfda6797c44dc" dependencies = [ "ahash", "android-activity", @@ -4733,7 +5004,7 @@ dependencies = [ "bitflags 2.13.2", "block2 0.5.1", "bytemuck", - "calloop 0.13.0", + "calloop", "cfg_aliases", "concurrent-queue", "core-foundation", @@ -4754,7 +5025,7 @@ dependencies = [ "raw-window-handle", "redox_syscall 0.4.1", "rustix 0.38.44", - "smithay-client-toolkit 0.19.2", + "smithay-client-toolkit", "smol_str", "tracing", "unicode-segmentation", @@ -4807,6 +5078,39 @@ version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" +[[package]] +name = "wl-clipboard-rs" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "959c7ac3b8afde864f7a7448ac16f29b2b83350b7eccbf77fb781c3999aa6848" +dependencies = [ + "libc", + "log", + "os_pipe", + "rustix 1.1.5", + "thiserror 2.0.21", + "tree_magic_mini", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" +dependencies = [ + "either", +] + [[package]] name = "x11-dl" version = "2.21.0" @@ -4877,6 +5181,29 @@ dependencies = [ "serde_json", ] +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + [[package]] name = "zbus" version = "5.19.0" @@ -5003,6 +5330,64 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "litemap", + "serde_core", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "serde", + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + [[package]] name = "zip" version = "2.4.2" diff --git a/Cargo.toml b/Cargo.toml index 83dfc3fc..826e8ae7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] resolver = "3" members = ["crates/core", "crates/texel", "crates/geom", "crates/compose", "crates/bake", "crates/formats", "crates/paint", "crates/engine", "crates/render", "crates/automation", "crates/ui-egui", "apps/texturecraft", "apps/texturecraft-cli", "apps/texturecraft-web", "xtask"] +exclude = ["vendor"] default-members = ["crates/core", "crates/texel", "crates/geom", "crates/compose", "crates/bake", "crates/formats", "crates/paint", "crates/engine", "crates/render", "crates/automation", "crates/ui-egui", "apps/texturecraft", "apps/texturecraft-cli", "xtask"] [workspace.package] @@ -35,8 +36,8 @@ log = "0.4" image = { version = "0.25", default-features = false, features = ["png", "jpeg", "tga", "tiff", "exr", "hdr", "bmp", "webp"] } half = "2" exr = { version = "1.73", default-features = false } -eframe = { version = "0.36", default-features = false } -egui = "0.36" +eframe = { version = "0.37", default-features = false } +egui = "0.37" wgpu = "30" rfd = "0.17" zip = { version = "2", default-features = false, features = ["deflate"] } @@ -53,9 +54,24 @@ schemars = "1" base64 = "0.22" cap-std = "4" getrandom = "0.3" -# Shared Craft egui components (widget palette, icon buttons): storytold/craft-libs, MIT OR -# Apache-2.0, pinned to the rev VectorCraft uses. -craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "5c874d51eeb3de70e735c8ce87a59a7dedd47675" } +# Shared Craft egui components (widget palette, icon buttons, panel docking): storytold/craft-libs, +# MIT OR Apache-2.0, pinned to one rev. +craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "f8f8829cc7be65d466d687dae381d1ca60e31242", features = ["serde"] } + +# egui 0.37 and winit: the suite's forks (storytold/egui, storytold/winit), as craft-libs pins them. +[patch.crates-io] +ecolor = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +emath = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +epaint = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +egui = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +egui-winit = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +egui_glow = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +eframe = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } +# egui-phosphor has no release for egui 0.37 (vendor/egui-phosphor/VENDORED.md). +egui-phosphor = { path = "vendor/egui-phosphor" } [workspace.lints.rust] unsafe_code = "forbid" diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index ccd45a4e..735139ce 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -15,8 +15,6 @@ eframe = { workspace = true, features = ["default_fonts", "wgpu", "persistence"] egui = { workspace = true } craft-ui = { workspace = true } egui-phosphor = { version = "0.14", features = ["regular", "fill"] } -# Dockable, tabbed, floating panels (MIT). -egui_dock = { version = "0.21", features = ["serde"] } serde = { workspace = true } serde_json = { workspace = true } rayon = { workspace = true } @@ -29,6 +27,8 @@ zip = { workspace = true } # The OS UI language for the first run (MIT OR Apache-2.0; the browser asks `navigator.language`). [target.'cfg(not(target_arch = "wasm32"))'.dependencies] sys-locale = "0.3" +# Floating panels open as OS windows. +craft-ui = { workspace = true, features = ["native-windows"] } # Browser file I/O (web_files.rs): async pickers and Blob downloads. [target.'cfg(target_arch = "wasm32")'.dependencies] @@ -36,3 +36,7 @@ wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3" web-sys = { version = "0.3", features = ["Window", "Document", "HtmlElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "CssStyleDeclaration", "Navigator"] } + +# winit needs a window system on Linux, so the crate's own tests build with X11. +[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] +eframe = { workspace = true, features = ["x11"] } diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index 57da4d84..83ab93a6 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -41,27 +41,21 @@ fn err(e: impl std::fmt::Display) -> Value { } pub fn poll(app: &mut TextureCraftApp, ctx: &egui::Context) { - // Finished window screenshots. - let shots: Vec> = - ctx.input(|i| i.raw.events.iter().filter_map(|e| if let egui::Event::Screenshot { image, .. } = e { Some(image.clone()) } else { None }).collect()); - for img in shots { - let reply = encode_png(img.size[0] as u32, img.size[1] as u32, img.pixels.iter().flat_map(|c| c.to_array()).collect()) - .map(|(w, h, png)| ok(json!({ "width": w, "height": h, "png": base64::engine::general_purpose::STANDARD.encode(png) }))) - .unwrap_or_else(|| err("could not encode the screenshot")); - for w in app.screenshot_waiters.drain(..) { - let _ = w.send(reply.clone()); - } - } - if !app.screenshot_waiters.is_empty() { - ctx.request_repaint(); - } let Some(rx) = app.control.as_ref() else { return }; let reqs: Vec = rx.try_iter().collect(); for r in reqs { if r.method == "ui.screenshot" { // Replies when the next frame has been captured. - app.screenshot_waiters.push(r.reply); - ctx.send_viewport_cmd(egui::ViewportCommand::Screenshot(egui::UserData::default())); + let reply = r.reply; + let repaint = ctx.clone(); + let callback = egui::ScreenshotCallback::new(move |img| { + let answer = encode_png(img.size[0] as u32, img.size[1] as u32, img.pixels.iter().flat_map(|c| c.to_array()).collect()) + .map(|(w, h, png)| ok(json!({ "width": w, "height": h, "png": base64::engine::general_purpose::STANDARD.encode(png) }))) + .unwrap_or_else(|| err("could not encode the screenshot")); + let _ = reply.send(answer); + repaint.request_repaint(); + }); + ctx.send_viewport_cmd(egui::ViewportCommand::Screenshot(callback)); ctx.request_repaint(); continue; } diff --git a/crates/ui-egui/src/dock.rs b/crates/ui-egui/src/dock.rs index 08f4e79b..16205b9e 100644 --- a/crates/ui-egui/src/dock.rs +++ b/crates/ui-egui/src/dock.rs @@ -63,7 +63,7 @@ pub(crate) fn texture_set_list(app: &mut TextureCraftApp, ui: &mut Ui) { p.rect_stroke(rect, 2.0, Stroke::new(1.0, tk.accent), egui::StrokeKind::Inside); } let eye = Rect::from_min_size(rect.min + vec2(4.0, 3.0), vec2(16.0, 16.0)); - let eye_resp = ui.interact(eye, ui.id().with(("ts_eye", i)), Sense::click()).on_hover_text(tr("Show or hide the texture set")); + let eye_resp = ui.interact(eye, ui.scope_id().with(("ts_eye", i)), Sense::click()).on_hover_text(tr("Show or hide the texture set")); p.text(eye.center(), egui::Align2::CENTER_CENTER, if visible { ic::EYE } else { ic::EYE_SLASH }, egui::FontId::proportional(13.0), tk.text); // Narrow panels drop the shader label, then the resolution, before cutting the name. let cy = rect.center().y; @@ -273,7 +273,7 @@ fn layer_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, depth: usize let x0 = rect.left() + 6.0 + depth as f32 * 14.0; // Eye. let eye = Rect::from_center_size(pos2(x0 + 8.0, rect.center().y), vec2(18.0, 18.0)); - let eye_resp = ui.interact(eye, ui.id().with(("eye", layer.id.0)), Sense::click()).on_hover_text(tr("Show or hide the layer")); + let eye_resp = ui.interact(eye, ui.scope_id().with(("eye", layer.id.0)), Sense::click()).on_hover_text(tr("Show or hide the layer")); p.text( eye.center(), egui::Align2::CENTER_CENTER, @@ -288,7 +288,7 @@ fn layer_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, depth: usize let mut x = x0 + 20.0; if let LayerKind::Group { collapsed, .. } = layer.kind { let caret = Rect::from_center_size(pos2(x + 6.0, rect.center().y), vec2(14.0, 14.0)); - let cr = ui.interact(caret, ui.id().with(("caret", layer.id.0)), Sense::click()).on_hover_text(tr("Expand or collapse the folder")); + let cr = ui.interact(caret, ui.scope_id().with(("caret", layer.id.0)), Sense::click()).on_hover_text(tr("Expand or collapse the folder")); p.text( caret.center(), egui::Align2::CENTER_CENTER, @@ -357,7 +357,7 @@ fn layer_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, depth: usize p.line_segment([mask_rect.left_top(), mask_rect.right_bottom()], Stroke::new(1.5, tk.danger)); } let mr = ui - .interact(mask_rect, ui.id().with(("mask", layer.id.0)), Sense::click()) + .interact(mask_rect, ui.scope_id().with(("mask", layer.id.0)), Sense::click()) .on_hover_text(tr("Select the mask (Alt+click: show it in the viewport)")); if mr.clicked() { app.run("layer.select", json!({"layer": layer.id.0, "target": "mask"})); @@ -401,7 +401,7 @@ fn layer_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, depth: usize let blend_rect = Rect::from_min_size(pos2(rect.right() - right_w - 2.0, rect.top() + 3.0), vec2(right_w, 16.0)); let op_rect = Rect::from_min_size(pos2(rect.right() - right_w - 2.0, rect.top() + 19.0), vec2(right_w, 16.0)); if let Some(b) = blend { - let br = ui.interact(blend_rect, ui.id().with(("blend", layer.id.0)), Sense::click()).on_hover_text(tr("Blending mode of the displayed channel")); + let br = ui.interact(blend_rect, ui.scope_id().with(("blend", layer.id.0)), Sense::click()).on_hover_text(tr("Blending mode of the displayed channel")); p.text(blend_rect.right_center() - vec2(10.0, 0.0), egui::Align2::RIGHT_CENTER, b.mode.short(), egui::FontId::proportional(11.0), tk.text); p.text(blend_rect.right_center(), egui::Align2::RIGHT_CENTER, ic::CARET_DOWN, egui::FontId::proportional(8.0), tk.text_dim); egui::Popup::menu(&br).show(|ui| { @@ -504,7 +504,7 @@ fn effect_row(app: &mut TextureCraftApp, ui: &mut Ui, layer: &Layer, eid: LayerI } let x0 = rect.left() + 6.0 + depth as f32 * 14.0; let eye = Rect::from_center_size(pos2(x0 + 8.0, rect.center().y), vec2(16.0, 16.0)); - let er = ui.interact(eye, ui.id().with(("eff_eye", eid.0)), Sense::click()).on_hover_text(tr("Enable or disable the effect")); + let er = ui.interact(eye, ui.scope_id().with(("eff_eye", eid.0)), Sense::click()).on_hover_text(tr("Enable or disable the effect")); p.text(eye.center(), egui::Align2::CENTER_CENTER, if visible { ic::EYE } else { ic::EYE_SLASH }, egui::FontId::proportional(12.0), tk.text_dim); p.text(pos2(x0 + 22.0, rect.center().y), egui::Align2::LEFT_CENTER, glyph, egui::FontId::proportional(11.0), tk.text_dim); p.text(pos2(x0 + 38.0, rect.center().y), egui::Align2::LEFT_CENTER, name, egui::FontId::proportional(11.5), tk.text); diff --git a/crates/ui-egui/src/docking.rs b/crates/ui-egui/src/docking.rs index 8b0774b4..256cbc4c 100644 --- a/crates/ui-egui/src/docking.rs +++ b/crates/ui-egui/src/docking.rs @@ -1,15 +1,23 @@ //! The dock host: every side panel (assets, texture set list, layers, texture set settings, //! properties, display/shader settings, history, log) is a tab that can be docked, tabbed, -//! resized, floated and closed around the viewport (`egui_dock`). The panel bodies live in -//! `dock.rs`, `shelf.rs` and `windows.rs`; this module only hosts them. +//! resized, floated and closed around the viewport. craft-ui's shared docking +//! (`craft_ui::docking`) draws the frames, tab strips, floating windows and drop previews and +//! owns the gestures; this module names the panels, builds the default arrangement, applies +//! the dock's changes and hosts the panel bodies. The bodies live in `dock.rs`, `shelf.rs` and +//! `windows.rs`. //! -//! The layout persists with `UiState` as a small validated tree (`Layout`), not as the dock -//! crate's internal arrays, so a hand-edited or stale layout can never break the dock. +//! The viewport is the central canvas: it stays docked, never takes tabs and is the only panel +//! that cannot close or float. The layout persists with `UiState` as a craft-ui `Workspace`; +//! a layout that does not load or validate becomes the default, and a layout saved before the +//! shared docking (`{main, windows, closed}`) is converted. -use egui::{CornerRadius, Id, Margin, Rect, RichText, Stroke, Ui, WidgetText, pos2, vec2}; -use egui_dock::tab_viewer::OnCloseResponse; -use egui_dock::{DockArea, DockState, LeafNode, NodeIndex, Split, Style, TabIndex, TabPath, TabStyle, TabViewer, Tree}; +use std::collections::HashSet; + +use craft_ui::docking::{Action, DockArea, DockContent, DockStyle, Floating, Layout, Location, Node, PanelLimits, PanelState, Permissions, Placement, Zone}; +use craft_ui::layout::{SplitAxis, SplitSize}; +use egui::{Id, Margin, RichText, Ui, vec2}; use serde::{Deserialize, Serialize}; +use serde_json::Value; use crate::TextureCraftApp; use crate::i18n::tr; @@ -27,9 +35,6 @@ pub enum Panel { Shader, History, Log, - /// A panel from a newer layout file; dropped on load. - #[serde(other)] - Unknown, } /// Window ▸ Views items and the panels they show or hide. @@ -50,19 +55,19 @@ pub fn view_panel(id: &str) -> Option { VIEWS.iter().find(|(v, _)| *v == id).map(|(_, p)| *p) } -/// Where a closed panel comes back. -enum Home { - /// Left of the viewport. - Left, - /// The right column, top (0) to bottom (2). - Column(u8), - /// A floating window, cascaded by index. - Float(u8), - Fixed, -} - impl Panel { - const COUNT: usize = Panel::Unknown as usize + 1; + pub const ALL: [Panel; 10] = [ + Panel::Viewport, + Panel::Assets, + Panel::TextureSetList, + Panel::Layers, + Panel::TextureSetSettings, + Panel::Properties, + Panel::Display, + Panel::Shader, + Panel::History, + Panel::Log, + ]; pub fn name(self) -> &'static str { match self { @@ -76,738 +81,645 @@ impl Panel { Panel::Shader => "Shader Settings", Panel::History => "History", Panel::Log => "Log", - Panel::Unknown => "", } } - fn home(self) -> Home { - match self { - Panel::Assets => Home::Left, - Panel::TextureSetList => Home::Column(0), - Panel::Layers | Panel::TextureSetSettings => Home::Column(1), - Panel::Properties => Home::Column(2), - Panel::Display => Home::Float(0), - Panel::Shader => Home::Float(1), - Panel::History => Home::Float(2), - Panel::Log => Home::Float(3), - Panel::Viewport | Panel::Unknown => Home::Fixed, - } + /// The panel named `name` in a saved layout. + fn parse(name: &str) -> Option { + serde_json::from_value(Value::String(name.to_owned())).ok() + } + + /// Where the panel floats when it has never been laid out: `[x, y, width, height]`, cascaded. + fn float_rect(self) -> Option<[f32; 4]> { + let slot = match self { + Panel::Display => 0.0, + Panel::Shader => 1.0, + Panel::History => 2.0, + Panel::Log => 3.0, + _ => return None, + }; + Some([960.0, 90.0 + 50.0 * slot, 300.0, 380.0]) } } -// --------------------------------------------------------------------------------------------- -// Persisted layout +/// The saved panel arrangement: craft-ui's workspace over TextureCraft's panels. +pub type Workspace = craft_ui::docking::Workspace; -/// A dock tree: a group of tabs, or two subtrees side by side (`vertical`: one above the other). -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +/// The viewport never moves, floats, closes or takes tabs; panels dock beside it. +pub fn permissions(panel: &Panel) -> Permissions { + if *panel == Panel::Viewport { Permissions { accepts_splits: true, ..Permissions::PROTECTED } } else { Permissions::default() } +} + +fn tabs(panels: &[Panel]) -> Node { + Node::Tabs { panels: panels.to_vec(), active: 0 } +} + +fn split(axis: SplitAxis, ratio: f32, first: Node, second: Node) -> Node { + Node::Split { axis, size: SplitSize::Ratio(ratio), first: Box::new(first), second: Box::new(second) } +} + +/// The default: assets left of the viewport; texture set list, layers (tabbed with the texture +/// set settings) and properties down the right. Ratios match the 1600x960 window. Display, +/// shader, history and log are closed and open as floating windows. +pub fn default_workspace() -> Workspace { + use Panel::*; + let column = + split(SplitAxis::Vertical, 0.125, tabs(&[TextureSetList]), split(SplitAxis::Vertical, 0.57, tabs(&[Layers, TextureSetSettings]), tabs(&[Properties]))); + let root = split(SplitAxis::Horizontal, 0.115, tabs(&[Assets]), split(SplitAxis::Horizontal, 0.78, tabs(&[Viewport]), column)); + let mut workspace = Workspace::new(Layout { root: Some(root), floating: Vec::new() }); + for panel in Panel::ALL { + if let Some(rect) = panel.float_rect() { + let location = Location { + floating: Some(rect), + anchor: None, + placement: Placement::Tab { before: None }, + size: None, + stack: None, + sibling: Vec::new(), + group: None, + }; + workspace.hidden.push((panel, location)); + } + } + workspace +} + +/// craft-ui's checks plus the viewport's: a saved or hand-edited file cannot hide, float, group +/// or collapse it. +pub fn validate(workspace: &Workspace) -> Result<(), String> { + workspace.validate().map_err(|error| error.to_string())?; + let layout = &workspace.layout; + if layout.floating.iter().any(|window| window.contains(&Panel::Viewport)) { + return Err("The viewport cannot float".into()); + } + if workspace.hidden.iter().any(|(panel, _)| *panel == Panel::Viewport) { + return Err("The viewport cannot be hidden".into()); + } + let mut found = false; + let mut nodes: Vec<&Node> = layout.root.iter().collect(); + while let Some(node) = nodes.pop() { + match node { + Node::Split { first, second, .. } => { + nodes.push(first); + nodes.push(second); + } + Node::Tabs { panels, .. } if panels.contains(&Panel::Viewport) => { + if panels.len() != 1 { + return Err("The viewport cannot share a tab group".into()); + } + found = true; + } + Node::Stack { entries } if entries.iter().any(|entry| entry.panel == Panel::Viewport) => { + return Err("The viewport cannot be collapsed".into()); + } + Node::Dock { columns, .. } if columns.iter().flat_map(|column| &column.groups).any(|group| group.panels.contains(&Panel::Viewport)) => { + return Err("The viewport cannot be in a dock".into()); + } + _ => {} + } + } + if found { Ok(()) } else { Err("The panel layout must contain the viewport".into()) } +} + +// --------------------------------------------------------------------------------------------- +// Layouts saved before the shared docking + +/// `{main, windows, closed}`: a tree of tab groups and splits, floating windows and where each +/// closed panel was. Panels are names, so a panel from a newer file is dropped, not an error. +#[derive(Deserialize)] +struct OldLayout { + main: OldNode, + #[serde(default)] + windows: Vec, + #[serde(default)] + closed: Vec<(String, OldPlace)>, +} + +#[derive(Deserialize)] #[serde(rename_all = "camelCase")] -pub enum Node { +enum OldNode { Tabs { - tabs: Vec, + tabs: Vec, #[serde(default)] active: usize, }, Split { vertical: bool, - /// Share of the first (left or top) subtree, 0..1. fraction: f32, - first: Box, - second: Box, + first: Box, + second: Box, }, } -/// A floating window: screen rect `[x, y, width, height]` and its tree. -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Floating { +#[derive(Deserialize)] +struct OldWindow { #[serde(default)] - pub rect: Option<[f32; 4]>, - pub root: Node, + rect: Option<[f32; 4]>, + root: OldNode, } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Layout { - pub main: Node, - #[serde(default)] - pub windows: Vec, - /// Where each closed panel was, so reopening it puts it back. - #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub closed: Vec<(Panel, Place)>, -} - -/// Where a panel was when it was closed. Reopening tries, in order: the tab group of a former -/// neighbour, a split beside the panels it was split off from, its floating window; then its -/// default home. -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Deserialize)] #[serde(default)] -pub struct Place { - /// The panels it shared a tab group with. - pub with: Vec, - /// Its tab position in that group. - pub index: usize, - /// Alone in its group: the panels on the other side of its split. - pub beside: Vec, - /// The split was vertical (one above the other). - pub vertical: bool, - /// It was the left (or top) side. - pub first: bool, - /// The share of the split's left (or top) side. - pub fraction: f32, - /// The floating window it was in: `[x, y, width, height]`. - pub window: Option<[f32; 4]>, +struct OldPlace { + with: Vec, + index: usize, + beside: Vec, + vertical: bool, + first: bool, + fraction: f32, + window: Option<[f32; 4]>, } -impl Default for Place { +impl Default for OldPlace { fn default() -> Self { - Place { with: Vec::new(), index: 0, beside: Vec::new(), vertical: false, first: false, fraction: 0.5, window: None } + OldPlace { with: Vec::new(), index: 0, beside: Vec::new(), vertical: false, first: false, fraction: 0.5, window: None } } } -fn tabs(tabs: &[Panel]) -> Node { - Node::Tabs { tabs: tabs.to_vec(), active: 0 } +fn ratio(fraction: f32) -> f32 { + if fraction.is_finite() { fraction.clamp(0.05, 0.95) } else { 0.5 } } -fn split(vertical: bool, fraction: f32, first: Node, second: Node) -> Node { - Node::Split { vertical, fraction, first: Box::new(first), second: Box::new(second) } +fn rect_ok(rect: [f32; 4]) -> Option<[f32; 4]> { + (rect.iter().all(|v| v.is_finite()) && rect[2] > 0.0 && rect[3] > 0.0).then_some(rect) } -impl Default for Layout { - /// The default: assets left of the viewport; texture set list, layers (tabbed with the - /// texture set settings) and properties down the right. Fractions match the 1600x960 window. - fn default() -> Self { - use Panel::*; - let column = split(true, 0.125, tabs(&[TextureSetList]), split(true, 0.57, tabs(&[Layers, TextureSetSettings]), tabs(&[Properties]))); - Layout { main: split(false, 0.115, tabs(&[Assets]), split(false, 0.78, tabs(&[Viewport]), column)), windows: Vec::new(), closed: Vec::new() } - } -} - -/// Deeper trees are flattened into one tab group (the dock's node array doubles per level). -const MAX_DEPTH: usize = 8; - -impl Node { - fn collect(self, out: &mut Vec) { +impl OldNode { + /// The shared node: unknown and repeated panels (and the viewport outside the main area), + /// empty groups and one-sided splits dropped, ratios clamped. A viewport that shared a group + /// moves to a frame of its own beside it. + fn convert(self, seen: &mut HashSet, main: bool) -> Option> { match self { - Node::Tabs { tabs, .. } => out.extend(tabs), - Node::Split { first, second, .. } => { - first.collect(out); - second.collect(out); + OldNode::Tabs { tabs: names, active } => { + let mut panels = Vec::new(); + let mut front = None; + for (i, name) in names.iter().enumerate() { + let Some(panel) = Panel::parse(name) else { continue }; + if (panel == Panel::Viewport && !main) || !seen.insert(panel) { + continue; + } + if i == active { + front = Some(panels.len()); + } + panels.push(panel); + } + let last = panels.len().checked_sub(1)?; + let active = front.unwrap_or(0).min(last); + match panels.iter().position(|p| *p == Panel::Viewport) { + Some(at) if panels.len() > 1 => { + panels.remove(at); + let active = active.min(panels.len() - 1); + Some(split(SplitAxis::Horizontal, 0.78, tabs(&[Panel::Viewport]), Node::Tabs { panels, active })) + } + _ => Some(Node::Tabs { panels, active }), + } } - } - } - - /// Drop unknown and repeated panels (and the viewport outside the main area), empty groups - /// and one-sided splits; clamp fractions; flatten too-deep trees. - fn sanitize(self, seen: &mut [bool; Panel::COUNT], depth: usize, main: bool) -> Option { - match self { - Node::Split { .. } if depth >= MAX_DEPTH => { - let mut all = Vec::new(); - self.collect(&mut all); - Node::Tabs { tabs: all, active: 0 }.sanitize(seen, depth, main) - } - Node::Tabs { tabs, active } => { - let tabs: Vec = tabs - .into_iter() - .filter(|p| *p != Panel::Unknown && (main || *p != Panel::Viewport) && !std::mem::replace(&mut seen[*p as usize], true)) - .collect(); - let last = tabs.len().checked_sub(1)?; - Some(Node::Tabs { tabs, active: active.min(last) }) - } - Node::Split { vertical, fraction, first, second } => { - let first = first.sanitize(seen, depth + 1, main); - let second = second.sanitize(seen, depth + 1, main); + OldNode::Split { vertical, fraction, first, second } => { + let first = first.convert(seen, main); + let second = second.convert(seen, main); match (first, second) { - (Some(a), Some(b)) => Some(split(vertical, if fraction.is_finite() { fraction.clamp(0.05, 0.95) } else { 0.5 }, a, b)), + (Some(a), Some(b)) => Some(split(if vertical { SplitAxis::Vertical } else { SplitAxis::Horizontal }, ratio(fraction), a, b)), (a, b) => a.or(b), } } } } - - /// Write this (sanitized) tree into `tree` at `at`, which must hold a leaf. - fn place(self, tree: &mut Tree, at: NodeIndex) { - match self { - Node::Tabs { tabs, active } => { - let mut leaf = LeafNode::new(tabs); - leaf.active = TabIndex(active); - tree[at] = egui_dock::Node::Leaf(leaf); - } - Node::Split { vertical, fraction, first, second } => { - // The placeholder tab is overwritten by `second`. - let [a, b] = tree.split(at, if vertical { Split::Below } else { Split::Right }, fraction, egui_dock::Node::leaf(Panel::Unknown)); - first.place(tree, a); - second.place(tree, b); - } - } - } - - fn read(nodes: &[&egui_dock::Node], i: usize) -> Option { - let (vertical, s) = match nodes.get(i)? { - egui_dock::Node::Empty => return None, - egui_dock::Node::Leaf(l) => return (!l.tabs.is_empty()).then(|| Node::Tabs { tabs: l.tabs.clone(), active: l.active.0 }), - egui_dock::Node::Vertical(s) => (true, s), - egui_dock::Node::Horizontal(s) => (false, s), - }; - let first = Node::read(nodes, i.saturating_mul(2).saturating_add(1)); - let second = Node::read(nodes, i.saturating_mul(2).saturating_add(2)); - match (first, second) { - (Some(a), Some(b)) => Some(split(vertical, if s.fraction.is_finite() { s.fraction } else { 0.5 }, a, b)), - (a, b) => a.or(b), - } - } - - fn of(tree: &Tree) -> Option { - Node::read(&tree.iter().collect::>(), 0) - } } -impl Layout { - /// The live dock for this layout, or `None` when it has no viewport. - fn build(self) -> Option> { - let mut seen = [false; Panel::COUNT]; - let main = self.main.sanitize(&mut seen, 0, true)?; - if !seen[Panel::Viewport as usize] { +impl OldPlace { + /// Where the closed panel goes back: its tab group, a split beside the panels it was split + /// off from, or its floating window. `None` when the file said nothing usable. + fn location(self) -> Option> { + let known = |names: &[String]| names.iter().filter_map(|n| Panel::parse(n)).filter(|p| *p != Panel::Viewport).collect::>(); + let with = known(&self.with); + let beside = known(&self.beside); + let floating = self.window.and_then(rect_ok); + let mut location = + Location { floating, anchor: None, placement: Placement::Tab { before: None }, size: None, stack: None, sibling: Vec::new(), group: None }; + if let Some(anchor) = with.first() { + location.anchor = Some(*anchor); + location.placement = Placement::Tab { before: with.get(self.index).copied() }; + } else if let Some(anchor) = beside.first() { + let zone = match (self.vertical, self.first) { + (false, true) => Zone::Left, + (false, false) => Zone::Right, + (true, true) => Zone::Top, + (true, false) => Zone::Bottom, + }; + location.anchor = Some(*anchor); + location.placement = Placement::Split(zone); + location.size = Some(SplitSize::Ratio(ratio(self.fraction))); + location.sibling = beside; + } else if floating.is_none() { return None; } - let mut state = DockState::new(Vec::new()); - main.place(state.main_surface_mut(), NodeIndex::root()); - for w in self.windows { - let Some(root) = w.root.sanitize(&mut seen, 0, false) else { continue }; - let s = state.add_window(vec![Panel::Unknown]); - if let Some(tree) = state.get_surface_mut(s).and_then(|x| x.node_tree_mut()) { - root.place(tree, NodeIndex::root()); - } - if let (Some(rect), Some(ws)) = (w.rect, state.get_window_state_mut(s)) { - place_window(ws, rect); - } - } - Some(state) + Some(location) } +} - fn of(state: &DockState) -> Layout { - let Some(main) = Node::of(state.main_surface()) else { return Layout::default() }; - let windows = state - .iter_surfaces() - .filter_map(|s| match s { - egui_dock::Surface::Window(tree, ws) => { - let r = ws.rect(); - let rect = (r.is_finite() && r.is_positive()).then(|| [r.min.x, r.min.y, r.width(), r.height()]); - Node::of(tree).map(|root| Floating { rect, root }) - } - _ => None, +impl OldLayout { + fn convert(self) -> Workspace { + let mut seen = HashSet::new(); + let root = self.main.convert(&mut seen, true); + let floating = self + .windows + .into_iter() + .filter_map(|window| { + let root = window.root.convert(&mut seen, false)?; + Some(Floating::new(root, window.rect.and_then(rect_ok).unwrap_or([960.0, 90.0, 300.0, 380.0]))) }) .collect(); - Layout { main, windows, closed: Vec::new() } - } -} - -/// Move a floating window to `[x, y, width, height]` (ignored unless finite and non-empty). -fn place_window(ws: &mut egui_dock::WindowState, [x, y, width, height]: [f32; 4]) { - if [x, y, width, height].iter().all(|v| v.is_finite()) && width > 0.0 && height > 0.0 { - ws.set_position(pos2(x, y)).set_size(vec2(width, height)); - } -} - -/// The panels in the subtree at `at`. -fn panels_under(nodes: &[&egui_dock::Node], at: usize, out: &mut Vec) { - match nodes.get(at) { - Some(egui_dock::Node::Leaf(l)) => out.extend(l.tabs.iter().copied()), - Some(egui_dock::Node::Vertical(_) | egui_dock::Node::Horizontal(_)) => { - panels_under(nodes, at.saturating_mul(2).saturating_add(1), out); - panels_under(nodes, at.saturating_mul(2).saturating_add(2), out); + let mut workspace = Workspace::new(Layout { root, floating }); + let mut hidden: Vec<(Panel, Location)> = Vec::new(); + for (name, place) in self.closed { + let Some(panel) = Panel::parse(&name) else { continue }; + if panel == Panel::Viewport || seen.contains(&panel) || hidden.iter().any(|(p, _)| *p == panel) { + continue; + } + if let Some(location) = place.location() { + hidden.push((panel, location)); + } } - _ => {} - } -} - -/// Where the tab at `path` is, for [`restore`]. -fn place_of(state: &DockState, path: TabPath) -> Place { - let mut place = Place { index: path.tab.0, ..Place::default() }; - let Some(surface) = state.get_surface(path.surface) else { return place }; - if let egui_dock::Surface::Window(_, ws) = surface { - let r = ws.rect(); - place.window = (r.is_finite() && r.is_positive()).then(|| [r.min.x, r.min.y, r.width(), r.height()]); - } - let Some(tree) = surface.node_tree() else { return place }; - let nodes: Vec<&egui_dock::Node> = tree.iter().collect(); - if let Some(egui_dock::Node::Leaf(leaf)) = nodes.get(path.node.0) { - place.with = leaf.tabs.iter().enumerate().filter(|(i, _)| *i != path.tab.0).map(|(_, t)| *t).collect(); - } - if place.with.is_empty() - && let Some(parent) = path.node.parent() - { - let sibling = if path.node.is_left() { parent.right() } else { parent.left() }; - panels_under(&nodes, sibling.0, &mut place.beside); - place.first = path.node.is_left(); - if let Some(egui_dock::Node::Vertical(s) | egui_dock::Node::Horizontal(s)) = nodes.get(parent.0) { - place.vertical = matches!(nodes.get(parent.0), Some(egui_dock::Node::Vertical(_))); - place.fraction = s.fraction; + // A panel the file neither shows nor lists was closed: it stays closed and reopens at its + // default place. + let default = default_workspace(); + for panel in Panel::ALL { + let listed = seen.contains(&panel) || hidden.iter().any(|(p, _)| *p == panel); + if panel != Panel::Viewport && !listed { + let location = default.layout.location(&panel).ok().or_else(|| default.hidden.iter().find(|(p, _)| *p == panel).map(|(_, l)| l.clone())); + hidden.extend(location.map(|l| (panel, l))); + } } + workspace.hidden = hidden; + workspace } - place -} - -/// The lowest node holding both `a` and `b` (heap-ordered node indices). -fn common_ancestor(mut a: NodeIndex, mut b: NodeIndex) -> NodeIndex { - while a != b { - let next = if a.0 > b.0 { a.parent() } else { b.parent() }; - let Some(next) = next else { return NodeIndex::root() }; - if a.0 > b.0 { a = next } else { b = next } - } - a -} - -/// Reopen `p` where `place` says it was; false when none of its references is left. -fn restore(state: &mut DockState, p: Panel, place: &Place) -> bool { - for q in &place.with { - if let Some(path) = state.find_tab(q) - && let Ok(leaf) = state.leaf_mut(path.node_path()) - { - leaf.insert_tab(TabIndex(place.index.min(leaf.tabs.len())), p); - return true; - } - } - let open: Vec = place.beside.iter().filter_map(|q| state.find_tab(q)).collect(); - if let Some(first) = open.first() { - let node = open.iter().filter(|t| t.surface == first.surface).fold(first.node, |n, t| common_ancestor(n, t.node)); - let side = match (place.vertical, place.first) { - (false, true) => Split::Left, - (false, false) => Split::Right, - (true, true) => Split::Above, - (true, false) => Split::Below, - }; - let fraction = if place.fraction.is_finite() { place.fraction.clamp(0.05, 0.95) } else { 0.5 }; - if let Some(tree) = state.get_surface_mut(first.surface).and_then(|s| s.node_tree_mut()) { - tree.split(node, side, fraction, egui_dock::Node::leaf(p)); - return true; - } - } - if let Some(rect) = place.window { - let s = state.add_window(vec![p]); - if let Some(ws) = state.get_window_state_mut(s) { - place_window(ws, rect); - } - return true; - } - false } // --------------------------------------------------------------------------------------------- // The live dock -/// The dock layout (part of `UiState`; serialized as a `Layout`). The state is empty only while -/// the dock is being drawn. +/// The dock layout (part of `UiState`; serialized as a craft-ui `Workspace`). #[derive(Clone, Debug)] pub struct Dock { - state: Option>, - /// Where each closed panel was. - closed: Vec<(Panel, Place)>, + workspace: Workspace, + /// A panel to bring in front of the other floating windows on the next frame. + raise: Option, } impl Default for Dock { fn default() -> Self { - Dock { state: Layout::default().build(), closed: Vec::new() } + Dock { workspace: default_workspace(), raise: None } } } impl PartialEq for Dock { fn eq(&self, other: &Self) -> bool { - self.layout() == other.layout() + self.workspace == other.workspace } } impl Serialize for Dock { fn serialize(&self, s: S) -> Result { - self.layout().serialize(s) + self.workspace.serialize(s) } } impl<'de> Deserialize<'de> for Dock { + /// Never fails: a layout that cannot be read or fails the viewport's rules is the default. fn deserialize>(d: D) -> Result { - let mut layout = Layout::deserialize(d)?; - let mut closed = std::mem::take(&mut layout.closed); - closed.retain(|(p, _)| !matches!(p, Panel::Viewport | Panel::Unknown)); - Ok(layout.build().map_or_else(Dock::default, |s| Dock { state: Some(s), closed })) + Ok(Dock::from_value(Value::deserialize(d)?)) } } impl Dock { - pub fn layout(&self) -> Layout { - let mut layout = self.state.as_ref().map(Layout::of).unwrap_or_default(); - layout.closed = self.closed.clone(); - layout + /// The dock for a saved layout, in the current or the earlier format. + pub fn from_value(value: Value) -> Dock { + let default = default_workspace(); + let loaded = if value.get("main").is_some() { + serde_json::from_value::(value).ok().map(OldLayout::convert) + } else { + serde_json::from_value::(value).ok() + }; + let Some(mut workspace) = loaded.filter(|w| validate(w).is_ok()) else { return Dock::default() }; + workspace.reconcile(|_| true, permissions, &default); + if validate(&workspace).is_err() { + return Dock::default(); + } + Dock { workspace, raise: None } + } + + pub fn workspace(&self) -> &Workspace { + &self.workspace } pub fn is_open(&self, p: Panel) -> bool { - self.state.as_ref().is_some_and(|s| s.find_tab(&p).is_some()) + self.workspace.layout.contains(&p) } /// Open and the front tab of its group. pub fn is_visible(&self, p: Panel) -> bool { - let Some(s) = &self.state else { return false }; - s.find_tab(&p).is_some_and(|path| s.leaf(path.node_path()).is_ok_and(|l| l.active == path.tab)) + self.workspace.layout.panel_state(&p) == PanelState::Front } - /// Hide a visible panel, otherwise bring it up (`screen` places floating windows). - pub fn toggle(&mut self, p: Panel, screen: Rect) { - if self.is_visible(p) { self.close(p) } else { self.focus(p, screen) } + /// Hide a visible panel, otherwise bring it up. + pub fn toggle(&mut self, p: Panel) { + if self.is_visible(p) { self.close(p) } else { self.focus(p) } } pub fn close(&mut self, p: Panel) { - self.close_all(&[p]); - } - - /// Close `panels` together (a floating window's tabs), remembering where each was. - pub fn close_all(&mut self, panels: &[Panel]) { - let Some(s) = &mut self.state else { return }; - let places: Vec<(Panel, Place)> = - panels.iter().filter(|p| **p != Panel::Viewport).filter_map(|p| s.find_tab(p).map(|path| (*p, place_of(s, path)))).collect(); - for (p, place) in places { - if let Some(path) = s.find_tab(&p) { - s.remove_tab(path); - } - self.closed.retain(|(q, _)| *q != p); - self.closed.push((p, place)); + if let Err(error) = self.workspace.set_visible(p, false, None, permissions) { + log::warn!("panel {p:?} was not closed: {error}"); } } /// Open `p` (where it was when closed, else where it lives by default) and bring it to the /// front. - pub fn focus(&mut self, p: Panel, screen: Rect) { - let Some(s) = &mut self.state else { return }; - if s.find_tab(&p).is_none() { - let place = self.closed.iter().position(|(q, _)| *q == p).map(|i| self.closed.remove(i).1); - if !place.is_some_and(|place| restore(s, p, &place)) { - insert(s, p, screen); + pub fn focus(&mut self, p: Panel) { + let mut next = self.workspace.clone(); + match next.set_visible(p, true, None, permissions) { + Ok(()) if validate(&next).is_ok() => { + self.workspace = next; + self.raise = Some(p); } - } - if let Some(path) = s.find_tab(&p) { - let _ = s.set_active_tab(path); - s.set_focused_node_and_surface(path.node_path()); + Ok(()) => log::warn!("panel {p:?} was not opened: it would break the viewport's rules"), + Err(error) => log::warn!("panel {p:?} was not opened: {error}"), } } -} -fn insert(state: &mut DockState, p: Panel, screen: Rect) { - match p.home() { - Home::Fixed => {} - Home::Float(k) => { - let s = state.add_window(vec![p]); - if let Some(w) = state.get_window_state_mut(s) { - w.set_position(screen.right_top() + vec2(-640.0, 90.0 + 50.0 * k as f32)).set_size(vec2(300.0, 380.0)); - } + /// One change from the dock area's gestures. A change that is rejected leaves the layout as + /// it was. + fn apply(&mut self, action: Action) { + let mut next = self.workspace.clone(); + match next.apply(action, permissions) { + Ok(_) if validate(&next).is_ok() => self.workspace = next, + Ok(_) => log::warn!("a panel move would break the viewport's rules"), + Err(error) => log::warn!("a panel move was not applied: {error}"), } - Home::Left => beside_viewport(state.main_surface_mut(), Split::Left, 0.13, p), - Home::Column(order) => { - let tree = state.main_surface_mut(); - // The right-column group nearest to the panel's slot (its own slot first). - let mut best: Option<(NodeIndex, u8)> = None; - for (i, n) in tree.iter().enumerate() { - let slot = n.get_leaf().and_then(|l| { - l.tabs.iter().find_map(|t| match t.home() { - Home::Column(o) => Some(o), - _ => None, - }) - }); - if let Some(o) = slot - && best.is_none_or(|(_, b)| o.abs_diff(order) < b.abs_diff(order)) - { - best = Some((NodeIndex(i), o)); - } - } - match best { - Some((node, o)) if o == order => { - if let Ok(leaf) = tree.leaf_mut(node) { - leaf.append_tab(p); - } - } - Some((node, o)) if o > order => { - tree.split_above(node, 0.3, vec![p]); - } - Some((node, _)) => { - tree.split_below(node, 0.6, vec![p]); - } - None => beside_viewport(tree, Split::Right, 0.78, p), - } - } - } -} - -/// Split the viewport's group; `fraction` is the left (or top) share. -fn beside_viewport(tree: &mut Tree, side: Split, fraction: f32, p: Panel) { - match tree.find_tab(&Panel::Viewport) { - Some((node, _)) => { - tree.split(node, side, fraction, egui_dock::Node::leaf(p)); - } - None => tree.push_to_first_leaf(p), } } // --------------------------------------------------------------------------------------------- // Drawing -struct Host<'a> { +fn area_id() -> Id { + Id::unique("texturecraft-docking") +} + +/// The dock look: every panel group is a card on the window's frame colour, its tab strip +/// without hard lines, the shown tab a pill, uppercase captions. +fn style(ui: &Ui, t: &Tokens) -> DockStyle { + let mut s = DockStyle::from_ui(ui); + s.gap = 6.0; + // Smallest panel extent a divider drag leaves. + s.min_pane = 60.0; + s.background = t.panel; + s.tab_background = t.panel; + s.active_background = t.button; + s.text = t.text_strong; + s.inactive_text = t.text_dim; + s.border = egui::Stroke::NONE; + s.accent = t.accent; + s.floating_background = t.panel; + s.floating_stroke = egui::Stroke::new(1.0, t.button_border); + s.font = egui::FontId::proportional(10.5); + s.min_tab_width = 54.0; + s.tab_height = 30.0; + // Panels arrange in a split tree around the viewport; floating title bars only move windows. + s.new_dock_zones = false; + s.title_bar_docks = false; + s +} + +/// Draw the dock (viewport and panels) into `ui`. +pub fn show(app: &mut TextureCraftApp, ui: &mut Ui) { + let ctx = ui.ctx().clone(); + let tk = Tokens::get(&ctx); + let style = style(ui, &tk); + let layout = app.ui.dock.workspace.layout.clone(); + let mut area = DockArea::new(area_id()).input_blocked(ctx.memory(|m| m.top_modal_layer()).is_some()); + if let Some(panel) = app.ui.dock.raise.take() { + area = area.raise_panel(panel); + } + let output = area.show_content(ui, &layout, &style, &mut Panels { app, tk }); + #[cfg(not(target_arch = "wasm32"))] + crate::menus::forwarded_shortcuts(app, &ctx, output.forwarded_events, output.forwarded_modifiers.unwrap_or_default()); + if let Some(error) = &output.error { + log::warn!("docking: {error}"); + } + // A body that changed the layout (a panel opened from its own menu) wins over this frame's + // gestures, which were made against the old one. + if app.ui.dock.workspace.layout != layout { + craft_ui::docking::cancel_drag::(&ctx, area_id()); + return; + } + for action in output.actions { + app.ui.dock.apply(action); + } +} + +/// The panels' contents, names and limits for the dock area. +struct Panels<'a> { app: &'a mut TextureCraftApp, - /// Panels closed by their tab or window button this frame (closed after drawing, so their - /// places are remembered). - closing: Vec, tk: Tokens, } -impl TabViewer for Host<'_> { - type Tab = Panel; - - fn id(&mut self, tab: &mut Panel) -> Id { - Id::new(("panel", *tab)) - } - - fn title(&mut self, tab: &mut Panel) -> WidgetText { - let text = match tab { - Panel::Properties => crate::dock::properties_title(self.app), - // Bake mode shows its settings where the shelf lives. - Panel::Assets if self.app.ui.mode == crate::state::Mode::Baking => tr("Bake Mesh Maps").to_string(), - p => tr(p.name()).to_string(), - }; - RichText::new(text.to_uppercase()).size(10.5).strong().into() - } - - fn ui(&mut self, ui: &mut Ui, tab: &mut Panel) { +impl DockContent for Panels<'_> { + fn body(&mut self, ui: &mut Ui, panel: &Panel) { let app = &mut *self.app; - match tab { - Panel::Viewport => crate::viewport::central(app, ui), + if *panel == Panel::Viewport { + ui.painter().rect_filled(ui.max_rect(), 0.0, self.tk.viewport); + crate::viewport::central(app, ui); + return; + } + egui::Frame::new().inner_margin(Margin::symmetric(8, 4)).show(ui, |ui| match panel { Panel::Assets if app.ui.mode == crate::state::Mode::Baking => crate::windows::bake_body(app, ui), Panel::Assets => crate::shelf::body(app, ui), Panel::TextureSetList => crate::dock::texture_set_list(app, ui), Panel::Layers => crate::dock::layers(app, ui), Panel::TextureSetSettings => crate::dock::texture_set_settings(app, ui), Panel::Properties => crate::dock::properties(app, ui), - Panel::Display => crate::windows::display(app, ui), - Panel::Shader => crate::windows::shader(app, ui), + // The other panels scroll their own lists. + Panel::Display => { + egui::ScrollArea::vertical().id_salt("dock-display").auto_shrink([false, false]).show(ui, |ui| crate::windows::display(app, ui)).inner + } + Panel::Shader => { + egui::ScrollArea::vertical().id_salt("dock-shader").auto_shrink([false, false]).show(ui, |ui| crate::windows::shader(app, ui)).inner + } Panel::History => crate::windows::history(app, ui), Panel::Log => crate::windows::log(app, ui), - Panel::Unknown => {} + Panel::Viewport => {} + }); + } + + fn logical_label(&self, panel: &Panel) -> String { + match panel { + Panel::Properties => crate::dock::properties_title(self.app), + // Bake mode shows its settings where the shelf lives. + Panel::Assets if self.app.ui.mode == crate::state::Mode::Baking => tr("Bake Mesh Maps").to_string(), + p => tr(p.name()).to_string(), } } - fn is_closeable(&self, tab: &Panel) -> bool { - *tab != Panel::Viewport + fn label(&mut self, _ui: &Ui, _panel: &Panel, logical: &str, font: &egui::FontId, color: egui::Color32) -> egui::WidgetText { + RichText::new(logical.to_uppercase()).font(font.clone()).strong().color(color).into() } - fn on_close(&mut self, tab: &mut Panel) -> OnCloseResponse { - self.closing.push(*tab); - OnCloseResponse::Ignore + fn permissions(&self, panel: &Panel) -> Permissions { + permissions(panel) } - fn allowed_in_windows(&self, tab: &mut Panel) -> bool { - *tab != Panel::Viewport + fn limits(&self, panel: &Panel) -> PanelLimits { + let min = if *panel == Panel::Viewport { vec2(200.0, 150.0) } else { vec2(120.0, 60.0) }; + PanelLimits { min, ..PanelLimits::default() } } - fn scroll_bars(&self, tab: &Panel) -> [bool; 2] { - // The other panels scroll their own lists. - [false, matches!(tab, Panel::Display | Panel::Shader)] - } - - fn tab_style_override(&self, tab: &Panel, global: &TabStyle) -> Option { - (*tab == Panel::Viewport).then(|| { - let mut s = global.clone(); - s.tab_body.inner_margin = Margin::ZERO; - s.tab_body.bg_fill = self.tk.viewport; - s.tab_body.corner_radius = CornerRadius::ZERO; - s - }) - } -} - -/// The dock look: every panel group is a rounded card on the window's frame colour, its tab strip -/// without hard lines, the shown tab a rounded pill, uppercase captions. -fn style(egui_style: &egui::Style, t: &Tokens) -> Style { - let card = crate::theme::CARD_RADIUS; - let mut s = Style::from_egui(egui_style); - // The gaps between the cards are the separators, in the frame's colour until grabbed. - s.dock_area_padding = Some(Margin::same(6)); - s.main_surface_border_stroke = Stroke::NONE; - s.main_surface_border_rounding = CornerRadius::ZERO; - s.separator.width = 6.0; - // Smallest panel extent a separator drag leaves (the crate's 175 px would grow the list). - s.separator.extra = 60.0; - s.separator.color_idle = t.chrome; - s.separator.color_hovered = t.button_border; - s.separator.color_dragged = t.accent; - s.tab_bar.bg_fill = t.panel; - s.tab_bar.height = 30.0; - s.tab_bar.inner_margin = Margin::same(4); - s.tab_bar.hline_color = egui::Color32::TRANSPARENT; - s.tab_bar.corner_radius = CornerRadius { nw: card, ne: card, sw: 0, se: 0 }; - for (tab, text, fill) in [ - (&mut s.tab.active, t.text_strong, t.button), - (&mut s.tab.focused, t.text_strong, t.button), - (&mut s.tab.active_with_kb_focus, t.text_strong, t.button), - (&mut s.tab.focused_with_kb_focus, t.text_strong, t.button), - (&mut s.tab.hovered, t.text, t.row_hover), - (&mut s.tab.inactive, t.text_dim, t.panel), - (&mut s.tab.inactive_with_kb_focus, t.text_dim, t.panel), - ] { - tab.text_color = text; - tab.corner_radius = CornerRadius::same(6); - tab.bg_fill = fill; - tab.outline_color = fill; - } - s.tab.spacing = 2.0; - let body = &mut s.tab.tab_body; - body.bg_fill = t.panel; - body.inner_margin = Margin::symmetric(8, 4); - body.stroke = Stroke::NONE; - body.corner_radius = CornerRadius { nw: 0, ne: 0, sw: card, se: card }; - // The viewport's group hides its tab bar entirely: no drag strip, no "show tab bar" button. - body.hidden_tab_bar_drag_height = Some(0.0); - s.buttons.show_tab_bar_size = 0.0; - s.buttons.show_tab_bar_hover_expand = 0.0; - s.buttons.show_tab_bar_color = egui::Color32::TRANSPARENT; - s.buttons.show_tab_bar_active_color = egui::Color32::TRANSPARENT; - s.buttons.close_tab_bg_fill = t.row_hover; - s.overlay.selection_color = t.accent.gamma_multiply(0.35); - s -} - -/// Draw the dock (viewport and panels) into `ui`. -pub fn show(app: &mut TextureCraftApp, ui: &mut Ui) { - let Some(mut state) = app.ui.dock.state.take() else { - app.ui.dock = Dock::default(); - return; - }; - // Only the viewport alone in its group hides the tab bar. - for (_, leaf) in state.iter_leaves_mut() { - leaf.tab_bar_hidden = leaf.tabs == [Panel::Viewport]; - } - let tk = Tokens::get(ui.ctx()); - let mut host = Host { app, closing: Vec::new(), tk }; - DockArea::new(&mut state) - .id(Id::new("dock_area")) - .style(style(ui.style(), &tk)) - .hidable_tab_bars(true) - .tab_context_menus(false) - .show_leaf_close_all_buttons(false) - .show_leaf_collapse_buttons(false) - .show_secondary_button_hint(false) - .show_inside(ui, &mut host); - let Host { app, closing, .. } = host; - // A layout adopted while drawing (Window ▸ Load UI Layout) wins over the drawn one. - if app.ui.dock.state.is_none() { - app.ui.dock.state = Some(state); - app.ui.dock.close_all(&closing); + fn floating_size(&self, _panel: &Panel) -> Option { + Some(vec2(300.0, 380.0)) } } #[cfg(test)] mod tests { use super::*; + use serde_json::json; - #[test] - fn default_layout_round_trips() { - let dock = Dock::default(); - assert_eq!(dock.layout(), Layout::default()); - let json = serde_json::to_string(&dock).unwrap(); - let back: Dock = serde_json::from_str(&json).unwrap(); - assert_eq!(back.layout(), Layout::default()); + fn panels_of(w: &Workspace) -> Vec { + w.layout.panels().into_iter().copied().collect() + } + + /// A layout as the dock of egui_dock wrote it: the default arrangement, Layers closed from + /// its tab group, Log in a floating window. + fn saved_before_shared_docking() -> Value { + json!({ + "main": {"split": {"vertical": false, "fraction": 0.115, + "first": {"tabs": {"tabs": ["Assets"], "active": 0}}, + "second": {"split": {"vertical": false, "fraction": 0.78, + "first": {"tabs": {"tabs": ["Viewport"], "active": 0}}, + "second": {"split": {"vertical": true, "fraction": 0.3, + "first": {"tabs": {"tabs": ["TextureSetList"], "active": 0}}, + "second": {"tabs": {"tabs": ["TextureSetSettings", "Properties"], "active": 1}}}}}}}}, + "windows": [{"rect": [100.0, 120.0, 320.0, 400.0], "root": {"tabs": {"tabs": ["Log", "Bogus"], "active": 0}}}], + "closed": [["Layers", {"with": ["TextureSetSettings", "Properties"], "index": 0}]] + }) } #[test] - fn hostile_layouts_are_repaired() { + fn default_workspace_has_every_panel_and_is_valid() { + let w = default_workspace(); + assert!(validate(&w).is_ok()); + for panel in Panel::ALL { + assert!(w.layout.contains(&panel) || w.hidden.iter().any(|(p, _)| *p == panel), "{panel:?} is neither shown nor hidden"); + } + assert_eq!(panels_of(&w), [Panel::Assets, Panel::Viewport, Panel::TextureSetList, Panel::Layers, Panel::TextureSetSettings, Panel::Properties]); + } + + #[test] + fn default_dock_round_trips() { + let dock = Dock::default(); + let json = serde_json::to_string(&dock).unwrap(); + let back: Dock = serde_json::from_str(&json).unwrap(); + assert_eq!(back, dock); + } + + #[test] + fn a_layout_saved_before_the_shared_docking_loads() { + let mut dock: Dock = serde_json::from_value(saved_before_shared_docking()).unwrap(); + let w = dock.workspace(); + assert!(validate(w).is_ok()); + // The tree is kept (Layers is closed), and the log keeps its window and rect. + assert_eq!(panels_of(w), [Panel::Assets, Panel::Viewport, Panel::TextureSetList, Panel::TextureSetSettings, Panel::Properties, Panel::Log]); + assert_eq!(w.layout.floating.len(), 1); + assert_eq!(w.layout.floating[0].rect, [100.0, 120.0, 320.0, 400.0]); + assert!(!dock.is_open(Panel::Layers) && dock.workspace().hidden.iter().any(|(p, _)| *p == Panel::Layers)); + // Panels the file never mentioned are hidden at their default place. + assert!(!dock.is_open(Panel::Display) && dock.workspace().hidden.iter().any(|(p, _)| *p == Panel::Display)); + // Reopening Layers puts it back in its tab group, first. + dock.focus(Panel::Layers); + assert!(dock.is_visible(Panel::Layers)); + assert_eq!(dock.workspace().layout.floating.len(), 1); + let mut nodes: Vec<&Node> = dock.workspace().layout.root.iter().collect(); + let mut group = None; + while let Some(node) = nodes.pop() { + match node { + Node::Split { first, second, .. } => nodes.extend([&**first, &**second]), + Node::Tabs { panels, .. } if panels.contains(&Panel::Layers) => group = Some(panels.clone()), + _ => {} + } + } + assert_eq!(group.unwrap(), [Panel::Layers, Panel::TextureSetSettings, Panel::Properties]); + } + + #[test] + fn unreadable_layouts_become_the_default() { + for text in [ + // No viewport at all. + r#"{"main":{"tabs":{"tabs":["Layers"]}}}"#, + // Not a layout. + r#"{"main":7}"#, + r#"[1,2]"#, + r#""dock""#, + // A shared workspace with a panel this build does not know. + r#"{"version":2,"layout":{"root":{"Tabs":{"panels":["Bogus"],"active":0}},"floating":[]}}"#, + // A shared workspace from a newer format. + r#"{"version":99,"layout":{"root":{"Tabs":{"panels":["Viewport"],"active":0}},"floating":[]}}"#, + // A viewport that floats. + r#"{"version":2,"layout":{"root":{"Tabs":{"panels":["Assets"],"active":0}},"floating":[{"panels":["Viewport"],"active":0,"rect":[0,0,200,200]}]}}"#, + ] { + let dock: Dock = serde_json::from_str(text).unwrap(); + assert_eq!(dock, Dock::default(), "{text}"); + } + } + + #[test] + fn hostile_old_layouts_are_repaired() { // Duplicates, unknown panels, a viewport in a window, bad fractions and rects, empty groups. let json = r#"{"main":{"split":{"vertical":false,"fraction":0.3,"first":{"tabs":{"tabs":["Layers","Layers","Bogus"],"active":9}}, "second":{"split":{"vertical":true,"fraction":7,"first":{"tabs":{"tabs":["Viewport"]}},"second":{"tabs":{"tabs":[]}}}}}}, "windows":[{"rect":[0,0,-5,10],"root":{"tabs":{"tabs":["Viewport","Log","Layers"]}}}]}"#; let dock: Dock = serde_json::from_str(json).unwrap(); - let l = dock.layout(); - assert_eq!(l.main, split(false, 0.3, Node::Tabs { tabs: vec![Panel::Layers], active: 0 }, tabs(&[Panel::Viewport]))); - assert_eq!(l.windows.len(), 1); - assert_eq!(l.windows[0].root, tabs(&[Panel::Log])); - // No viewport at all: the default layout. - let none: Dock = serde_json::from_str(r#"{"main":{"tabs":{"tabs":["Layers"]}}}"#).unwrap(); - assert_eq!(none.layout(), Layout::default()); + let w = dock.workspace(); + assert!(validate(w).is_ok()); + assert_eq!(panels_of(w), [Panel::Layers, Panel::Viewport, Panel::Log]); + assert_eq!(w.layout.floating.len(), 1); } #[test] - fn deep_trees_are_flattened() { - let mut node = tabs(&[Panel::Viewport]); - for p in [ - Panel::Assets, - Panel::Layers, - Panel::Log, - Panel::History, - Panel::Shader, - Panel::Display, - Panel::Properties, - Panel::TextureSetList, - Panel::TextureSetSettings, - ] { - node = split(true, 0.5, tabs(&[p]), node); - } - let dock = Dock { state: Layout { main: node, windows: Vec::new(), closed: Vec::new() }.build(), closed: Vec::new() }; - let mut all = Vec::new(); - dock.layout().main.collect(&mut all); - assert_eq!(all.len(), 10); + fn the_viewport_stays_put() { + let mut dock = Dock::default(); + dock.close(Panel::Viewport); + assert!(dock.is_open(Panel::Viewport)); + let before = dock.clone(); + dock.apply(Action::Float { panel: Panel::Viewport, rect: [0.0, 0.0, 300.0, 300.0] }); + dock.apply(Action::Move { panel: Panel::Layers, anchor: Panel::Viewport, placement: Placement::Tab { before: None } }); + assert_eq!(dock, before); } #[test] fn closed_panels_come_back_where_they_were() { - let screen = Rect::from_min_size(pos2(0.0, 0.0), vec2(1600.0, 960.0)); - // Moved: properties left of the viewport, layers tabbed after the texture set settings. - let layout = Layout { - main: split( - false, - 0.3, - tabs(&[Panel::Properties]), - split(false, 0.7, tabs(&[Panel::Viewport]), Node::Tabs { tabs: vec![Panel::TextureSetSettings, Panel::Layers, Panel::Log], active: 1 }), - ), - windows: Vec::new(), - closed: Vec::new(), - }; - let mut dock = Dock { state: layout.clone().build(), closed: Vec::new() }; - let before = dock.layout(); - for p in [Panel::Properties, Panel::Layers] { + let mut dock = Dock::default(); + let before = dock.clone(); + for p in [Panel::Properties, Panel::Layers, Panel::Assets] { dock.close(p); assert!(!dock.is_open(p)); // The places persist with the layout. - let json = serde_json::to_string(&dock).unwrap(); - dock = serde_json::from_str(&json).unwrap(); - dock.focus(p, screen); - assert_eq!(dock.layout(), before, "{p:?} came back elsewhere"); + dock = serde_json::from_str(&serde_json::to_string(&dock).unwrap()).unwrap(); + dock.focus(p); + assert!(dock.is_visible(p), "{p:?}"); + assert_eq!(dock, before, "{p:?} came back elsewhere"); } - // Closed together (a floating window's tabs) and reopened in any order. - dock.close_all(&[Panel::Layers, Panel::Log]); - dock.focus(Panel::Log, screen); - dock.focus(Panel::Layers, screen); - let mut order = Vec::new(); - dock.layout().main.collect(&mut order); - assert_eq!(order, [Panel::Properties, Panel::Viewport, Panel::TextureSetSettings, Panel::Layers, Panel::Log]); - // Hostile places are dropped or ignored. - let json = r#"{"main":{"tabs":{"tabs":["Viewport"]}},"closed":[["Viewport",{}],["Log",{"beside":["Bogus"],"fraction":7,"window":[0,0,-1,5]}]]}"#; - let mut d: Dock = serde_json::from_str(json).unwrap(); - assert_eq!(d.closed.len(), 1); - d.focus(Panel::Log, screen); - assert!(d.is_open(Panel::Log)); } #[test] - fn closed_panels_come_back_home() { - let screen = Rect::from_min_size(pos2(0.0, 0.0), vec2(1600.0, 960.0)); + fn closed_panels_without_a_place_open_floating() { let mut dock = Dock::default(); - assert!(dock.is_visible(Panel::Layers) && !dock.is_visible(Panel::TextureSetSettings)); - dock.toggle(Panel::TextureSetSettings, screen); + dock.focus(Panel::Display); + assert!(dock.is_visible(Panel::Display)); + assert_eq!(dock.workspace().layout.floating.len(), 1); + assert!(dock.workspace().layout.floating[0].contains(&Panel::Display)); + // Hiding and showing the views one by one. + dock.toggle(Panel::Display); + assert!(!dock.is_open(Panel::Display)); + dock.toggle(Panel::TextureSetSettings); assert!(dock.is_visible(Panel::TextureSetSettings) && !dock.is_visible(Panel::Layers)); - for p in [Panel::Assets, Panel::TextureSetList, Panel::Layers, Panel::TextureSetSettings, Panel::Properties] { - dock.close(p); - assert!(!dock.is_open(p)); - } - for p in [Panel::Properties, Panel::Layers, Panel::TextureSetList, Panel::Assets, Panel::Display] { - dock.focus(p, screen); - assert!(dock.is_visible(p), "{p:?}"); - } - dock.close(Panel::Viewport); - assert!(dock.is_open(Panel::Viewport)); - let l = dock.layout(); - assert_eq!(l.windows.len(), 1); - let mut order = Vec::new(); - l.main.collect(&mut order); - assert_eq!(order, [Panel::Assets, Panel::Viewport, Panel::TextureSetList, Panel::Layers, Panel::Properties]); } } diff --git a/crates/ui-egui/src/export_templates.rs b/crates/ui-egui/src/export_templates.rs index c717ba2b..c0aee844 100644 --- a/crates/ui-egui/src/export_templates.rs +++ b/crates/ui-egui/src/export_templates.rs @@ -259,7 +259,7 @@ fn preset_list(app: &mut TextureCraftApp, ui: &mut Ui, builtins: &[ExportPreset] for name in names { match app.ui.export.renaming.as_mut().filter(|_| name == sel) { Some(buf) => { - let r = ui.add(egui::TextEdit::singleline(buf).id(egui::Id::new(RENAME_ID)).desired_width(f32::INFINITY)); + let r = ui.add(egui::TextEdit::singleline(buf).id(egui::Id::unique(RENAME_ID)).desired_width(f32::INFINITY)); if r.lost_focus() { act = Some(if ui.input(|i| i.key_pressed(egui::Key::Escape)) { ListAction::Select(name) } else { ListAction::Rename(buf.clone()) }); } @@ -294,7 +294,7 @@ fn apply(app: &mut TextureCraftApp, ctx: &egui::Context, act: ListAction) { ListAction::StartRename(name) => { app.ui.export.preset = name.clone(); app.ui.export.renaming = Some(name); - ctx.memory_mut(|m| m.request_focus(egui::Id::new(RENAME_ID))); + ctx.memory_mut(|m| m.request_focus(egui::Id::unique(RENAME_ID))); } ListAction::Rename(name) => rename(app, name.trim()), ListAction::Remove => { @@ -636,7 +636,7 @@ fn input_maps(ui: &mut Ui) { && let Some(at) = r.interact_pointer_pos() { ui.ctx().set_cursor_icon(egui::CursorIcon::Grabbing); - egui::Area::new(egui::Id::new(("exp_input_drag", gi, k))) + egui::Area::new(egui::Id::unique(("exp_input_drag", gi, k))) .order(egui::Order::Tooltip) .fixed_pos(at + vec2(8.0, 8.0)) .show(ui.ctx(), |ui| chip(ui, label, true)); diff --git a/crates/ui-egui/src/fonts.rs b/crates/ui-egui/src/fonts.rs index feb8b6d3..514f4554 100644 --- a/crates/ui-egui/src/fonts.rs +++ b/crates/ui-egui/src/fonts.rs @@ -190,7 +190,9 @@ fn load(script: Script) -> Option { fn aligned(mut data: FontData) -> FontData { let defs = egui::FontDefinitions::default(); let primary = defs.families.get(&FontFamily::Proportional).and_then(|f| f.first()).and_then(|n| defs.font_data.get(n)); - if let (Some((pa, pd, pg)), Some((ca, cd, cg))) = (primary.and_then(|p| line_metrics(&p.font, p.index)), line_metrics(&data.font, data.index)) { + if let (Some((pa, pd, pg)), Some((ca, cd, cg))) = + (primary.and_then(|p| line_metrics(p.font.as_ref().as_ref(), p.index)), line_metrics(data.font.as_ref().as_ref(), data.index)) + { // Baseline of a fallback glyph: its ascent plus half the difference of the line boxes. let drift = ca + 0.5 * ((pa - pd + pg) - (ca - cd + cg)) - pa; if drift.is_finite() && drift.abs() < 1.0 { @@ -238,10 +240,10 @@ mod tests { fn line_metrics_read_the_default_font_and_reject_garbage() { let defs = egui::FontDefinitions::default(); let ubuntu = defs.font_data.get("Ubuntu-Light").unwrap(); - let (a, d, g) = line_metrics(&ubuntu.font, 0).unwrap(); + let (a, d, g) = line_metrics(ubuntu.font.as_ref().as_ref(), 0).unwrap(); assert!(a > 0.5 && a < 1.5 && d < 0.0 && d > -0.6 && g >= 0.0, "{a} {d} {g}"); // The primary font needs no shift against itself. - assert_eq!(aligned(FontData::from_owned(ubuntu.font.to_vec())).tweak.y_offset_factor, 0.0); + assert_eq!(aligned(FontData::from_owned(ubuntu.font.as_ref().as_ref().to_vec())).tweak.y_offset_factor, 0.0); for junk in [&b""[..], b"ttcf", b"\0\x01\0\0\0\x09", &[0xff; 64]] { assert!(line_metrics(junk, 0).is_none()); assert!(line_metrics(junk, 7).is_none()); diff --git a/crates/ui-egui/src/keymap.rs b/crates/ui-egui/src/keymap.rs index 0b2d126a..32b61242 100644 --- a/crates/ui-egui/src/keymap.rs +++ b/crates/ui-egui/src/keymap.rs @@ -147,7 +147,7 @@ const CAPTURE: &str = "keymap_capture"; /// Whether the editor is waiting for a key combination (global shortcuts pause meanwhile). pub fn capturing(ctx: &egui::Context) -> bool { - ctx.data(|d| d.get_temp::(Id::new(CAPTURE))).is_some() + ctx.data(|d| d.get_temp::(Id::unique(CAPTURE))).is_some() } /// The first key press this frame as a shortcut. @@ -166,8 +166,8 @@ pub fn window(app: &mut TextureCraftApp, ctx: &egui::Context) { if !app.ui.windows.shortcuts { return; } - let capture_id = Id::new(CAPTURE); - let filter_id = Id::new("keymap_filter"); + let capture_id = Id::unique(CAPTURE); + let filter_id = Id::unique("keymap_filter"); let mut capture: Option = ctx.data(|d| d.get_temp(capture_id)); if let (Some(i), Some(sc)) = (capture, pressed(ctx)) { if (sc.logical_key != Key::Escape || !sc.modifiers.is_none()) diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 9f4cf6e6..28b33de8 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -74,8 +74,6 @@ pub struct TextureCraftApp { pub thumbs: thumbs::Thumbs, /// Last frame's viewport rect (logical points), for scripted input. pub viewport_rect: egui::Rect, - /// Pending screenshot requests from the control channel. - pub screenshot_waiters: Vec>, pub fps: f32, /// User smart materials found in the library folder (refreshed on demand). pub library: Option>, @@ -127,7 +125,6 @@ impl TextureCraftApp { resize: None, thumbs: thumbs::Thumbs::default(), viewport_rect: egui::Rect::NOTHING, - screenshot_waiters: Vec::new(), fps: 0.0, ui_ms: 0.0, profiler: profile::Profiler::default(), @@ -465,7 +462,7 @@ fn toasts(app: &mut TextureCraftApp, ctx: &egui::Context) { } ctx.request_repaint_after(std::time::Duration::from_millis(250)); let tk = theme::Tokens::get(ctx); - egui::Area::new(egui::Id::new("toasts")).anchor(egui::Align2::RIGHT_BOTTOM, egui::vec2(-16.0, -36.0)).show(ctx, |ui| { + egui::Area::new(egui::Id::unique("toasts")).anchor(egui::Align2::RIGHT_BOTTOM, egui::vec2(-16.0, -36.0)).show(ctx, |ui| { for t in &app.toasts { egui::Frame::NONE .fill(tk.panel) diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index baf5143b..703ca3b9 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -118,14 +118,14 @@ pub fn implemented(id: &str) -> bool { /// Invoke a menu item (menus, shortcuts, palette, control channel `ui.menu.invoke`). pub fn invoke(app: &mut TextureCraftApp, ctx: &egui::Context, id: &str) { if let Some(panel) = crate::docking::view_panel(id) { - app.ui.dock.toggle(panel, ctx.content_rect()); + app.ui.dock.toggle(panel); return; } match id { "ui.newProject" => app.ui.windows.new_project = true, "ui.export" => app.ui.windows.export = true, "ui.quit" => ctx.send_viewport_cmd(egui::ViewportCommand::Close), - "ui.projectConfig" => app.ui.dock.focus(crate::docking::Panel::Display, ctx.content_rect()), + "ui.projectConfig" => app.ui.dock.focus(crate::docking::Panel::Display), "ui.settings" => app.ui.windows.settings = true, "ui.mode.bake" => app.ui.mode = Mode::Baking, "ui.mode.paint" => app.ui.mode = Mode::Painting, @@ -254,6 +254,20 @@ fn menu_item(app: &mut TextureCraftApp, ctx: &egui::Context, ui: &mut egui::Ui, /// Global shortcuts: the catalog's and every engine command's (defaults or the user's keymap), /// plus the fixed brush keys. +/// Keys pressed in a floating panel's own OS window run the shortcuts the main window's keys do. +#[cfg(not(target_arch = "wasm32"))] +pub fn forwarded_shortcuts(app: &mut TextureCraftApp, ctx: &egui::Context, events: Vec, _modifiers: Modifiers) { + if crate::keymap::capturing(ctx) { + return; + } + let active = crate::keymap::active(&app.ui.keymap); + for event in events { + let egui::Event::Key { key, pressed: true, repeat: false, modifiers, .. } = event else { continue }; + let Some((id, _)) = active.iter().find(|(_, sc)| sc.logical_key == key && modifiers.matches_logically(sc.modifiers)) else { continue }; + invoke(app, ctx, id); + } +} + pub fn shortcuts(app: &mut TextureCraftApp, ctx: &egui::Context) { if crate::keymap::capturing(ctx) || (ctx.memory(|m| m.focused().is_some()) && ctx.egui_wants_keyboard_input()) { return; diff --git a/crates/ui-egui/src/shelf.rs b/crates/ui-egui/src/shelf.rs index 5d86cacd..0abcbe68 100644 --- a/crates/ui-egui/src/shelf.rs +++ b/crates/ui-egui/src/shelf.rs @@ -172,7 +172,7 @@ pub fn body(app: &mut TextureCraftApp, ui: &mut Ui) { fn drag_preview(ctx: &egui::Context) { let tk = Tokens::get(ctx); let (Some(d), Some(pos)) = (egui::DragAndDrop::payload::(ctx), ctx.input(|i| i.pointer.hover_pos())) else { return }; - let p = ctx.layer_painter(egui::LayerId::new(egui::Order::Tooltip, egui::Id::new("shelf_drag"))); + let p = ctx.layer_painter(egui::LayerId::new(egui::Order::Tooltip, egui::Id::unique("shelf_drag"))); let galley = p.layout_no_wrap(d.label.clone(), egui::FontId::proportional(11.0), tk.text_strong); let rect = egui::Rect::from_min_size(pos + vec2(14.0, 12.0), galley.size() + vec2(12.0, 6.0)); p.rect_filled(rect, 3.0, tk.row_selected); diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rs index fe083a24..d988f0bb 100644 --- a/crates/ui-egui/src/toolbar.rs +++ b/crates/ui-egui/src/toolbar.rs @@ -199,7 +199,7 @@ pub fn tool_shelf(app: &mut TextureCraftApp, ui: &mut egui::Ui) { app.ui.mode = if app.ui.mode == Mode::Rendering { Mode::Painting } else { Mode::Rendering }; } if icon_button(ui, ic::SPHERE, tr("Add smart material from the shelf"), false, 28.0).clicked() { - app.ui.dock.focus(Panel::Assets, ui.ctx().content_rect()); + app.ui.dock.focus(Panel::Assets); } }); }); @@ -213,7 +213,6 @@ pub fn rail(app: &mut TextureCraftApp, ui: &mut egui::Ui) { if icon_button(ui, ic::EXPORT, &tip(&app.ui.keymap, tr("Export textures"), "ui.export"), app.ui.windows.export, 26.0).clicked() { app.ui.windows.export = !app.ui.windows.export; } - let screen = ui.ctx().content_rect(); for (panel, icon, id) in [ (Panel::TextureSetSettings, ic::STACK, "ui.view.textureSetSettings"), (Panel::Display, ic::MONITOR, "ui.view.display"), @@ -221,7 +220,7 @@ pub fn rail(app: &mut TextureCraftApp, ui: &mut egui::Ui) { (Panel::History, ic::CLOCK_COUNTER_CLOCKWISE, "ui.view.history"), ] { if icon_button(ui, icon, &tip(&app.ui.keymap, tr(panel.name()), id), app.ui.dock.is_visible(panel), 26.0).clicked() { - app.ui.dock.toggle(panel, screen); + app.ui.dock.toggle(panel); } } }); diff --git a/crates/ui-egui/src/viewport.rs b/crates/ui-egui/src/viewport.rs index ee34ae92..06011755 100644 --- a/crates/ui-egui/src/viewport.rs +++ b/crates/ui-egui/src/viewport.rs @@ -23,7 +23,7 @@ pub const VIEW_2D: u64 = 2; /// While on, a click in the 3D view focuses the depth of field there (a transient UI mode kept in /// egui's memory). fn focus_pick_id() -> egui::Id { - egui::Id::new("tc_focus_pick") + egui::Id::unique("tc_focus_pick") } pub fn focus_picking(ctx: &egui::Context) -> bool { @@ -193,7 +193,7 @@ fn axis_gizmo(ui: &Ui, rect: Rect, app: &TextureCraftApp, uv: bool) { } fn view_3d(app: &mut TextureCraftApp, ui: &mut Ui, rect: Rect, sync: &mut PendingSync) { - let resp = ui.interact(rect, ui.id().with("view3d"), Sense::click_and_drag()); + let resp = ui.interact(rect, ui.scope_id().with("view3d"), Sense::click_and_drag()); app.viewport_rect = rect; let size = rect.size(); app.session.viewport = Vec2::new(size.x.max(16.0), size.y.max(16.0)); @@ -441,7 +441,7 @@ struct DecalDrag { } fn decal_drag_id() -> egui::Id { - egui::Id::new("tc_decal_drag") + egui::Id::unique("tc_decal_drag") } /// Screen distance from the top edge to the rotation handle (points). @@ -788,7 +788,7 @@ fn brush_cursor(app: &TextureCraftApp, ui: &Ui, rect: Rect, pos: Vec3, nrm: Vec3 fn view_2d(app: &mut TextureCraftApp, ui: &mut Ui, rect: Rect, sync: &mut PendingSync) { let tk = Tokens::get(ui.ctx()); - let resp = ui.interact(rect, ui.id().with("view2d"), Sense::click_and_drag()); + let resp = ui.interact(rect, ui.scope_id().with("view2d"), Sense::click_and_drag()); let size = rect.size(); let alt = ui.input(|i| i.modifiers.alt); let delta = ui.input(|i| i.pointer.delta()); diff --git a/crates/ui-egui/src/web_files.rs b/crates/ui-egui/src/web_files.rs index c2f2f369..371a646a 100644 --- a/crates/ui-egui/src/web_files.rs +++ b/crates/ui-egui/src/web_files.rs @@ -113,7 +113,7 @@ pub fn load(app: &mut TextureCraftApp, name: &str, bytes: &[u8]) { if IMAGE_EXTS.contains(&ext.as_str()) { match app.session.import_resource_bytes(name, bytes.to_vec()) { Ok(res) => { - app.ui.dock.focus(crate::docking::Panel::Assets, egui::Rect::ZERO); + app.ui.dock.focus(crate::docking::Panel::Assets); app.toast(trf("Imported {name}", &[("name", &res)]), false); } Err(e) => app.toast(trf("Couldn't import {name}: {error}", &[("name", &name), ("error", &e)]), true), @@ -142,7 +142,7 @@ pub fn dropped(app: &mut TextureCraftApp, ctx: &egui::Context, file: &egui::Drop if IMAGE_EXTS.contains(&ext.as_str()) { if let Some(r) = app.run("resource.import", serde_json::json!({ "path": path })) { let name = r.get("name").and_then(|n| n.as_str()).unwrap_or_default().to_string(); - app.ui.dock.focus(crate::docking::Panel::Assets, egui::Rect::ZERO); + app.ui.dock.focus(crate::docking::Panel::Assets); app.toast(trf("Imported {name}", &[("name", &name)]), false); } } else { diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 17b69998..35598b99 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -23,7 +23,7 @@ pub fn slider(ui: &mut Ui, label: &str, value: &mut f32, range: std::ops::RangeI ui.label(RichText::new(label).color(tk.text)); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { let mut text = format!("{:.*}", decimals, value); - let r = ui.add(egui::TextEdit::singleline(&mut text).desired_width(44.0).horizontal_align(egui::Align::RIGHT).frame(egui::Frame::NONE)); + let r = ui.add(egui::TextEdit::singleline(&mut text).desired_width(44.0).align(egui::Align2::RIGHT_CENTER).frame(egui::Frame::NONE)); if r.lost_focus() && let Ok(v) = text.trim().parse::() && v.is_finite() diff --git a/crates/ui-egui/src/windows.rs b/crates/ui-egui/src/windows.rs index 9c3b2a99..9dd7af1b 100644 --- a/crates/ui-egui/src/windows.rs +++ b/crates/ui-egui/src/windows.rs @@ -33,7 +33,7 @@ pub fn show(app: &mut TextureCraftApp, ctx: &egui::Context) { /// A titled tool window; `id` keeps its place across UI languages. pub(crate) fn window<'a>(id: &str, title: &str, open: &'a mut bool) -> egui::Window<'a> { egui::Window::new(RichText::new(title.to_uppercase()).size(10.5).strong()) - .id(egui::Id::new(id)) + .id(egui::Id::unique(id)) .open(open) .resizable(true) .collapsible(false) @@ -42,7 +42,12 @@ pub(crate) fn window<'a>(id: &str, title: &str, open: &'a mut bool) -> egui::Win /// A centered dialog; `id` keeps its place across UI languages. fn dialog<'a>(id: &str, title: &str, open: &'a mut bool) -> egui::Window<'a> { - egui::Window::new(title.to_owned()).id(egui::Id::new(id)).open(open).collapsible(false).resizable(false).anchor(egui::Align2::CENTER_CENTER, vec2(0.0, 0.0)) + egui::Window::new(title.to_owned()) + .id(egui::Id::unique(id)) + .open(open) + .collapsible(false) + .resizable(false) + .anchor(egui::Align2::CENTER_CENTER, vec2(0.0, 0.0)) } /// The Display Settings panel body (a dock tab). @@ -127,7 +132,7 @@ fn cameras(app: &mut TextureCraftApp, ui: &mut Ui) { app.run("camera.select", json!({"index": i})); } // The name being typed lives in egui's memory until the field loses focus. - let id = ui.id().with(("camera_name", i)); + let id = ui.scope_id().with(("camera_name", i)); let mut text = ui.data(|d| d.get_temp::(id)).unwrap_or_else(|| name.clone()); let r = ui.add(egui::TextEdit::singleline(&mut text).desired_width(ui.available_width() - 26.0)); if r.changed() { @@ -377,7 +382,7 @@ fn settings(app: &mut TextureCraftApp, ctx: &egui::Context) { ui.label(tr("Accent color")); for a in Accent::ALL { let (rect, resp) = ui.allocate_exact_size(vec2(20.0, 20.0), egui::Sense::click()); - resp.widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::RadioButton, true, p.accent == a, tr(a.label()))); + resp.widget_info(|| egui::WidgetInfo::selected(egui::Role::RadioButton, true, p.accent == a, tr(a.label()))); let ring = if p.accent == a { tk.text_strong } else if resp.hovered() { @@ -743,7 +748,7 @@ fn map_params(ui: &mut Ui, m: BakedMap, b: &mut BakeSettings) { } fn bake_bar(app: &mut TextureCraftApp, ctx: &egui::Context) { - egui::Area::new(egui::Id::new("bake_bar")).anchor(egui::Align2::CENTER_BOTTOM, vec2(0.0, -40.0)).show(ctx, |ui| { + egui::Area::new(egui::Id::unique("bake_bar")).anchor(egui::Align2::CENTER_BOTTOM, vec2(0.0, -40.0)).show(ctx, |ui| { ui.horizontal(|ui| { if let Some(p) = app.bake_progress() { ui.add(egui::ProgressBar::new(p).desired_width(220.0).show_percentage()); @@ -862,7 +867,7 @@ pub fn file_action(app: &mut TextureCraftApp, _ctx: &egui::Context, id: &str) -> app.toast(trf("Imported {name}", &[("name", &name)]), false); } } - app.ui.dock.focus(crate::docking::Panel::Assets, _ctx.content_rect()); + app.ui.dock.focus(crate::docking::Panel::Assets); true } "file.exportMesh" => { diff --git a/docs/control-protocol.md b/docs/control-protocol.md index b3cc3945..8f9207c8 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -48,7 +48,7 @@ keeps its state in a throwaway file. | `ui.inspect` | | UI state, viewport rect, fps, bake progress, toasts | | `ui.menu.list` | | the menu catalog: `{menu, submenu, label, id, shortcut, implemented, enabled}` | | `ui.menu.invoke` | `{id}` | behaves like a menu click (may open a window) | -| `ui.set` | fields of the UI state, e.g. `{"layout": "Only3D"}`; `dock` is the panel layout (`{main, windows}`: `{"tabs": {"tabs": [...], "active": 0}}` or `{"split": {"vertical", "fraction", "first", "second"}}` nodes over `Viewport`, `Assets`, `TextureSetList`, `Layers`, `TextureSetSettings`, `Properties`, `Display`, `Shader`, `History`, `Log`; `closed` lists where each closed panel was, so reopening it puts it back), `prefs` the settings (`{"language": "ja", "viewport_texture": 1, "brightness": "light", "accent": "blue"}`; missing fields take their defaults; `brightness` is `dark`, `mediumDark` (default), `mediumLight` or `light`, `accent` `copper` (default), `coral`, `blue`, `violet`, `green`, `amber` or `pink`, applied on the next frame), `keymap` the custom shortcuts (`{"file.save": "F5"}`, `""` unbinds) | `null` | +| `ui.set` | fields of the UI state, e.g. `{"layout": "Only3D"}`; `dock` is the panel layout, a craft-ui docking `Workspace` (`{version, layout: {root, floating}, hidden}`; `root` is a tree of `Split`, `Tabs` and `Stack` nodes over the panels `Viewport`, `Assets`, `TextureSetList`, `Layers`, `TextureSetSettings`, `Properties`, `Display`, `Shader`, `History` and `Log`; `hidden` lists where each closed panel was, so reopening it puts it back; a layout that does not read or has no docked `Viewport` becomes the default, and the earlier `{main, windows, closed}` layout is converted), `prefs` the settings (`{"language": "ja", "viewport_texture": 1, "brightness": "light", "accent": "blue"}`; missing fields take their defaults; `brightness` is `dark`, `mediumDark` (default), `mediumLight` or `light`, `accent` `copper` (default), `coral`, `blue`, `violet`, `green`, `amber` or `pink`, applied on the next frame), `keymap` the custom shortcuts (`{"file.save": "F5"}`, `""` unbinds) | `null` | | `viewport.screenshot` | `{view?: "3d" \| "2d"}` | `{width, height, png}` (PNG, base64) | | `ui.screenshot` | | `{width, height, png}` of the whole window, after the next frame | | `ui.resize` | `{width, height}` | Sets the window's inner size in points (640–7680), leaving maximized state; for recordings and screenshots at a fixed size | diff --git a/vendor/egui-phosphor/Cargo.toml b/vendor/egui-phosphor/Cargo.toml new file mode 100644 index 00000000..3b0212f6 --- /dev/null +++ b/vendor/egui-phosphor/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "egui-phosphor" +description = "Phosphor icons for egui" +version = "0.14.0" +edition = "2021" +license = "MIT OR Apache-2.0" +repository = "https://github.com/amPerl/egui-phosphor" + +[dependencies] +egui = { version = "0.37", default-features = false } + +[features] +default = ["regular"] +thin = [] +light = [] +regular = [] +bold = [] +fill = [] +subset = ["thin", "light", "regular", "bold", "fill"] diff --git a/vendor/egui-phosphor/LICENSE-APACHE b/vendor/egui-phosphor/LICENSE-APACHE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/vendor/egui-phosphor/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/egui-phosphor/LICENSE-MIT b/vendor/egui-phosphor/LICENSE-MIT new file mode 100644 index 00000000..69d0b1b2 --- /dev/null +++ b/vendor/egui-phosphor/LICENSE-MIT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Romet Tagobert + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/egui-phosphor/README.md b/vendor/egui-phosphor/README.md new file mode 100644 index 00000000..2c50dffd --- /dev/null +++ b/vendor/egui-phosphor/README.md @@ -0,0 +1,79 @@ +# egui_phosphor + +Bundles [Phosphor icons](https://phosphoricons.com/) with boilerplate to use in your egui app. + +## Installation + +Add the crate as a dependency in Cargo.toml: + +```toml +egui-phosphor = "0.14" +``` + +On startup, update the fonts in your egui context: + +```rust +let mut fonts = egui::FontDefinitions::default(); +egui_phosphor::add_to_fonts(&mut fonts, egui_phosphor::Variant::Regular); + +cc.egui_ctx.set_fonts(fonts); +``` + +The above `add_to_fonts` helper adds the chosen variant (`Regular`) as a fallback to the primary egui `Proportional` font so that when you use Phosphor icons mixed with plain text in labels, the icon font will take over where necessary. If you want to add multiple variants of Phosphor icons, see [this example](examples/multiple_variants.rs) which shows all variants in use. + +## Usage + +Use the constants provided by the crate in your text: + +```rust +ui.label(egui::RichText::new(format!("FILE_CODE {}", egui_phosphor::regular::FILE_CODE)).size(32.0)); +``` + +**Note: Make sure to use the appropriate character codes for your chosen variant!** This means for `Variant::Regular` you should use `regular::FILE_CODE`, for `Variant::Fill` you should use `fill::FILE_CODE` etc. + +## Subsetting + +The optional `subset` feature reduces the font at compile time to only the icons you specify, at the cost of roughly 0.3s per rebuild of the crate that invokes it: + +```toml +egui-phosphor = { version = "0.14", features = ["subset"] } +``` + +```rust +egui_phosphor::subset! { + pub mod icons { + use regular::{GEAR, HOUSE, TRASH}; + } +} + +// on startup: +let mut fonts = egui::FontDefinitions::default(); +icons::regular::add_to_fonts(&mut fonts); +cc.egui_ctx.set_fonts(fonts); + +// in your UI: +ui.label(format!("{} Settings", icons::regular::GEAR)); +``` + +### Multiple variants + +Because every variant uses the same codepoints, only one of the variants can be the default fallback for the proportional font. Add that one with `add_to_fonts`, the rest with `add_as_family`, and select those by family: + +```rust +egui_phosphor::subset! { + pub mod icons { + use regular::{GEAR, HOUSE}; + use fill::{GEAR, HEART}; + } +} + +icons::regular::add_to_fonts(&mut fonts); +icons::fill::add_as_family(&mut fonts); + +ui.label(format!("{} Settings", icons::regular::GEAR)); +ui.label(icons::fill::rich(format!("{} Favourite", icons::fill::HEART))); +``` + +## License + +egui-phosphor is licensed under [MIT](LICENSE-MIT) OR [Apache-2.0](LICENSE-APACHE). Phosphor Icons are licensed under [MIT](https://github.com/phosphor-icons/web/blob/master/LICENSE). diff --git a/vendor/egui-phosphor/VENDORED.md b/vendor/egui-phosphor/VENDORED.md new file mode 100644 index 00000000..f7982a2f --- /dev/null +++ b/vendor/egui-phosphor/VENDORED.md @@ -0,0 +1,9 @@ +# egui-phosphor 0.14.0 (vendored) + +Source: https://github.com/amPerl/egui-phosphor (crates.io `egui-phosphor` 0.14.0), MIT OR Apache-2.0. + +The crate has no release for egui 0.37, so the workspace patches `egui-phosphor` to this copy, which +depends on egui 0.37. Only the dependency version in `Cargo.toml` differs; examples, tests and the +unused font variants (thin, light, bold) are left out. The `regular` and `fill` fonts are the Phosphor +Icons font (MIT, https://phosphoricons.com). Drop this directory and the patch once the crate releases +for egui 0.37. diff --git a/vendor/egui-phosphor/res/Phosphor-Fill.ttf b/vendor/egui-phosphor/res/Phosphor-Fill.ttf new file mode 100644 index 00000000..b02c4cb2 Binary files /dev/null and b/vendor/egui-phosphor/res/Phosphor-Fill.ttf differ diff --git a/vendor/egui-phosphor/res/Phosphor.ttf b/vendor/egui-phosphor/res/Phosphor.ttf new file mode 100644 index 00000000..7c1b8a7a Binary files /dev/null and b/vendor/egui-phosphor/res/Phosphor.ttf differ diff --git a/vendor/egui-phosphor/src/lib.rs b/vendor/egui-phosphor/src/lib.rs new file mode 100644 index 00000000..ea4ba08f --- /dev/null +++ b/vendor/egui-phosphor/src/lib.rs @@ -0,0 +1,65 @@ +pub mod variants; +pub use variants::*; + +#[cfg(feature = "subset")] +pub mod subset; + +/// Re-exported for [`subset!`]. +pub use egui; + +pub fn add_to_fonts(fonts: &mut egui::FontDefinitions, variant: Variant) { + add_font_bytes_to_fonts(fonts, "phosphor", variant.font_bytes()); +} + +/// Insert `bytes` under `name`, make it a fallback for proportional text so +/// icons can be mixed into ordinary labels, and register a +/// [`FontFamily::Name(name)`](egui::FontFamily::Name) that resolves to it. +/// +/// `name` must be unique per font, otherwise later calls overwrite earlier ones. +/// +/// Because every Phosphor variant uses the same codepoints, proportional text +/// can only resolve an icon to one of them. Use [`add_font_bytes_as_family`] for +/// any additional variants and select them explicitly by family. +pub fn add_font_bytes_to_fonts( + fonts: &mut egui::FontDefinitions, + name: &str, + bytes: &'static [u8], +) { + add_font_bytes_as_family(fonts, name, bytes); + + if let Some(font_keys) = fonts.families.get_mut(&egui::FontFamily::Proportional) { + // Second, so it does not shadow the text font -- but `Proportional` can + // be empty when egui is built without `default_fonts`. + let at = font_keys.len().min(1); + font_keys.insert(at, name.into()); + } +} + +/// Insert `bytes` under `name` and register a +/// [`FontFamily::Name(name)`](egui::FontFamily::Name) for it, without adding it +/// to the proportional fonts. +/// +/// The family also contains the proportional fonts. `name` goes second, not +/// first: the subset maps `a`-`z` to the blank glyphs Phosphor's ligatures are +/// built from, so putting it ahead of the text font would blank out ordinary +/// lowercase text. Second still puts it ahead of any other icon font and of +/// egui's emoji fonts, so the icons themselves resolve from it. +pub fn add_font_bytes_as_family( + fonts: &mut egui::FontDefinitions, + name: &str, + bytes: &'static [u8], +) { + fonts + .font_data + .insert(name.into(), egui::FontData::from_static(bytes).into()); + + let mut keys = fonts + .families + .get(&egui::FontFamily::Proportional) + .cloned() + .unwrap_or_default(); + keys.insert(keys.len().min(1), name.into()); + fonts + .families + .insert(egui::FontFamily::Name(name.into()), keys); +} diff --git a/vendor/egui-phosphor/src/subset.rs b/vendor/egui-phosphor/src/subset.rs new file mode 100644 index 00000000..0071b931 --- /dev/null +++ b/vendor/egui-phosphor/src/subset.rs @@ -0,0 +1,1016 @@ +//! A `const fn` TTF subsetter for icon fonts. +//! +//! Surviving glyphs are renumbered into a dense `0..N` range, so `glyf`, +//! `loca`, `hmtx`, `cmap` and `GSUB` are rebuilt, `hhea` and `maxp` are patched +//! with the new glyph count, and only `OS/2` copies verbatim. `gasp`, `name` +//! and `post` are dropped. Composite glyphs are rejected because they embed the +//! ids of their components; Phosphor has none. +//! +//! # Why `GSUB` is kept +//! +//! Phosphor's `GSUB` is a single `liga` lookup implementing "type `gear`, get +//! the gear icon". Nothing here uses ligatures, but they are what makes every +//! icon glyph reachable from the Latin letters a-z, and skrifa's autohinter +//! uses that to classify the icons as Latin. Without it they are hinted as if +//! they were an unknown script and render visibly blurrier below ~20px, so the +//! ligatures for the icons we keep are carried over along with those letters. + +const MAX_GLYPHS: usize = 8192; +const KEEP_WORDS: usize = MAX_GLYPHS / 64; +const NTABLES: usize = 9; + +/// Output tables, in the ascending-tag order the spec requires. +const TAGS: [&[u8; 4]; NTABLES] = [ + b"GSUB", b"OS/2", b"cmap", b"glyf", b"head", b"hhea", b"hmtx", b"loca", b"maxp", +]; +const T_GSUB: usize = 0; +const T_OS2: usize = 1; +const T_CMAP: usize = 2; +const T_GLYF: usize = 3; +const T_HEAD: usize = 4; +const T_HHEA: usize = 5; +const T_HMTX: usize = 6; +const T_LOCA: usize = 7; +const T_MAXP: usize = 8; + +// ---------------------------------------------------------------- byte reads + +const fn be16(d: &[u8], o: usize) -> u16 { + (d[o] as u16) << 8 | d[o + 1] as u16 +} + +const fn be32(d: &[u8], o: usize) -> u32 { + (d[o] as u32) << 24 | (d[o + 1] as u32) << 16 | (d[o + 2] as u32) << 8 | d[o + 3] as u32 +} + +/// Codepoint of the first `char` of `s`. +pub const fn cp(s: &str) -> u32 { + let b = s.as_bytes(); + let b0 = b[0] as u32; + if b0 < 0x80 { + b0 + } else if b0 < 0xE0 { + (b0 & 0x1F) << 6 | (b[1] as u32 & 0x3F) + } else if b0 < 0xF0 { + (b0 & 0x0F) << 12 | (b[1] as u32 & 0x3F) << 6 | (b[2] as u32 & 0x3F) + } else { + (b0 & 0x07) << 18 + | (b[1] as u32 & 0x3F) << 12 + | (b[2] as u32 & 0x3F) << 6 + | (b[3] as u32 & 0x3F) + } +} + +// ------------------------------------------------------------- source lookup + +const fn find_table(src: &[u8], tag: &[u8; 4]) -> (usize, usize) { + let (o, l) = opt_table(src, tag); + if o == usize::MAX { + panic!("egui-phosphor: required table missing from source font"); + } + (o, l) +} + +const fn opt_table(src: &[u8], tag: &[u8; 4]) -> (usize, usize) { + let num = be16(src, 4) as usize; + let mut i = 0; + while i < num { + let r = 12 + 16 * i; + if src[r] == tag[0] && src[r + 1] == tag[1] && src[r + 2] == tag[2] && src[r + 3] == tag[3] + { + return (be32(src, r + 8) as usize, be32(src, r + 12) as usize); + } + i += 1; + } + (usize::MAX, 0) +} + +const fn loca_at(src: &[u8], loca: usize, long: bool, i: usize) -> usize { + if long { + be32(src, loca + 4 * i) as usize + } else { + be16(src, loca + 2 * i) as usize * 2 + } +} + +/// Offset of the format 4 subtable inside `cmap`, preferring (3,1) then (0,3). +const fn cmap4(src: &[u8], cmap: usize) -> usize { + let n = be16(src, cmap + 2) as usize; + let mut best = usize::MAX; + let mut i = 0; + while i < n { + let r = cmap + 4 + 8 * i; + let plat = be16(src, r); + let enc = be16(src, r + 2); + let off = cmap + be32(src, r + 4) as usize; + if be16(src, off) == 4 { + if plat == 3 && enc == 1 { + return off; + } + if best == usize::MAX && plat == 0 && enc == 3 { + best = off; + } + } + i += 1; + } + if best == usize::MAX { + panic!("egui-phosphor: source font has no format 4 cmap subtable"); + } + best +} + +/// Glyph id for codepoint `c` using segment `i`, which must already contain `c`. +const fn gid_in_seg(src: &[u8], sub: usize, seg_count: usize, i: usize, c: u16) -> u16 { + let end = sub + 14; + let start = end + seg_count * 2 + 2; + let delta = start + seg_count * 2; + let range = delta + seg_count * 2; + let ro = be16(src, range + 2 * i) as usize; + if ro == 0 { + return c.wrapping_add(be16(src, delta + 2 * i)); + } + let g = be16( + src, + range + 2 * i + ro + 2 * (c - be16(src, start + 2 * i)) as usize, + ); + if g == 0 { + return 0; + } + g.wrapping_add(be16(src, delta + 2 * i)) +} + +/// Glyph id for `c` via a format 4 subtable, or 0. +const fn lookup(src: &[u8], sub: usize, c: u32) -> u16 { + if c > 0xFFFF { + return 0; + } + let c = c as u16; + let seg_count = be16(src, sub + 6) as usize / 2; + let end = sub + 14; + let start = end + seg_count * 2 + 2; + + // endCode[] is sorted ascending: binary search for the first segment whose + // endCode >= c. A linear scan here trips `long_running_const_eval` once a + // caller asks for a few thousand codepoints. + let mut lo = 0; + let mut hi = seg_count; + while lo < hi { + let mid = (lo + hi) / 2; + if be16(src, end + 2 * mid) >= c { + hi = mid; + } else { + lo = mid + 1; + } + } + if lo >= seg_count || be16(src, start + 2 * lo) > c { + return 0; + } + gid_in_seg(src, sub, seg_count, lo, c) +} + +// ---------------------------------------------------------------- GSUB reads + +/// Offset of the single `LigatureSubst` format 1 subtable, or `usize::MAX`. +const fn lig_subtable(src: &[u8], gsub: usize) -> usize { + if gsub == usize::MAX { + return usize::MAX; + } + let ll = gsub + be16(src, gsub + 8) as usize; + let count = be16(src, ll) as usize; + let mut i = 0; + while i < count { + let lo = ll + be16(src, ll + 2 + 2 * i) as usize; + if be16(src, lo) == 4 && be16(src, lo + 4) >= 1 { + let so = lo + be16(src, lo + 6) as usize; + if be16(src, so) == 1 { + return so; + } + } + i += 1; + } + usize::MAX +} + +const fn cov_count(src: &[u8], cov: usize) -> usize { + let fmt = be16(src, cov); + if fmt == 1 { + be16(src, cov + 2) as usize + } else { + let n = be16(src, cov + 2) as usize; + let mut total = 0; + let mut i = 0; + while i < n { + let r = cov + 4 + 6 * i; + total += (be16(src, r + 2) - be16(src, r)) as usize + 1; + i += 1; + } + total + } +} + +/// The `i`-th glyph in coverage-index order. +const fn cov_glyph(src: &[u8], cov: usize, i: usize) -> u16 { + let fmt = be16(src, cov); + if fmt == 1 { + return be16(src, cov + 4 + 2 * i); + } + let n = be16(src, cov + 2) as usize; + let mut seen = 0; + let mut r = 0; + while r < n { + let o = cov + 4 + 6 * r; + let (s, e) = (be16(src, o), be16(src, o + 2)); + let len = (e - s) as usize + 1; + if i < seen + len { + return s + (i - seen) as u16; + } + seen += len; + r += 1; + } + 0 +} + +// ---------------------------------------------------------------------- plan + +struct Plan { + keep: [u64; KEEP_WORDS], + num_glyphs: usize, + /// Glyph count after renumbering. + num_kept: usize, + long_loca: bool, + seg_count: usize, + /// Number of first-glyph coverage entries whose set retains a ligature. + lig_sets: usize, + off: [usize; NTABLES], + len: [usize; NTABLES], + total: usize, +} + +const fn is_kept(keep: &[u64; KEEP_WORDS], g: usize) -> bool { + keep[g / 64] & (1u64 << (g % 64)) != 0 +} + +/// Renumbered id of `old`: the number of kept glyphs below it. +/// +/// Ids are assigned in ascending source order, so `GSUB` coverage tables stay +/// sorted without re-sorting. +const fn new_gid(keep: &[u64; KEEP_WORDS], old: usize) -> u16 { + let mut n = 0u32; + let w = old / 64; + let mut i = 0; + while i < w { + n += keep[i].count_ones(); + i += 1; + } + let bit = old % 64; + if bit > 0 { + n += (keep[w] & ((1u64 << bit) - 1)).count_ones(); + } + n as u16 +} + +const fn count_kept(keep: &[u64; KEEP_WORDS]) -> usize { + let mut n = 0u32; + let mut i = 0; + while i < KEEP_WORDS { + n += keep[i].count_ones(); + i += 1; + } + n as usize +} + +const fn align4(n: usize) -> usize { + (n + 3) & !3 +} + +const fn plan(src: &[u8], icons: &[&str]) -> Plan { + let (head, head_len) = find_table(src, b"head"); + let (maxp, maxp_len) = find_table(src, b"maxp"); + let (cmap, _) = find_table(src, b"cmap"); + let (loca, _) = find_table(src, b"loca"); + let (_, os2_len) = find_table(src, b"OS/2"); + let (_, hhea_len) = find_table(src, b"hhea"); + let (gsub, _) = opt_table(src, b"GSUB"); + + let num_glyphs = be16(src, maxp + 4) as usize; + if num_glyphs > MAX_GLYPHS { + panic!("egui-phosphor: source font has too many glyphs for the subsetter"); + } + let src_long = be16(src, head + 50) == 1; + let sub = cmap4(src, cmap); + + // 1. Requested codepoints -> kept glyph ids. .notdef is always kept. + let mut keep = [0u64; KEEP_WORDS]; + keep[0] |= 1; + let mut i = 0; + while i < icons.len() { + let g = lookup(src, sub, cp(icons[i])) as usize; + if g != 0 && g < num_glyphs { + keep[g / 64] |= 1u64 << (g % 64); + } + i += 1; + } + + // 2. Keep every ASCII-mapped glyph: the letters the `liga` ligatures start + // from, and what makes the autohinter treat the icons as Latin. + let seg_count_src = be16(src, sub + 6) as usize / 2; + let s_end = sub + 14; + let s_start = s_end + seg_count_src * 2 + 2; + let mut i = 0; + while i < seg_count_src { + let ss = be16(src, s_start + 2 * i) as u32; + let se = be16(src, s_end + 2 * i) as u32; + if ss == 0xFFFF { + break; + } + if ss < 0x80 { + let mut c = ss; + while c <= se && c < 0x80 { + let g = gid_in_seg(src, sub, seg_count_src, i, c as u16) as usize; + if g != 0 && g < num_glyphs { + keep[g / 64] |= 1u64 << (g % 64); + } + c += 1; + } + } + i += 1; + } + + // 3. glyf: kept records copied, each padded to 4 bytes. + let (glyf, _) = find_table(src, b"glyf"); + let mut glyf_len = 0; + let mut g = 0; + while g < num_glyphs { + if is_kept(&keep, g) { + let s = loca_at(src, loca, src_long, g); + let e = loca_at(src, loca, src_long, g + 1); + if e > s { + // Composite glyphs embed the ids of their components, which + // renumbering would invalidate. Phosphor has none. + if be16(src, glyf + s) >= 0x8000 { + panic!("egui-phosphor: composite glyphs are not supported"); + } + glyf_len += align4(e - s); + } + } + g += 1; + } + + // Glyphs are renumbered, so loca and hmtx cover only what survived. + let num_kept = count_kept(&keep); + + // Short loca stores offset/2 in a u16, so it caps out at 131070 bytes. + let long_loca = glyf_len > 0xFFFF * 2; + let loca_len = if long_loca { + 4 * (num_kept + 1) + } else { + 2 * (num_kept + 1) + }; + + let seg_count = count_segments(src, sub, &keep, num_glyphs) + 1; // + 0xFFFF terminator + let cmap_len = 12 + 16 + 8 * seg_count; + + let (lig_sets, gsub_len) = gsub_size(src, lig_subtable(src, gsub), &keep); + + let mut len = [0usize; NTABLES]; + len[T_GSUB] = gsub_len; + len[T_OS2] = os2_len; + len[T_CMAP] = cmap_len; + len[T_GLYF] = glyf_len; + len[T_HEAD] = head_len; + len[T_HHEA] = hhea_len; + len[T_HMTX] = 4 * num_kept; // every glyph gets a long metric + len[T_LOCA] = loca_len; + len[T_MAXP] = maxp_len; + + let mut off = [0usize; NTABLES]; + let mut pos = 12 + 16 * NTABLES; + let mut t = 0; + while t < NTABLES { + off[t] = pos; + pos += align4(len[t]); + t += 1; + } + + Plan { + keep, + num_glyphs, + num_kept, + long_loca, + seg_count, + lig_sets, + off, + len, + total: pos, + } +} + +/// Merged format 4 segments needed for every kept glyph reachable from `cmap`. +const fn count_segments(src: &[u8], sub: usize, keep: &[u64; KEEP_WORDS], ng: usize) -> usize { + let mut segs = 0; + let mut prev_c = 0u32; + let mut prev_g = 0u32; + let mut open = false; + let seg_count = be16(src, sub + 6) as usize / 2; + let end = sub + 14; + let start = end + seg_count * 2 + 2; + + let mut i = 0; + while i < seg_count { + let s = be16(src, start + 2 * i) as u32; + let e = be16(src, end + 2 * i) as u32; + if s == 0xFFFF { + break; + } + let mut c = s; + while c <= e { + let g = gid_in_seg(src, sub, seg_count, i, c as u16) as usize; + if g != 0 && g < ng && is_kept(keep, g) { + let g = new_gid(keep, g) as usize; + if open && c == prev_c + 1 && g as u32 == prev_g + 1 { + // extends the current run + } else { + segs += 1; + } + prev_c = c; + prev_g = g as u32; + open = true; + } + c += 1; + } + i += 1; + } + segs +} + +/// Whether a ligature's output glyph and every component glyph survived. +/// After renumbering a dangling reference would point at the wrong glyph. +const fn lig_kept(src: &[u8], lg: usize, keep: &[u64; KEEP_WORDS]) -> bool { + let lig_g = be16(src, lg) as usize; + if lig_g >= MAX_GLYPHS || !is_kept(keep, lig_g) { + return false; + } + let comp_c = be16(src, lg + 2) as usize; + let mut i = 1; + while i < comp_c { + let c = be16(src, lg + 2 + 2 * i) as usize; + if c >= MAX_GLYPHS || !is_kept(keep, c) { + return false; + } + i += 1; + } + true +} + +/// Bytes in one rebuilt `LigatureSet`, and how many ligatures it retains. +const fn lig_set_size(src: &[u8], lso: usize, keep: &[u64; KEEP_WORDS]) -> (usize, usize) { + let n = be16(src, lso) as usize; + let mut kept = 0; + let mut body = 0; + let mut j = 0; + while j < n { + let l = lso + be16(src, lso + 2 + 2 * j) as usize; + if lig_kept(src, l, keep) { + kept += 1; + body += 4 + 2 * (be16(src, l + 2) as usize - 1); + } + j += 1; + } + if kept == 0 { + return (0, 0); + } + (kept, 2 + 2 * kept + body) +} + +/// `(retained coverage entries, total GSUB size)`. Size 0 means "emit no GSUB". +const fn gsub_size(src: &[u8], so: usize, keep: &[u64; KEEP_WORDS]) -> (usize, usize) { + if so == usize::MAX { + return (0, 0); + } + let cov = so + be16(src, so + 2) as usize; + let n_sets = be16(src, so + 4) as usize; + let n_cov = cov_count(src, cov); + + let mut sets = 0; + let mut sets_bytes = 0; + let mut i = 0; + while i < n_sets && i < n_cov { + let lso = so + be16(src, so + 6 + 2 * i) as usize; + let (kept, bytes) = lig_set_size(src, lso, keep); + if kept > 0 { + sets += 1; + sets_bytes += bytes; + } + i += 1; + } + if sets == 0 { + return (0, 0); + } + let cov_bytes = 4 + 2 * sets; + let subtable = 6 + 2 * sets + cov_bytes + sets_bytes; + // header + ScriptList(20) + FeatureList(14) + LookupList(4 + 8 + subtable) + (sets, 10 + 20 + 14 + 4 + 8 + subtable) +} + +// ---------------------------------------------------------------------- emit + +/// Size in bytes of the font [`subset_into`] would build from `icons`. +/// +/// `icons` are the crate's icon constants, e.g. `regular::GEAR`. +pub const fn subset_len(src: &[u8], icons: &[&str]) -> usize { + plan(src, icons).total +} + +/// Build a font containing only `icons`. `N` must be [`subset_len`] for the +/// same arguments. +pub const fn subset_into(src: &[u8], icons: &[&str]) -> [u8; N] { + let p = plan(src, icons); + if p.total != N { + panic!("egui-phosphor: subset buffer size mismatch"); + } + let mut out = [0u8; N]; + emit(src, &p, &mut out); + out +} + +const fn put16(out: &mut [u8], o: usize, v: u16) { + out[o] = (v >> 8) as u8; + out[o + 1] = v as u8; +} + +const fn put32(out: &mut [u8], o: usize, v: u32) { + out[o] = (v >> 24) as u8; + out[o + 1] = (v >> 16) as u8; + out[o + 2] = (v >> 8) as u8; + out[o + 3] = v as u8; +} + +const fn copy(out: &mut [u8], dst: usize, src: &[u8], s: usize, n: usize) { + let mut i = 0; + while i < n { + out[dst + i] = src[s + i]; + i += 1; + } +} + +const fn emit(src: &[u8], p: &Plan, out: &mut [u8]) { + let (head, head_len) = find_table(src, b"head"); + let (maxp, maxp_len) = find_table(src, b"maxp"); + let (cmap, _) = find_table(src, b"cmap"); + let (loca, _) = find_table(src, b"loca"); + let (glyf, _) = find_table(src, b"glyf"); + let (os2, os2_len) = find_table(src, b"OS/2"); + let (hhea, hhea_len) = find_table(src, b"hhea"); + let (hmtx, _) = find_table(src, b"hmtx"); + let src_long = be16(src, head + 50) == 1; + let sub = cmap4(src, cmap); + + // --- offset table. GSUB may be absent, in which case its record is skipped. + let n_tables = if p.len[T_GSUB] == 0 { + NTABLES - 1 + } else { + NTABLES + }; + let mut p2 = 1; + while p2 * 2 <= n_tables { + p2 *= 2; + } + let mut es = 0; + let mut q = p2; + while q > 1 { + q /= 2; + es += 1; + } + put32(out, 0, 0x0001_0000); + put16(out, 4, n_tables as u16); + put16(out, 6, (p2 * 16) as u16); + put16(out, 8, es as u16); + put16(out, 10, (n_tables * 16 - p2 * 16) as u16); + + let mut t = 0; + let mut rec = 0; + while t < NTABLES { + if p.len[t] > 0 { + let r = 12 + 16 * rec; + out[r] = TAGS[t][0]; + out[r + 1] = TAGS[t][1]; + out[r + 2] = TAGS[t][2]; + out[r + 3] = TAGS[t][3]; + put32(out, r + 4, 0); // checksum: not validated by skrifa + put32(out, r + 8, p.off[t] as u32); + put32(out, r + 12, p.len[t] as u32); + rec += 1; + } + t += 1; + } + + // --- OS/2 is glyph-id free and copies verbatim + copy(out, p.off[T_OS2], src, os2, os2_len); + + // --- hhea and maxp carry glyph counts that renumbering changes + copy(out, p.off[T_HHEA], src, hhea, hhea_len); + put16(out, p.off[T_HHEA] + 34, p.num_kept as u16); // numberOfHMetrics + copy(out, p.off[T_MAXP], src, maxp, maxp_len); + put16(out, p.off[T_MAXP] + 4, p.num_kept as u16); // numGlyphs + + // --- hmtx, rebuilt in new-id order as all-long metrics + let src_nhm = be16(src, hhea + 34) as usize; + let mo = p.off[T_HMTX]; + let mut g = 0; + while g < p.num_glyphs { + if is_kept(&p.keep, g) { + let n = new_gid(&p.keep, g) as usize; + // Past numberOfHMetrics the advance repeats the last entry and the + // side bearings continue in a trailing array. + let (adv, lsb) = if g < src_nhm { + (be16(src, hmtx + 4 * g), be16(src, hmtx + 4 * g + 2)) + } else { + ( + be16(src, hmtx + 4 * (src_nhm - 1)), + be16(src, hmtx + 4 * src_nhm + 2 * (g - src_nhm)), + ) + }; + put16(out, mo + 4 * n, adv); + put16(out, mo + 4 * n + 2, lsb); + } + g += 1; + } + + // --- head, with indexToLocFormat patched to match the new loca + copy(out, p.off[T_HEAD], src, head, head_len); + put32(out, p.off[T_HEAD] + 8, 0); // checkSumAdjustment + put16(out, p.off[T_HEAD] + 50, if p.long_loca { 1 } else { 0 }); + + // --- glyf + loca, indexed by new id + let go = p.off[T_GLYF]; + let lo = p.off[T_LOCA]; + let mut cur = 0usize; + let mut n = 0usize; + let mut g = 0; + while g < p.num_glyphs { + if is_kept(&p.keep, g) { + if p.long_loca { + put32(out, lo + 4 * n, cur as u32); + } else { + put16(out, lo + 2 * n, (cur / 2) as u16); + } + let s = loca_at(src, loca, src_long, g); + let e = loca_at(src, loca, src_long, g + 1); + if e > s { + copy(out, go + cur, src, glyf + s, e - s); + cur += align4(e - s); + } + n += 1; + } + g += 1; + } + if p.long_loca { + put32(out, lo + 4 * n, cur as u32); + } else { + put16(out, lo + 2 * n, (cur / 2) as u16); + } + + emit_cmap(src, sub, p, out); + if p.len[T_GSUB] > 0 { + let (gsub, _) = opt_table(src, b"GSUB"); + emit_gsub(src, lig_subtable(src, gsub), p, out); + } +} + +const fn emit_cmap(src: &[u8], sub: usize, p: &Plan, out: &mut [u8]) { + let co = p.off[T_CMAP]; + put16(out, co, 0); + put16(out, co + 2, 1); + put16(out, co + 4, 3); + put16(out, co + 6, 1); + put32(out, co + 8, 12); + + let f = co + 12; + let n = p.seg_count; + put16(out, f, 4); + put16(out, f + 2, (16 + 8 * n) as u16); + put16(out, f + 4, 0); + put16(out, f + 6, (n * 2) as u16); + let mut p2 = 1; + while p2 * 2 <= n { + p2 *= 2; + } + put16(out, f + 8, (p2 * 2) as u16); + let mut es = 0; + let mut q = p2; + while q > 1 { + q /= 2; + es += 1; + } + put16(out, f + 10, es as u16); + put16(out, f + 12, (n * 2 - p2 * 2) as u16); + + let end_a = f + 14; + let start_a = end_a + n * 2 + 2; + let arrays = SegArrays { + end: end_a, + start: start_a, + delta: start_a + n * 2, + range: start_a + n * 4, + }; + put16(out, end_a + n * 2, 0); // reservedPad + + // Re-walk the source cmap, emitting merged segments in codepoint order. + let mut seg = 0; + let mut run_start = 0u32; + let mut run_start_g = 0u32; + let mut prev_c = 0u32; + let mut prev_g = 0u32; + let mut open = false; + + let src_segs = be16(src, sub + 6) as usize / 2; + let s_end = sub + 14; + let s_start = s_end + src_segs * 2 + 2; + let mut i = 0; + while i < src_segs { + let ss = be16(src, s_start + 2 * i) as u32; + let se = be16(src, s_end + 2 * i) as u32; + if ss == 0xFFFF { + break; + } + let mut c = ss; + while c <= se { + let gid = gid_in_seg(src, sub, src_segs, i, c as u16) as usize; + if gid != 0 && gid < p.num_glyphs && is_kept(&p.keep, gid) { + let gid = new_gid(&p.keep, gid) as usize; + if open && c == prev_c + 1 && gid as u32 == prev_g + 1 { + // extend + } else { + if open { + arrays.write(out, seg, run_start, prev_c, run_start_g); + seg += 1; + } + run_start = c; + run_start_g = gid as u32; + } + prev_c = c; + prev_g = gid as u32; + open = true; + } + c += 1; + } + i += 1; + } + if open { + arrays.write(out, seg, run_start, prev_c, run_start_g); + seg += 1; + } + put16(out, arrays.end + 2 * seg, 0xFFFF); + put16(out, arrays.start + 2 * seg, 0xFFFF); + put16(out, arrays.delta + 2 * seg, 1); + put16(out, arrays.range + 2 * seg, 0); +} + +/// Base offsets of the four parallel arrays in a format 4 subtable. +struct SegArrays { + end: usize, + start: usize, + delta: usize, + range: usize, +} + +impl SegArrays { + /// Codepoint and glyph id advance together within a run, so `idDelta` is + /// constant across it and `idRangeOffset` is always 0. + const fn write(&self, out: &mut [u8], seg: usize, start_c: u32, end_c: u32, start_g: u32) { + put16(out, self.end + 2 * seg, end_c as u16); + put16(out, self.start + 2 * seg, start_c as u16); + put16( + out, + self.delta + 2 * seg, + (start_g as u16).wrapping_sub(start_c as u16), + ); + put16(out, self.range + 2 * seg, 0); + } +} + +/// Rebuild `GSUB` as one DFLT script / `liga` feature / LigatureSubst lookup +/// holding only the ligatures whose output glyph survived. +const fn emit_gsub(src: &[u8], so: usize, p: &Plan, out: &mut [u8]) { + let base = p.off[T_GSUB]; + let sets = p.lig_sets; + + let script_o = 10; + let feature_o = script_o + 20; + let lookup_o = feature_o + 14; + put16(out, base, 1); + put16(out, base + 2, 0); + put16(out, base + 4, script_o as u16); + put16(out, base + 6, feature_o as u16); + put16(out, base + 8, lookup_o as u16); + + // ScriptList: 1 record, DFLT, default LangSys referencing feature 0. + let s = base + script_o; + put16(out, s, 1); + out[s + 2] = b'D'; + out[s + 3] = b'F'; + out[s + 4] = b'L'; + out[s + 5] = b'T'; + put16(out, s + 6, 8); + put16(out, s + 8, 4); // defaultLangSysOffset + put16(out, s + 10, 0); // langSysCount + put16(out, s + 12, 0); // lookupOrderOffset + put16(out, s + 14, 0xFFFF); // requiredFeatureIndex + put16(out, s + 16, 1); // featureIndexCount + put16(out, s + 18, 0); + + // FeatureList: 1 record, `liga`, referencing lookup 0. + let f = base + feature_o; + put16(out, f, 1); + out[f + 2] = b'l'; + out[f + 3] = b'i'; + out[f + 4] = b'g'; + out[f + 5] = b'a'; + put16(out, f + 6, 8); + put16(out, f + 8, 0); // featureParamsOffset + put16(out, f + 10, 1); // lookupIndexCount + put16(out, f + 12, 0); + + // LookupList: 1 lookup, type 4, 1 subtable. + let l = base + lookup_o; + put16(out, l, 1); + put16(out, l + 2, 4); + let lk = l + 4; + put16(out, lk, 4); // lookupType = LigatureSubst + put16(out, lk + 2, 0); // lookupFlag + put16(out, lk + 4, 1); // subTableCount + put16(out, lk + 6, 8); + + // LigatureSubst format 1. + let st = lk + 8; + let cov_off = 6 + 2 * sets; + put16(out, st, 1); + put16(out, st + 2, cov_off as u16); + put16(out, st + 4, sets as u16); + + let cov = st + cov_off; + put16(out, cov, 1); + put16(out, cov + 2, sets as u16); + + // Walk the source sets in coverage order, copying surviving ligatures. + let src_cov = so + be16(src, so + 2) as usize; + let n_sets = be16(src, so + 4) as usize; + let n_cov = cov_count(src, src_cov); + let mut body = cov_off + 4 + 2 * sets; // first LigatureSet, relative to `st` + let mut k = 0; + let mut i = 0; + while i < n_sets && i < n_cov { + let lso = so + be16(src, so + 6 + 2 * i) as usize; + let (kept, bytes) = lig_set_size(src, lso, &p.keep); + if kept > 0 { + put16( + out, + cov + 4 + 2 * k, + new_gid(&p.keep, cov_glyph(src, src_cov, i) as usize), + ); + put16(out, st + 6 + 2 * k, body as u16); + + let dst = st + body; + put16(out, dst, kept as u16); + let mut w = 2 + 2 * kept; // running offset within this LigatureSet + let mut m = 0; + let n = be16(src, lso) as usize; + let mut j = 0; + while j < n { + let lg = lso + be16(src, lso + 2 + 2 * j) as usize; + let comp_c = be16(src, lg + 2) as usize; + if lig_kept(src, lg, &p.keep) { + put16(out, dst + 2 + 2 * m, w as u16); + put16(out, dst + w, new_gid(&p.keep, be16(src, lg) as usize)); + put16(out, dst + w + 2, comp_c as u16); + let mut c = 1; + while c < comp_c { + let old = be16(src, lg + 2 + 2 * c) as usize; + put16(out, dst + w + 2 + 2 * c, new_gid(&p.keep, old)); + c += 1; + } + w += 4 + 2 * (comp_c - 1); + m += 1; + } + j += 1; + } + body += bytes; + k += 1; + } + i += 1; + } +} + +// -------------------------------------------------------------------- macro + +/// Build a font containing only the icons you name. +/// +/// The subset is computed during const evaluation, so the full ~490 KB source +/// font never reaches your binary — only the glyphs you asked for do. There is +/// no build script and no proc macro involved. +/// +/// Each `use` line becomes a submodule holding that variant's icons and its own +/// font: +/// +/// ``` +/// egui_phosphor::subset! { +/// /// Icons used by this app. +/// pub mod icons { +/// use regular::{GEAR, HOUSE, TRASH}; +/// } +/// } +/// +/// # fn demo(fonts: &mut egui::FontDefinitions) { +/// icons::regular::add_to_fonts(fonts); +/// let label = format!("{} Settings", icons::regular::GEAR); +/// # let _ = label; +/// # } +/// ``` +/// +/// # Using more than one variant +/// +/// All variants share codepoints, so `regular::GEAR` and `fill::GEAR` are the +/// same `&str`, and proportional text can only resolve it to one of them. Add +/// the first with [`add_to_fonts`] and the rest with [`add_as_family`], then +/// select those by family at the call site. +/// +/// ``` +/// egui_phosphor::subset! { +/// pub mod icons { +/// use regular::{GEAR, HOUSE}; +/// use fill::{GEAR, HEART}; +/// } +/// } +/// +/// # fn demo(fonts: &mut egui::FontDefinitions) -> egui::RichText { +/// icons::regular::add_to_fonts(fonts); // inline with ordinary text +/// icons::fill::add_as_family(fonts); // selected explicitly +/// +/// egui::RichText::new(icons::fill::GEAR).family(icons::fill::family()) +/// # } +/// ``` +/// +/// [`add_to_fonts`]: crate::add_font_bytes_to_fonts +/// [`add_as_family`]: crate::add_font_bytes_as_family +#[macro_export] +macro_rules! subset { + ( + $(#[$attr:meta])* $vis:vis mod $name:ident { + $(use $variant:ident::{$($icon:ident),* $(,)?};)* + } + ) => { + $(#[$attr])* + $vis mod $name { + $( + pub mod $variant { + pub use $crate::variants::$variant::{$($icon),*}; + + const ICONS: &[&str] = &[$($crate::variants::$variant::$icon),*]; + const SOURCE: &[u8] = $crate::variants::bytes::$variant::FONT; + + /// Size of [`FONT`], for naming its type in const contexts. + pub const FONT_LEN: usize = $crate::subset::subset_len(SOURCE, ICONS); + + /// The subsetted font, containing only the icons named + /// above. A complete, valid TTF. + pub static FONT: [u8; FONT_LEN] = + $crate::subset::subset_into::(SOURCE, ICONS); + + /// The name this font is registered under: the full path of + /// this module, e.g. `my_app::icons::regular`, so subsets in + /// different modules or crates can coexist. + pub const FONT_NAME: &str = module_path!(); + + /// The family these icons are guaranteed to render from, + /// whichever other variants are also loaded. + pub fn family() -> $crate::egui::FontFamily { + $crate::egui::FontFamily::Name(FONT_NAME.into()) + } + + /// Add this subset as a fallback for proportional text, so + /// its icons can be used inline in ordinary labels, and + /// register [`family`]. + pub fn add_to_fonts(fonts: &mut $crate::egui::FontDefinitions) { + $crate::add_font_bytes_to_fonts(fonts, FONT_NAME, &FONT); + } + + /// Shorthand for a [`RichText`](egui::RichText) using + /// [`family`]. + /// + /// ```ignore + /// ui.label(icons::fill::rich(format!("{} Settings", icons::fill::GEAR))); + /// ``` + pub fn rich(text: impl Into) -> $crate::egui::RichText { + $crate::egui::RichText::new(text).family(family()) + } + + /// Register [`family`] only, leaving the proportional fonts + /// untouched. Use this for every variant after the first. + pub fn add_as_family(fonts: &mut $crate::egui::FontDefinitions) { + $crate::add_font_bytes_as_family(fonts, FONT_NAME, &FONT); + } + } + )* + } + }; +} diff --git a/vendor/egui-phosphor/src/variants/bold.rs b/vendor/egui-phosphor/src/variants/bold.rs new file mode 100644 index 00000000..4b5cc924 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/bold.rs @@ -0,0 +1 @@ +pub use super::codepoints::*; diff --git a/vendor/egui-phosphor/src/variants/codepoints.rs b/vendor/egui-phosphor/src/variants/codepoints.rs new file mode 100644 index 00000000..086a86e6 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/codepoints.rs @@ -0,0 +1,3064 @@ +#![allow(unused)] +pub const ACORN: &str = "\u{EB9A}"; +pub const ADDRESS_BOOK: &str = "\u{E6F8}"; +pub const ADDRESS_BOOK_TABS: &str = "\u{EE4E}"; +pub const AIR_TRAFFIC_CONTROL: &str = "\u{ECD8}"; +pub const AIRPLANE: &str = "\u{E002}"; +pub const AIRPLANE_IN_FLIGHT: &str = "\u{E4FE}"; +pub const AIRPLANE_LANDING: &str = "\u{E502}"; +pub const AIRPLANE_TAKEOFF: &str = "\u{E504}"; +pub const AIRPLANE_TAXIING: &str = "\u{E500}"; +pub const AIRPLANE_TILT: &str = "\u{E5D6}"; +pub const AIRPLAY: &str = "\u{E004}"; +pub const ALARM: &str = "\u{E006}"; +pub const ALIEN: &str = "\u{E8A6}"; +pub const ALIGN_BOTTOM: &str = "\u{E506}"; +pub const ALIGN_BOTTOM_SIMPLE: &str = "\u{EB0C}"; +pub const ALIGN_CENTER_HORIZONTAL: &str = "\u{E50A}"; +pub const ALIGN_CENTER_HORIZONTAL_SIMPLE: &str = "\u{EB0E}"; +pub const ALIGN_CENTER_VERTICAL: &str = "\u{E50C}"; +pub const ALIGN_CENTER_VERTICAL_SIMPLE: &str = "\u{EB10}"; +pub const ALIGN_LEFT: &str = "\u{E50E}"; +pub const ALIGN_LEFT_SIMPLE: &str = "\u{EAEE}"; +pub const ALIGN_RIGHT: &str = "\u{E510}"; +pub const ALIGN_RIGHT_SIMPLE: &str = "\u{EB12}"; +pub const ALIGN_TOP: &str = "\u{E512}"; +pub const ALIGN_TOP_SIMPLE: &str = "\u{EB14}"; +pub const AMAZON_LOGO: &str = "\u{E96C}"; +pub const AMBULANCE: &str = "\u{E572}"; +pub const ANCHOR: &str = "\u{E514}"; +pub const ANCHOR_SIMPLE: &str = "\u{E5D8}"; +pub const ANDROID_LOGO: &str = "\u{E008}"; +pub const ANGLE: &str = "\u{E7BC}"; +pub const ANGULAR_LOGO: &str = "\u{EB80}"; +pub const APERTURE: &str = "\u{E00A}"; +pub const APP_STORE_LOGO: &str = "\u{E974}"; +pub const APP_WINDOW: &str = "\u{E5DA}"; +pub const APPLE_LOGO: &str = "\u{E516}"; +pub const APPLE_PODCASTS_LOGO: &str = "\u{EB96}"; +pub const APPROXIMATE_EQUALS: &str = "\u{EDAA}"; +pub const ARCHIVE: &str = "\u{E00C}"; +pub const ARMCHAIR: &str = "\u{E012}"; +pub const ARROW_ARC_LEFT: &str = "\u{E014}"; +pub const ARROW_ARC_RIGHT: &str = "\u{E016}"; +pub const ARROW_BEND_DOUBLE_UP_LEFT: &str = "\u{E03A}"; +pub const ARROW_BEND_DOUBLE_UP_RIGHT: &str = "\u{E03C}"; +pub const ARROW_BEND_DOWN_LEFT: &str = "\u{E018}"; +pub const ARROW_BEND_DOWN_RIGHT: &str = "\u{E01A}"; +pub const ARROW_BEND_LEFT_DOWN: &str = "\u{E01C}"; +pub const ARROW_BEND_LEFT_UP: &str = "\u{E01E}"; +pub const ARROW_BEND_RIGHT_DOWN: &str = "\u{E020}"; +pub const ARROW_BEND_RIGHT_UP: &str = "\u{E022}"; +pub const ARROW_BEND_UP_LEFT: &str = "\u{E024}"; +pub const ARROW_BEND_UP_RIGHT: &str = "\u{E026}"; +pub const ARROW_CIRCLE_DOWN: &str = "\u{E028}"; +pub const ARROW_CIRCLE_DOWN_LEFT: &str = "\u{E02A}"; +pub const ARROW_CIRCLE_DOWN_RIGHT: &str = "\u{E02C}"; +pub const ARROW_CIRCLE_LEFT: &str = "\u{E05A}"; +pub const ARROW_CIRCLE_RIGHT: &str = "\u{E02E}"; +pub const ARROW_CIRCLE_UP: &str = "\u{E030}"; +pub const ARROW_CIRCLE_UP_LEFT: &str = "\u{E032}"; +pub const ARROW_CIRCLE_UP_RIGHT: &str = "\u{E034}"; +pub const ARROW_CLOCKWISE: &str = "\u{E036}"; +pub const ARROW_COUNTER_CLOCKWISE: &str = "\u{E038}"; +pub const ARROW_DOWN: &str = "\u{E03E}"; +pub const ARROW_DOWN_LEFT: &str = "\u{E040}"; +pub const ARROW_DOWN_RIGHT: &str = "\u{E042}"; +pub const ARROW_ELBOW_DOWN_LEFT: &str = "\u{E044}"; +pub const ARROW_ELBOW_DOWN_RIGHT: &str = "\u{E046}"; +pub const ARROW_ELBOW_LEFT: &str = "\u{E048}"; +pub const ARROW_ELBOW_LEFT_DOWN: &str = "\u{E04A}"; +pub const ARROW_ELBOW_LEFT_UP: &str = "\u{E04C}"; +pub const ARROW_ELBOW_RIGHT: &str = "\u{E04E}"; +pub const ARROW_ELBOW_RIGHT_DOWN: &str = "\u{E050}"; +pub const ARROW_ELBOW_RIGHT_UP: &str = "\u{E052}"; +pub const ARROW_ELBOW_UP_LEFT: &str = "\u{E054}"; +pub const ARROW_ELBOW_UP_RIGHT: &str = "\u{E056}"; +pub const ARROW_FAT_DOWN: &str = "\u{E518}"; +pub const ARROW_FAT_LEFT: &str = "\u{E51A}"; +pub const ARROW_FAT_LINE_DOWN: &str = "\u{E51C}"; +pub const ARROW_FAT_LINE_LEFT: &str = "\u{E51E}"; +pub const ARROW_FAT_LINE_RIGHT: &str = "\u{E520}"; +pub const ARROW_FAT_LINE_UP: &str = "\u{E522}"; +pub const ARROW_FAT_LINES_DOWN: &str = "\u{E524}"; +pub const ARROW_FAT_LINES_LEFT: &str = "\u{E526}"; +pub const ARROW_FAT_LINES_RIGHT: &str = "\u{E528}"; +pub const ARROW_FAT_LINES_UP: &str = "\u{E52A}"; +pub const ARROW_FAT_RIGHT: &str = "\u{E52C}"; +pub const ARROW_FAT_UP: &str = "\u{E52E}"; +pub const ARROW_LEFT: &str = "\u{E058}"; +pub const ARROW_LINE_DOWN: &str = "\u{E05C}"; +pub const ARROW_LINE_DOWN_LEFT: &str = "\u{E05E}"; +pub const ARROW_LINE_DOWN_RIGHT: &str = "\u{E060}"; +pub const ARROW_LINE_LEFT: &str = "\u{E062}"; +pub const ARROW_LINE_RIGHT: &str = "\u{E064}"; +pub const ARROW_LINE_UP: &str = "\u{E066}"; +pub const ARROW_LINE_UP_LEFT: &str = "\u{E068}"; +pub const ARROW_LINE_UP_RIGHT: &str = "\u{E06A}"; +pub const ARROW_RIGHT: &str = "\u{E06C}"; +pub const ARROW_SQUARE_DOWN: &str = "\u{E06E}"; +pub const ARROW_SQUARE_DOWN_LEFT: &str = "\u{E070}"; +pub const ARROW_SQUARE_DOWN_RIGHT: &str = "\u{E072}"; +pub const ARROW_SQUARE_IN: &str = "\u{E5DC}"; +pub const ARROW_SQUARE_LEFT: &str = "\u{E074}"; +pub const ARROW_SQUARE_OUT: &str = "\u{E5DE}"; +pub const ARROW_SQUARE_RIGHT: &str = "\u{E076}"; +pub const ARROW_SQUARE_UP: &str = "\u{E078}"; +pub const ARROW_SQUARE_UP_LEFT: &str = "\u{E07A}"; +pub const ARROW_SQUARE_UP_RIGHT: &str = "\u{E07C}"; +pub const ARROW_U_DOWN_LEFT: &str = "\u{E07E}"; +pub const ARROW_U_DOWN_RIGHT: &str = "\u{E080}"; +pub const ARROW_U_LEFT_DOWN: &str = "\u{E082}"; +pub const ARROW_U_LEFT_UP: &str = "\u{E084}"; +pub const ARROW_U_RIGHT_DOWN: &str = "\u{E086}"; +pub const ARROW_U_RIGHT_UP: &str = "\u{E088}"; +pub const ARROW_U_UP_LEFT: &str = "\u{E08A}"; +pub const ARROW_U_UP_RIGHT: &str = "\u{E08C}"; +pub const ARROW_UP: &str = "\u{E08E}"; +pub const ARROW_UP_LEFT: &str = "\u{E090}"; +pub const ARROW_UP_RIGHT: &str = "\u{E092}"; +pub const ARROWS_CLOCKWISE: &str = "\u{E094}"; +pub const ARROWS_COUNTER_CLOCKWISE: &str = "\u{E096}"; +pub const ARROWS_DOWN_UP: &str = "\u{E098}"; +pub const ARROWS_HORIZONTAL: &str = "\u{EB06}"; +pub const ARROWS_IN: &str = "\u{E09A}"; +pub const ARROWS_IN_CARDINAL: &str = "\u{E09C}"; +pub const ARROWS_IN_LINE_HORIZONTAL: &str = "\u{E530}"; +pub const ARROWS_IN_LINE_VERTICAL: &str = "\u{E532}"; +pub const ARROWS_IN_SIMPLE: &str = "\u{E09E}"; +pub const ARROWS_LEFT_RIGHT: &str = "\u{E0A0}"; +pub const ARROWS_MERGE: &str = "\u{ED3E}"; +pub const ARROWS_OUT: &str = "\u{E0A2}"; +pub const ARROWS_OUT_CARDINAL: &str = "\u{E0A4}"; +pub const ARROWS_OUT_LINE_HORIZONTAL: &str = "\u{E534}"; +pub const ARROWS_OUT_LINE_VERTICAL: &str = "\u{E536}"; +pub const ARROWS_OUT_SIMPLE: &str = "\u{E0A6}"; +pub const ARROWS_SPLIT: &str = "\u{ED3C}"; +pub const ARROWS_VERTICAL: &str = "\u{EB04}"; +pub const ARTICLE: &str = "\u{E0A8}"; +pub const ARTICLE_MEDIUM: &str = "\u{E5E0}"; +pub const ARTICLE_NY_TIMES: &str = "\u{E5E2}"; +pub const ASCLEPIUS: &str = "\u{EE34}"; +pub const CADUCEUS: &str = "\u{EE34}"; +pub const ASTERISK: &str = "\u{E0AA}"; +pub const ASTERISK_SIMPLE: &str = "\u{E832}"; +pub const AT: &str = "\u{E0AC}"; +pub const ATOM: &str = "\u{E5E4}"; +pub const AVOCADO: &str = "\u{EE04}"; +pub const AXE: &str = "\u{E9FC}"; +pub const BABY: &str = "\u{E774}"; +pub const BABY_CARRIAGE: &str = "\u{E818}"; +pub const BACKPACK: &str = "\u{E922}"; +pub const BACKSPACE: &str = "\u{E0AE}"; +pub const BAG: &str = "\u{E0B0}"; +pub const BAG_SIMPLE: &str = "\u{E5E6}"; +pub const BALLOON: &str = "\u{E76C}"; +pub const BANDAIDS: &str = "\u{E0B2}"; +pub const BANK: &str = "\u{E0B4}"; +pub const BARBELL: &str = "\u{E0B6}"; +pub const BARCODE: &str = "\u{E0B8}"; +pub const BARN: &str = "\u{EC72}"; +pub const BARRICADE: &str = "\u{E948}"; +pub const BASEBALL: &str = "\u{E71A}"; +pub const BASEBALL_CAP: &str = "\u{EA28}"; +pub const BASEBALL_HELMET: &str = "\u{EE4A}"; +pub const BASKET: &str = "\u{E964}"; +pub const BASKETBALL: &str = "\u{E724}"; +pub const BATHTUB: &str = "\u{E81E}"; +pub const BATTERY_CHARGING: &str = "\u{E0BA}"; +pub const BATTERY_CHARGING_VERTICAL: &str = "\u{E0BC}"; +pub const BATTERY_EMPTY: &str = "\u{E0BE}"; +pub const BATTERY_FULL: &str = "\u{E0C0}"; +pub const BATTERY_HIGH: &str = "\u{E0C2}"; +pub const BATTERY_LOW: &str = "\u{E0C4}"; +pub const BATTERY_MEDIUM: &str = "\u{E0C6}"; +pub const BATTERY_PLUS: &str = "\u{E808}"; +pub const BATTERY_PLUS_VERTICAL: &str = "\u{EC50}"; +pub const BATTERY_VERTICAL_EMPTY: &str = "\u{E7C6}"; +pub const BATTERY_VERTICAL_FULL: &str = "\u{E7C4}"; +pub const BATTERY_VERTICAL_HIGH: &str = "\u{E7C2}"; +pub const BATTERY_VERTICAL_LOW: &str = "\u{E7BE}"; +pub const BATTERY_VERTICAL_MEDIUM: &str = "\u{E7C0}"; +pub const BATTERY_WARNING: &str = "\u{E0C8}"; +pub const BATTERY_WARNING_VERTICAL: &str = "\u{E0CA}"; +pub const BEACH_BALL: &str = "\u{ED24}"; +pub const BEANIE: &str = "\u{EA2A}"; +pub const BED: &str = "\u{E0CC}"; +pub const BEER_BOTTLE: &str = "\u{E7B0}"; +pub const BEER_STEIN: &str = "\u{EB62}"; +pub const BEHANCE_LOGO: &str = "\u{E7F4}"; +pub const BELL: &str = "\u{E0CE}"; +pub const BELL_RINGING: &str = "\u{E5E8}"; +pub const BELL_SIMPLE: &str = "\u{E0D0}"; +pub const BELL_SIMPLE_RINGING: &str = "\u{E5EA}"; +pub const BELL_SIMPLE_SLASH: &str = "\u{E0D2}"; +pub const BELL_SIMPLE_Z: &str = "\u{E5EC}"; +pub const BELL_SLASH: &str = "\u{E0D4}"; +pub const BELL_Z: &str = "\u{E5EE}"; +pub const BELT: &str = "\u{EA2C}"; +pub const BEZIER_CURVE: &str = "\u{EB00}"; +pub const BICYCLE: &str = "\u{E0D6}"; +pub const BINARY: &str = "\u{EE60}"; +pub const BINOCULARS: &str = "\u{EA64}"; +pub const BIOHAZARD: &str = "\u{E9E0}"; +pub const BIRD: &str = "\u{E72C}"; +pub const BLUEPRINT: &str = "\u{EDA0}"; +pub const BLUETOOTH: &str = "\u{E0DA}"; +pub const BLUETOOTH_CONNECTED: &str = "\u{E0DC}"; +pub const BLUETOOTH_SLASH: &str = "\u{E0DE}"; +pub const BLUETOOTH_X: &str = "\u{E0E0}"; +pub const BOAT: &str = "\u{E786}"; +pub const BOMB: &str = "\u{EE0A}"; +pub const BONE: &str = "\u{E7F2}"; +pub const BOOK: &str = "\u{E0E2}"; +pub const BOOK_BOOKMARK: &str = "\u{E0E4}"; +pub const BOOK_OPEN: &str = "\u{E0E6}"; +pub const BOOK_OPEN_TEXT: &str = "\u{E8F2}"; +pub const BOOK_OPEN_USER: &str = "\u{EDE0}"; +pub const BOOKMARK: &str = "\u{E0E8}"; +pub const BOOKMARK_SIMPLE: &str = "\u{E0EA}"; +pub const BOOKMARKS: &str = "\u{E0EC}"; +pub const BOOKMARKS_SIMPLE: &str = "\u{E5F0}"; +pub const BOOKS: &str = "\u{E758}"; +pub const BOOT: &str = "\u{ECCA}"; +pub const BOULES: &str = "\u{E722}"; +pub const BOUNDING_BOX: &str = "\u{E6CE}"; +pub const BOWL_FOOD: &str = "\u{EAA4}"; +pub const BOWL_STEAM: &str = "\u{E8E4}"; +pub const BOWLING_BALL: &str = "\u{EA34}"; +pub const BOX_ARROW_DOWN: &str = "\u{E00E}"; +pub const ARCHIVE_BOX: &str = "\u{E00E}"; +pub const BOX_ARROW_UP: &str = "\u{EE54}"; +pub const BOXING_GLOVE: &str = "\u{EA36}"; +pub const BRACKETS_ANGLE: &str = "\u{E862}"; +pub const BRACKETS_CURLY: &str = "\u{E860}"; +pub const BRACKETS_ROUND: &str = "\u{E864}"; +pub const BRACKETS_SQUARE: &str = "\u{E85E}"; +pub const BRAIN: &str = "\u{E74E}"; +pub const BRANDY: &str = "\u{E6B4}"; +pub const BREAD: &str = "\u{E81C}"; +pub const BRIDGE: &str = "\u{EA68}"; +pub const BRIEFCASE: &str = "\u{E0EE}"; +pub const BRIEFCASE_METAL: &str = "\u{E5F2}"; +pub const BROADCAST: &str = "\u{E0F2}"; +pub const BROOM: &str = "\u{EC54}"; +pub const BROWSER: &str = "\u{E0F4}"; +pub const BROWSERS: &str = "\u{E0F6}"; +pub const BUG: &str = "\u{E5F4}"; +pub const BUG_BEETLE: &str = "\u{E5F6}"; +pub const BUG_DROID: &str = "\u{E5F8}"; +pub const BUILDING: &str = "\u{E100}"; +pub const BUILDING_APARTMENT: &str = "\u{E0FE}"; +pub const BUILDING_OFFICE: &str = "\u{E0FF}"; +pub const BUILDINGS: &str = "\u{E102}"; +pub const BULLDOZER: &str = "\u{EC6C}"; +pub const BUS: &str = "\u{E106}"; +pub const BUTTERFLY: &str = "\u{EA6E}"; +pub const CABLE_CAR: &str = "\u{E49C}"; +pub const CACTUS: &str = "\u{E918}"; +pub const CAKE: &str = "\u{E780}"; +pub const CALCULATOR: &str = "\u{E538}"; +pub const CALENDAR: &str = "\u{E108}"; +pub const CALENDAR_BLANK: &str = "\u{E10A}"; +pub const CALENDAR_CHECK: &str = "\u{E712}"; +pub const CALENDAR_DOT: &str = "\u{E7B2}"; +pub const CALENDAR_DOTS: &str = "\u{E7B4}"; +pub const CALENDAR_HEART: &str = "\u{E8B0}"; +pub const CALENDAR_MINUS: &str = "\u{EA14}"; +pub const CALENDAR_PLUS: &str = "\u{E714}"; +pub const CALENDAR_SLASH: &str = "\u{EA12}"; +pub const CALENDAR_STAR: &str = "\u{E8B2}"; +pub const CALENDAR_X: &str = "\u{E10C}"; +pub const CALL_BELL: &str = "\u{E7DE}"; +pub const CAMERA: &str = "\u{E10E}"; +pub const CAMERA_PLUS: &str = "\u{EC58}"; +pub const CAMERA_ROTATE: &str = "\u{E7A4}"; +pub const CAMERA_SLASH: &str = "\u{E110}"; +pub const CAMPFIRE: &str = "\u{E9D8}"; +pub const CAR: &str = "\u{E112}"; +pub const CAR_BATTERY: &str = "\u{EE30}"; +pub const CAR_PROFILE: &str = "\u{E8CC}"; +pub const CAR_SIMPLE: &str = "\u{E114}"; +pub const CARDHOLDER: &str = "\u{E5FA}"; +pub const CARDS: &str = "\u{E0F8}"; +pub const CARDS_THREE: &str = "\u{EE50}"; +pub const CARET_CIRCLE_DOUBLE_DOWN: &str = "\u{E116}"; +pub const CARET_CIRCLE_DOUBLE_LEFT: &str = "\u{E118}"; +pub const CARET_CIRCLE_DOUBLE_RIGHT: &str = "\u{E11A}"; +pub const CARET_CIRCLE_DOUBLE_UP: &str = "\u{E11C}"; +pub const CARET_CIRCLE_DOWN: &str = "\u{E11E}"; +pub const CARET_CIRCLE_LEFT: &str = "\u{E120}"; +pub const CARET_CIRCLE_RIGHT: &str = "\u{E122}"; +pub const CARET_CIRCLE_UP: &str = "\u{E124}"; +pub const CARET_CIRCLE_UP_DOWN: &str = "\u{E13E}"; +pub const CARET_DOUBLE_DOWN: &str = "\u{E126}"; +pub const CARET_DOUBLE_LEFT: &str = "\u{E128}"; +pub const CARET_DOUBLE_RIGHT: &str = "\u{E12A}"; +pub const CARET_DOUBLE_UP: &str = "\u{E12C}"; +pub const CARET_DOWN: &str = "\u{E136}"; +pub const CARET_LEFT: &str = "\u{E138}"; +pub const CARET_LINE_DOWN: &str = "\u{E134}"; +pub const CARET_LINE_LEFT: &str = "\u{E132}"; +pub const CARET_LINE_RIGHT: &str = "\u{E130}"; +pub const CARET_LINE_UP: &str = "\u{E12E}"; +pub const CARET_RIGHT: &str = "\u{E13A}"; +pub const CARET_UP: &str = "\u{E13C}"; +pub const CARET_UP_DOWN: &str = "\u{E140}"; +pub const CARROT: &str = "\u{ED38}"; +pub const CASH_REGISTER: &str = "\u{ED80}"; +pub const CASSETTE_TAPE: &str = "\u{ED2E}"; +pub const CASTLE_TURRET: &str = "\u{E9D0}"; +pub const CAT: &str = "\u{E748}"; +pub const CELL_SIGNAL_FULL: &str = "\u{E142}"; +pub const CELL_SIGNAL_HIGH: &str = "\u{E144}"; +pub const CELL_SIGNAL_LOW: &str = "\u{E146}"; +pub const CELL_SIGNAL_MEDIUM: &str = "\u{E148}"; +pub const CELL_SIGNAL_NONE: &str = "\u{E14A}"; +pub const CELL_SIGNAL_SLASH: &str = "\u{E14C}"; +pub const CELL_SIGNAL_X: &str = "\u{E14E}"; +pub const CELL_TOWER: &str = "\u{EBAA}"; +pub const CERTIFICATE: &str = "\u{E766}"; +pub const CHAIR: &str = "\u{E950}"; +pub const CHALKBOARD: &str = "\u{E5FC}"; +pub const CHALKBOARD_SIMPLE: &str = "\u{E5FE}"; +pub const CHALKBOARD_TEACHER: &str = "\u{E600}"; +pub const CHAMPAGNE: &str = "\u{EACA}"; +pub const CHARGING_STATION: &str = "\u{E8D0}"; +pub const CHART_BAR: &str = "\u{E150}"; +pub const CHART_BAR_HORIZONTAL: &str = "\u{E152}"; +pub const CHART_DONUT: &str = "\u{EAA6}"; +pub const CHART_LINE: &str = "\u{E154}"; +pub const CHART_LINE_DOWN: &str = "\u{E8B6}"; +pub const CHART_LINE_UP: &str = "\u{E156}"; +pub const CHART_PIE: &str = "\u{E158}"; +pub const CHART_PIE_SLICE: &str = "\u{E15A}"; +pub const CHART_POLAR: &str = "\u{EAA8}"; +pub const CHART_SCATTER: &str = "\u{EAAC}"; +pub const CHAT: &str = "\u{E15C}"; +pub const CHAT_CENTERED: &str = "\u{E160}"; +pub const CHAT_CENTERED_DOTS: &str = "\u{E164}"; +pub const CHAT_CENTERED_SLASH: &str = "\u{E162}"; +pub const CHAT_CENTERED_TEXT: &str = "\u{E166}"; +pub const CHAT_CIRCLE: &str = "\u{E168}"; +pub const CHAT_CIRCLE_DOTS: &str = "\u{E16C}"; +pub const CHAT_CIRCLE_SLASH: &str = "\u{E16A}"; +pub const CHAT_CIRCLE_TEXT: &str = "\u{E16E}"; +pub const CHAT_DOTS: &str = "\u{E170}"; +pub const CHAT_SLASH: &str = "\u{E15E}"; +pub const CHAT_TEARDROP: &str = "\u{E172}"; +pub const CHAT_TEARDROP_DOTS: &str = "\u{E176}"; +pub const CHAT_TEARDROP_SLASH: &str = "\u{E174}"; +pub const CHAT_TEARDROP_TEXT: &str = "\u{E178}"; +pub const CHAT_TEXT: &str = "\u{E17A}"; +pub const CHATS: &str = "\u{E17C}"; +pub const CHATS_CIRCLE: &str = "\u{E17E}"; +pub const CHATS_TEARDROP: &str = "\u{E180}"; +pub const CHECK: &str = "\u{E182}"; +pub const CHECK_CIRCLE: &str = "\u{E184}"; +pub const CHECK_FAT: &str = "\u{EBA6}"; +pub const CHECK_SQUARE: &str = "\u{E186}"; +pub const CHECK_SQUARE_OFFSET: &str = "\u{E188}"; +pub const CHECKERBOARD: &str = "\u{E8C4}"; +pub const CHECKS: &str = "\u{E53A}"; +pub const CHEERS: &str = "\u{EA4A}"; +pub const CHEESE: &str = "\u{E9FE}"; +pub const CHEF_HAT: &str = "\u{ED8E}"; +pub const CHERRIES: &str = "\u{E830}"; +pub const CHURCH: &str = "\u{ECEA}"; +pub const CIGARETTE: &str = "\u{ED90}"; +pub const CIGARETTE_SLASH: &str = "\u{ED92}"; +pub const CIRCLE: &str = "\u{E18A}"; +pub const CIRCLE_DASHED: &str = "\u{E602}"; +pub const CIRCLE_HALF: &str = "\u{E18C}"; +pub const CIRCLE_HALF_TILT: &str = "\u{E18E}"; +pub const CIRCLE_NOTCH: &str = "\u{EB44}"; +pub const CIRCLES_FOUR: &str = "\u{E190}"; +pub const CIRCLES_THREE: &str = "\u{E192}"; +pub const CIRCLES_THREE_PLUS: &str = "\u{E194}"; +pub const CIRCUITRY: &str = "\u{E9C2}"; +pub const CITY: &str = "\u{EA6A}"; +pub const CLIPBOARD: &str = "\u{E196}"; +pub const CLIPBOARD_TEXT: &str = "\u{E198}"; +pub const CLOCK: &str = "\u{E19A}"; +pub const CLOCK_AFTERNOON: &str = "\u{E19C}"; +pub const CLOCK_CLOCKWISE: &str = "\u{E19E}"; +pub const CLOCK_COUNTDOWN: &str = "\u{ED2C}"; +pub const CLOCK_COUNTER_CLOCKWISE: &str = "\u{E1A0}"; +pub const CLOCK_USER: &str = "\u{EDEC}"; +pub const CLOSED_CAPTIONING: &str = "\u{E1A4}"; +pub const CLOUD: &str = "\u{E1AA}"; +pub const CLOUD_ARROW_DOWN: &str = "\u{E1AC}"; +pub const CLOUD_ARROW_UP: &str = "\u{E1AE}"; +pub const CLOUD_CHECK: &str = "\u{E1B0}"; +pub const CLOUD_FOG: &str = "\u{E53C}"; +pub const CLOUD_LIGHTNING: &str = "\u{E1B2}"; +pub const CLOUD_MOON: &str = "\u{E53E}"; +pub const CLOUD_RAIN: &str = "\u{E1B4}"; +pub const CLOUD_SLASH: &str = "\u{E1B6}"; +pub const CLOUD_SNOW: &str = "\u{E1B8}"; +pub const CLOUD_SUN: &str = "\u{E540}"; +pub const CLOUD_WARNING: &str = "\u{EA98}"; +pub const CLOUD_X: &str = "\u{EA96}"; +pub const CLOVER: &str = "\u{EDC8}"; +pub const CLUB: &str = "\u{E1BA}"; +pub const COAT_HANGER: &str = "\u{E7FE}"; +pub const CODA_LOGO: &str = "\u{E7CE}"; +pub const CODE: &str = "\u{E1BC}"; +pub const CODE_BLOCK: &str = "\u{EAFE}"; +pub const CODE_SIMPLE: &str = "\u{E1BE}"; +pub const CODEPEN_LOGO: &str = "\u{E978}"; +pub const CODESANDBOX_LOGO: &str = "\u{EA06}"; +pub const COFFEE: &str = "\u{E1C2}"; +pub const COFFEE_BEAN: &str = "\u{E1C0}"; +pub const COIN: &str = "\u{E60E}"; +pub const COIN_VERTICAL: &str = "\u{EB48}"; +pub const COINS: &str = "\u{E78E}"; +pub const COLUMNS: &str = "\u{E546}"; +pub const COLUMNS_PLUS_LEFT: &str = "\u{E544}"; +pub const COLUMNS_PLUS_RIGHT: &str = "\u{E542}"; +pub const COMMAND: &str = "\u{E1C4}"; +pub const COMPASS: &str = "\u{E1C8}"; +pub const COMPASS_ROSE: &str = "\u{E1C6}"; +pub const COMPASS_TOOL: &str = "\u{EA0E}"; +pub const COMPUTER_TOWER: &str = "\u{E548}"; +pub const CONFETTI: &str = "\u{E81A}"; +pub const CONTACTLESS_PAYMENT: &str = "\u{ED42}"; +pub const CONTROL: &str = "\u{ECA6}"; +pub const COOKIE: &str = "\u{E6CA}"; +pub const COOKING_POT: &str = "\u{E764}"; +pub const COPY: &str = "\u{E1CA}"; +pub const COPY_SIMPLE: &str = "\u{E1CC}"; +pub const COPYLEFT: &str = "\u{E86A}"; +pub const COPYRIGHT: &str = "\u{E54A}"; +pub const CORNERS_IN: &str = "\u{E1CE}"; +pub const CORNERS_OUT: &str = "\u{E1D0}"; +pub const COUCH: &str = "\u{E7F6}"; +pub const COURT_BASKETBALL: &str = "\u{EE36}"; +pub const COW: &str = "\u{EABE}"; +pub const COWBOY_HAT: &str = "\u{ED12}"; +pub const CPU: &str = "\u{E610}"; +pub const CRANE: &str = "\u{ED48}"; +pub const CRANE_TOWER: &str = "\u{ED49}"; +pub const CREDIT_CARD: &str = "\u{E1D2}"; +pub const CRICKET: &str = "\u{EE12}"; +pub const CROP: &str = "\u{E1D4}"; +pub const CROSS: &str = "\u{E8A0}"; +pub const CROSSHAIR: &str = "\u{E1D6}"; +pub const CROSSHAIR_SIMPLE: &str = "\u{E1D8}"; +pub const CROWN: &str = "\u{E614}"; +pub const CROWN_CROSS: &str = "\u{EE5E}"; +pub const CROWN_SIMPLE: &str = "\u{E616}"; +pub const CUBE: &str = "\u{E1DA}"; +pub const CUBE_FOCUS: &str = "\u{ED0A}"; +pub const CUBE_TRANSPARENT: &str = "\u{EC7C}"; +pub const CURRENCY_BTC: &str = "\u{E618}"; +pub const CURRENCY_CIRCLE_DOLLAR: &str = "\u{E54C}"; +pub const CURRENCY_CNY: &str = "\u{E54E}"; +pub const CURRENCY_DOLLAR: &str = "\u{E550}"; +pub const CURRENCY_DOLLAR_SIMPLE: &str = "\u{E552}"; +pub const CURRENCY_ETH: &str = "\u{EADA}"; +pub const CURRENCY_EUR: &str = "\u{E554}"; +pub const CURRENCY_GBP: &str = "\u{E556}"; +pub const CURRENCY_INR: &str = "\u{E558}"; +pub const CURRENCY_JPY: &str = "\u{E55A}"; +pub const CURRENCY_KRW: &str = "\u{E55C}"; +pub const CURRENCY_KZT: &str = "\u{EC4C}"; +pub const CURRENCY_NGN: &str = "\u{EB52}"; +pub const CURRENCY_RUB: &str = "\u{E55E}"; +pub const CURSOR: &str = "\u{E1DC}"; +pub const CURSOR_CLICK: &str = "\u{E7C8}"; +pub const CURSOR_TEXT: &str = "\u{E7D8}"; +pub const CYLINDER: &str = "\u{E8FC}"; +pub const DATABASE: &str = "\u{E1DE}"; +pub const DESK: &str = "\u{ED16}"; +pub const DESKTOP: &str = "\u{E560}"; +pub const DESKTOP_TOWER: &str = "\u{E562}"; +pub const DETECTIVE: &str = "\u{E83E}"; +pub const DEV_TO_LOGO: &str = "\u{ED0E}"; +pub const DEVICE_MOBILE: &str = "\u{E1E0}"; +pub const DEVICE_MOBILE_CAMERA: &str = "\u{E1E2}"; +pub const DEVICE_MOBILE_SLASH: &str = "\u{EE46}"; +pub const DEVICE_MOBILE_SPEAKER: &str = "\u{E1E4}"; +pub const DEVICE_ROTATE: &str = "\u{EDF2}"; +pub const DEVICE_TABLET: &str = "\u{E1E6}"; +pub const DEVICE_TABLET_CAMERA: &str = "\u{E1E8}"; +pub const DEVICE_TABLET_SPEAKER: &str = "\u{E1EA}"; +pub const DEVICES: &str = "\u{EBA4}"; +pub const DIAMOND: &str = "\u{E1EC}"; +pub const DIAMONDS_FOUR: &str = "\u{E8F4}"; +pub const DICE_FIVE: &str = "\u{E1EE}"; +pub const DICE_FOUR: &str = "\u{E1F0}"; +pub const DICE_ONE: &str = "\u{E1F2}"; +pub const DICE_SIX: &str = "\u{E1F4}"; +pub const DICE_THREE: &str = "\u{E1F6}"; +pub const DICE_TWO: &str = "\u{E1F8}"; +pub const DISC: &str = "\u{E564}"; +pub const DISCO_BALL: &str = "\u{ED98}"; +pub const DISCORD_LOGO: &str = "\u{E61A}"; +pub const DIVIDE: &str = "\u{E1FA}"; +pub const DNA: &str = "\u{E924}"; +pub const DOG: &str = "\u{E74A}"; +pub const DOOR: &str = "\u{E61C}"; +pub const DOOR_OPEN: &str = "\u{E7E6}"; +pub const DOT: &str = "\u{ECDE}"; +pub const DOT_OUTLINE: &str = "\u{ECE0}"; +pub const DOTS_NINE: &str = "\u{E1FC}"; +pub const DOTS_SIX: &str = "\u{E794}"; +pub const DOTS_SIX_VERTICAL: &str = "\u{EAE2}"; +pub const DOTS_THREE: &str = "\u{E1FE}"; +pub const DOTS_THREE_CIRCLE: &str = "\u{E200}"; +pub const DOTS_THREE_CIRCLE_VERTICAL: &str = "\u{E202}"; +pub const DOTS_THREE_OUTLINE: &str = "\u{E204}"; +pub const DOTS_THREE_OUTLINE_VERTICAL: &str = "\u{E206}"; +pub const DOTS_THREE_VERTICAL: &str = "\u{E208}"; +pub const DOWNLOAD: &str = "\u{E20A}"; +pub const DOWNLOAD_SIMPLE: &str = "\u{E20C}"; +pub const DRESS: &str = "\u{EA7E}"; +pub const DRESSER: &str = "\u{E94E}"; +pub const DRIBBBLE_LOGO: &str = "\u{E20E}"; +pub const DRONE: &str = "\u{ED74}"; +pub const DROP: &str = "\u{E210}"; +pub const DROP_HALF: &str = "\u{E566}"; +pub const DROP_HALF_BOTTOM: &str = "\u{EB40}"; +pub const DROP_SIMPLE: &str = "\u{EE32}"; +pub const DROP_SLASH: &str = "\u{E954}"; +pub const DROPBOX_LOGO: &str = "\u{E7D0}"; +pub const EAR: &str = "\u{E70C}"; +pub const EAR_SLASH: &str = "\u{E70E}"; +pub const EGG: &str = "\u{E812}"; +pub const EGG_CRACK: &str = "\u{EB64}"; +pub const EJECT: &str = "\u{E212}"; +pub const EJECT_SIMPLE: &str = "\u{E6AE}"; +pub const ELEVATOR: &str = "\u{ECC0}"; +pub const EMPTY: &str = "\u{EDBC}"; +pub const ENGINE: &str = "\u{EA80}"; +pub const ENVELOPE: &str = "\u{E214}"; +pub const ENVELOPE_OPEN: &str = "\u{E216}"; +pub const ENVELOPE_SIMPLE: &str = "\u{E218}"; +pub const ENVELOPE_SIMPLE_OPEN: &str = "\u{E21A}"; +pub const EQUALIZER: &str = "\u{EBBC}"; +pub const EQUALS: &str = "\u{E21C}"; +pub const ERASER: &str = "\u{E21E}"; +pub const ESCALATOR_DOWN: &str = "\u{ECBA}"; +pub const ESCALATOR_UP: &str = "\u{ECBC}"; +pub const EXAM: &str = "\u{E742}"; +pub const EXCLAMATION_MARK: &str = "\u{EE44}"; +pub const EXCLUDE: &str = "\u{E882}"; +pub const EXCLUDE_SQUARE: &str = "\u{E880}"; +pub const EXPORT: &str = "\u{EAF0}"; +pub const EYE: &str = "\u{E220}"; +pub const EYE_CLOSED: &str = "\u{E222}"; +pub const EYE_SLASH: &str = "\u{E224}"; +pub const EYEDROPPER: &str = "\u{E568}"; +pub const EYEDROPPER_SAMPLE: &str = "\u{EAC4}"; +pub const EYEGLASSES: &str = "\u{E7BA}"; +pub const EYES: &str = "\u{EE5C}"; +pub const FACE_MASK: &str = "\u{E56A}"; +pub const FACEBOOK_LOGO: &str = "\u{E226}"; +pub const FACTORY: &str = "\u{E760}"; +pub const FADERS: &str = "\u{E228}"; +pub const FADERS_HORIZONTAL: &str = "\u{E22A}"; +pub const FALLOUT_SHELTER: &str = "\u{E9DE}"; +pub const FAN: &str = "\u{E9F2}"; +pub const FARM: &str = "\u{EC70}"; +pub const FAST_FORWARD: &str = "\u{E6A6}"; +pub const FAST_FORWARD_CIRCLE: &str = "\u{E22C}"; +pub const FEATHER: &str = "\u{E9C0}"; +pub const FEDIVERSE_LOGO: &str = "\u{ED66}"; +pub const FIGMA_LOGO: &str = "\u{E22E}"; +pub const FILE: &str = "\u{E230}"; +pub const FILE_ARCHIVE: &str = "\u{EB2A}"; +pub const FILE_ARROW_DOWN: &str = "\u{E232}"; +pub const FILE_ARROW_UP: &str = "\u{E61E}"; +pub const FILE_AUDIO: &str = "\u{EA20}"; +pub const FILE_C: &str = "\u{EB32}"; +pub const FILE_C_SHARP: &str = "\u{EB30}"; +pub const FILE_CLOUD: &str = "\u{E95E}"; +pub const FILE_CODE: &str = "\u{E914}"; +pub const FILE_CPP: &str = "\u{EB2E}"; +pub const FILE_CSS: &str = "\u{EB34}"; +pub const FILE_CSV: &str = "\u{EB1C}"; +pub const FILE_DASHED: &str = "\u{E704}"; +pub const FILE_DOTTED: &str = "\u{E704}"; +pub const FILE_DOC: &str = "\u{EB1E}"; +pub const FILE_HTML: &str = "\u{EB38}"; +pub const FILE_IMAGE: &str = "\u{EA24}"; +pub const FILE_INI: &str = "\u{EB33}"; +pub const FILE_JPG: &str = "\u{EB1A}"; +pub const FILE_JS: &str = "\u{EB24}"; +pub const FILE_JSX: &str = "\u{EB3A}"; +pub const FILE_LOCK: &str = "\u{E95C}"; +pub const FILE_MAGNIFYING_GLASS: &str = "\u{E238}"; +pub const FILE_SEARCH: &str = "\u{E238}"; +pub const FILE_MD: &str = "\u{ED50}"; +pub const FILE_MINUS: &str = "\u{E234}"; +pub const FILE_PDF: &str = "\u{E702}"; +pub const FILE_PLUS: &str = "\u{E236}"; +pub const FILE_PNG: &str = "\u{EB18}"; +pub const FILE_PPT: &str = "\u{EB20}"; +pub const FILE_PY: &str = "\u{EB2C}"; +pub const FILE_RS: &str = "\u{EB28}"; +pub const FILE_SQL: &str = "\u{ED4E}"; +pub const FILE_SVG: &str = "\u{ED08}"; +pub const FILE_TEXT: &str = "\u{E23A}"; +pub const FILE_TS: &str = "\u{EB26}"; +pub const FILE_TSX: &str = "\u{EB3C}"; +pub const FILE_TXT: &str = "\u{EB35}"; +pub const FILE_VIDEO: &str = "\u{EA22}"; +pub const FILE_VUE: &str = "\u{EB3E}"; +pub const FILE_X: &str = "\u{E23C}"; +pub const FILE_XLS: &str = "\u{EB22}"; +pub const FILE_ZIP: &str = "\u{E958}"; +pub const FILES: &str = "\u{E710}"; +pub const FILM_REEL: &str = "\u{E8C0}"; +pub const FILM_SCRIPT: &str = "\u{EB50}"; +pub const FILM_SLATE: &str = "\u{E8C2}"; +pub const FILM_STRIP: &str = "\u{E792}"; +pub const FINGERPRINT: &str = "\u{E23E}"; +pub const FINGERPRINT_SIMPLE: &str = "\u{E240}"; +pub const FINN_THE_HUMAN: &str = "\u{E56C}"; +pub const FIRE: &str = "\u{E242}"; +pub const FIRE_EXTINGUISHER: &str = "\u{E9E8}"; +pub const FIRE_SIMPLE: &str = "\u{E620}"; +pub const FIRE_TRUCK: &str = "\u{E574}"; +pub const FIRST_AID: &str = "\u{E56E}"; +pub const FIRST_AID_KIT: &str = "\u{E570}"; +pub const FISH: &str = "\u{E728}"; +pub const FISH_SIMPLE: &str = "\u{E72A}"; +pub const FLAG: &str = "\u{E244}"; +pub const FLAG_BANNER: &str = "\u{E622}"; +pub const FLAG_BANNER_FOLD: &str = "\u{ECF2}"; +pub const FLAG_CHECKERED: &str = "\u{EA38}"; +pub const FLAG_PENNANT: &str = "\u{ECF0}"; +pub const FLAME: &str = "\u{E624}"; +pub const FLASHLIGHT: &str = "\u{E246}"; +pub const FLASK: &str = "\u{E79E}"; +pub const FLIP_HORIZONTAL: &str = "\u{ED6A}"; +pub const FLIP_VERTICAL: &str = "\u{ED6C}"; +pub const FLOPPY_DISK: &str = "\u{E248}"; +pub const FLOPPY_DISK_BACK: &str = "\u{EAF4}"; +pub const FLOW_ARROW: &str = "\u{E6EC}"; +pub const FLOWER: &str = "\u{E75E}"; +pub const FLOWER_LOTUS: &str = "\u{E6CC}"; +pub const FLOWER_TULIP: &str = "\u{EACC}"; +pub const FLYING_SAUCER: &str = "\u{EB4A}"; +pub const FOLDER: &str = "\u{E24A}"; +pub const FOLDER_NOTCH: &str = "\u{E24A}"; +pub const FOLDER_DASHED: &str = "\u{E8F8}"; +pub const FOLDER_DOTTED: &str = "\u{E8F8}"; +pub const FOLDER_LOCK: &str = "\u{EA3C}"; +pub const FOLDER_MINUS: &str = "\u{E254}"; +pub const FOLDER_NOTCH_MINUS: &str = "\u{E254}"; +pub const FOLDER_OPEN: &str = "\u{E256}"; +pub const FOLDER_NOTCH_OPEN: &str = "\u{E256}"; +pub const FOLDER_PLUS: &str = "\u{E258}"; +pub const FOLDER_NOTCH_PLUS: &str = "\u{E258}"; +pub const FOLDER_SIMPLE: &str = "\u{E25A}"; +pub const FOLDER_SIMPLE_DASHED: &str = "\u{EC2A}"; +pub const FOLDER_SIMPLE_DOTTED: &str = "\u{EC2A}"; +pub const FOLDER_SIMPLE_LOCK: &str = "\u{EB5E}"; +pub const FOLDER_SIMPLE_MINUS: &str = "\u{E25C}"; +pub const FOLDER_SIMPLE_PLUS: &str = "\u{E25E}"; +pub const FOLDER_SIMPLE_STAR: &str = "\u{EC2E}"; +pub const FOLDER_SIMPLE_USER: &str = "\u{EB60}"; +pub const FOLDER_STAR: &str = "\u{EA86}"; +pub const FOLDER_USER: &str = "\u{EB46}"; +pub const FOLDERS: &str = "\u{E260}"; +pub const FOOTBALL: &str = "\u{E718}"; +pub const FOOTBALL_HELMET: &str = "\u{EE4C}"; +pub const FOOTPRINTS: &str = "\u{EA88}"; +pub const FORK_KNIFE: &str = "\u{E262}"; +pub const FOUR_K: &str = "\u{EA5C}"; +pub const FRAME_CORNERS: &str = "\u{E626}"; +pub const FRAMER_LOGO: &str = "\u{E264}"; +pub const FUNCTION: &str = "\u{EBE4}"; +pub const FUNNEL: &str = "\u{E266}"; +pub const FUNNEL_SIMPLE: &str = "\u{E268}"; +pub const FUNNEL_SIMPLE_X: &str = "\u{E26A}"; +pub const FUNNEL_X: &str = "\u{E26C}"; +pub const GAME_CONTROLLER: &str = "\u{E26E}"; +pub const GARAGE: &str = "\u{ECD6}"; +pub const GAS_CAN: &str = "\u{E8CE}"; +pub const GAS_PUMP: &str = "\u{E768}"; +pub const GAUGE: &str = "\u{E628}"; +pub const GAVEL: &str = "\u{EA32}"; +pub const GEAR: &str = "\u{E270}"; +pub const GEAR_FINE: &str = "\u{E87C}"; +pub const GEAR_SIX: &str = "\u{E272}"; +pub const GENDER_FEMALE: &str = "\u{E6E0}"; +pub const GENDER_INTERSEX: &str = "\u{E6E6}"; +pub const GENDER_MALE: &str = "\u{E6E2}"; +pub const GENDER_NEUTER: &str = "\u{E6EA}"; +pub const GENDER_NONBINARY: &str = "\u{E6E4}"; +pub const GENDER_TRANSGENDER: &str = "\u{E6E8}"; +pub const GHOST: &str = "\u{E62A}"; +pub const GIF: &str = "\u{E274}"; +pub const GIFT: &str = "\u{E276}"; +pub const GIT_BRANCH: &str = "\u{E278}"; +pub const GIT_COMMIT: &str = "\u{E27A}"; +pub const GIT_DIFF: &str = "\u{E27C}"; +pub const GIT_FORK: &str = "\u{E27E}"; +pub const GIT_MERGE: &str = "\u{E280}"; +pub const GIT_PULL_REQUEST: &str = "\u{E282}"; +pub const GITHUB_LOGO: &str = "\u{E576}"; +pub const GITLAB_LOGO: &str = "\u{E694}"; +pub const GITLAB_LOGO_SIMPLE: &str = "\u{E696}"; +pub const GLOBE: &str = "\u{E288}"; +pub const GLOBE_HEMISPHERE_EAST: &str = "\u{E28A}"; +pub const GLOBE_HEMISPHERE_WEST: &str = "\u{E28C}"; +pub const GLOBE_SIMPLE: &str = "\u{E28E}"; +pub const GLOBE_SIMPLE_X: &str = "\u{E284}"; +pub const GLOBE_STAND: &str = "\u{E290}"; +pub const GLOBE_X: &str = "\u{E286}"; +pub const GOGGLES: &str = "\u{ECB4}"; +pub const GOLF: &str = "\u{EA3E}"; +pub const GOODREADS_LOGO: &str = "\u{ED10}"; +pub const GOOGLE_CARDBOARD_LOGO: &str = "\u{E7B6}"; +pub const GOOGLE_CHROME_LOGO: &str = "\u{E976}"; +pub const GOOGLE_DRIVE_LOGO: &str = "\u{E8F6}"; +pub const GOOGLE_LOGO: &str = "\u{E292}"; +pub const GOOGLE_PHOTOS_LOGO: &str = "\u{EB92}"; +pub const GOOGLE_PLAY_LOGO: &str = "\u{E294}"; +pub const GOOGLE_PODCASTS_LOGO: &str = "\u{EB94}"; +pub const GPS: &str = "\u{EDD8}"; +pub const GPS_FIX: &str = "\u{EDD6}"; +pub const GPS_SLASH: &str = "\u{EDD4}"; +pub const GRADIENT: &str = "\u{EB42}"; +pub const GRADUATION_CAP: &str = "\u{E62C}"; +pub const GRAINS: &str = "\u{EC68}"; +pub const GRAINS_SLASH: &str = "\u{EC6A}"; +pub const GRAPH: &str = "\u{EB58}"; +pub const GRAPHICS_CARD: &str = "\u{E612}"; +pub const GREATER_THAN: &str = "\u{EDC4}"; +pub const GREATER_THAN_OR_EQUAL: &str = "\u{EDA2}"; +pub const GRID_FOUR: &str = "\u{E296}"; +pub const GRID_NINE: &str = "\u{EC8C}"; +pub const GUITAR: &str = "\u{EA8A}"; +pub const HAIR_DRYER: &str = "\u{EA66}"; +pub const HAMBURGER: &str = "\u{E790}"; +pub const HAMMER: &str = "\u{E80E}"; +pub const HAND: &str = "\u{E298}"; +pub const HAND_ARROW_DOWN: &str = "\u{EA4E}"; +pub const HAND_ARROW_UP: &str = "\u{EE5A}"; +pub const HAND_COINS: &str = "\u{EA8C}"; +pub const HAND_DEPOSIT: &str = "\u{EE82}"; +pub const HAND_EYE: &str = "\u{EA4C}"; +pub const HAND_FIST: &str = "\u{E57A}"; +pub const HAND_GRABBING: &str = "\u{E57C}"; +pub const HAND_HEART: &str = "\u{E810}"; +pub const HAND_PALM: &str = "\u{E57E}"; +pub const HAND_PEACE: &str = "\u{E7CC}"; +pub const HAND_POINTING: &str = "\u{E29A}"; +pub const HAND_SOAP: &str = "\u{E630}"; +pub const HAND_SWIPE_LEFT: &str = "\u{EC94}"; +pub const HAND_SWIPE_RIGHT: &str = "\u{EC92}"; +pub const HAND_TAP: &str = "\u{EC90}"; +pub const HAND_WAVING: &str = "\u{E580}"; +pub const HAND_WITHDRAW: &str = "\u{EE80}"; +pub const HANDBAG: &str = "\u{E29C}"; +pub const HANDBAG_SIMPLE: &str = "\u{E62E}"; +pub const HANDS_CLAPPING: &str = "\u{E6A0}"; +pub const HANDS_PRAYING: &str = "\u{ECC8}"; +pub const HANDSHAKE: &str = "\u{E582}"; +pub const HARD_DRIVE: &str = "\u{E29E}"; +pub const HARD_DRIVES: &str = "\u{E2A0}"; +pub const HARD_HAT: &str = "\u{ED46}"; +pub const HASH: &str = "\u{E2A2}"; +pub const HASH_STRAIGHT: &str = "\u{E2A4}"; +pub const HEAD_CIRCUIT: &str = "\u{E7D4}"; +pub const HEADLIGHTS: &str = "\u{E6FE}"; +pub const HEADPHONES: &str = "\u{E2A6}"; +pub const HEADSET: &str = "\u{E584}"; +pub const HEART: &str = "\u{E2A8}"; +pub const HEART_BREAK: &str = "\u{EBE8}"; +pub const HEART_HALF: &str = "\u{EC48}"; +pub const HEART_STRAIGHT: &str = "\u{E2AA}"; +pub const HEART_STRAIGHT_BREAK: &str = "\u{EB98}"; +pub const HEARTBEAT: &str = "\u{E2AC}"; +pub const HEXAGON: &str = "\u{E2AE}"; +pub const HIGH_DEFINITION: &str = "\u{EA8E}"; +pub const HIGH_HEEL: &str = "\u{E8E8}"; +pub const HIGHLIGHTER: &str = "\u{EC76}"; +pub const HIGHLIGHTER_CIRCLE: &str = "\u{E632}"; +pub const HOCKEY: &str = "\u{EC86}"; +pub const HOODIE: &str = "\u{ECD0}"; +pub const HORSE: &str = "\u{E2B0}"; +pub const HOSPITAL: &str = "\u{E844}"; +pub const HOURGLASS: &str = "\u{E2B2}"; +pub const HOURGLASS_HIGH: &str = "\u{E2B4}"; +pub const HOURGLASS_LOW: &str = "\u{E2B6}"; +pub const HOURGLASS_MEDIUM: &str = "\u{E2B8}"; +pub const HOURGLASS_SIMPLE: &str = "\u{E2BA}"; +pub const HOURGLASS_SIMPLE_HIGH: &str = "\u{E2BC}"; +pub const HOURGLASS_SIMPLE_LOW: &str = "\u{E2BE}"; +pub const HOURGLASS_SIMPLE_MEDIUM: &str = "\u{E2C0}"; +pub const HOUSE: &str = "\u{E2C2}"; +pub const HOUSE_LINE: &str = "\u{E2C4}"; +pub const HOUSE_SIMPLE: &str = "\u{E2C6}"; +pub const HURRICANE: &str = "\u{E88E}"; +pub const ICE_CREAM: &str = "\u{E804}"; +pub const IDENTIFICATION_BADGE: &str = "\u{E6F6}"; +pub const IDENTIFICATION_CARD: &str = "\u{E2C8}"; +pub const IMAGE: &str = "\u{E2CA}"; +pub const IMAGE_BROKEN: &str = "\u{E7A8}"; +pub const IMAGE_SQUARE: &str = "\u{E2CC}"; +pub const IMAGES: &str = "\u{E836}"; +pub const IMAGES_SQUARE: &str = "\u{E834}"; +pub const INFINITY: &str = "\u{E634}"; +pub const LEMNISCATE: &str = "\u{E634}"; +pub const INFO: &str = "\u{E2CE}"; +pub const INSTAGRAM_LOGO: &str = "\u{E2D0}"; +pub const INTERSECT: &str = "\u{E2D2}"; +pub const INTERSECT_SQUARE: &str = "\u{E87A}"; +pub const INTERSECT_THREE: &str = "\u{ECC4}"; +pub const INTERSECTION: &str = "\u{EDBA}"; +pub const INVOICE: &str = "\u{EE42}"; +pub const ISLAND: &str = "\u{EE06}"; +pub const JAR: &str = "\u{E7E0}"; +pub const JAR_LABEL: &str = "\u{E7E1}"; +pub const JEEP: &str = "\u{E2D4}"; +pub const JOYSTICK: &str = "\u{EA5E}"; +pub const KANBAN: &str = "\u{EB54}"; +pub const KEY: &str = "\u{E2D6}"; +pub const KEY_RETURN: &str = "\u{E782}"; +pub const KEYBOARD: &str = "\u{E2D8}"; +pub const KEYHOLE: &str = "\u{EA78}"; +pub const KNIFE: &str = "\u{E636}"; +pub const LADDER: &str = "\u{E9E4}"; +pub const LADDER_SIMPLE: &str = "\u{EC26}"; +pub const LAMP: &str = "\u{E638}"; +pub const LAMP_PENDANT: &str = "\u{EE2E}"; +pub const LAPTOP: &str = "\u{E586}"; +pub const LASSO: &str = "\u{EDC6}"; +pub const LASTFM_LOGO: &str = "\u{E842}"; +pub const LAYOUT: &str = "\u{E6D6}"; +pub const LEAF: &str = "\u{E2DA}"; +pub const LECTERN: &str = "\u{E95A}"; +pub const LEGO: &str = "\u{E8C6}"; +pub const LEGO_SMILEY: &str = "\u{E8C7}"; +pub const LESS_THAN: &str = "\u{EDAC}"; +pub const LESS_THAN_OR_EQUAL: &str = "\u{EDA4}"; +pub const LETTER_CIRCLE_H: &str = "\u{EBF8}"; +pub const LETTER_CIRCLE_P: &str = "\u{EC08}"; +pub const LETTER_CIRCLE_V: &str = "\u{EC14}"; +pub const LIFEBUOY: &str = "\u{E63A}"; +pub const LIGHTBULB: &str = "\u{E2DC}"; +pub const LIGHTBULB_FILAMENT: &str = "\u{E63C}"; +pub const LIGHTHOUSE: &str = "\u{E9F6}"; +pub const LIGHTNING: &str = "\u{E2DE}"; +pub const LIGHTNING_A: &str = "\u{EA84}"; +pub const LIGHTNING_SLASH: &str = "\u{E2E0}"; +pub const LINE_SEGMENT: &str = "\u{E6D2}"; +pub const LINE_SEGMENTS: &str = "\u{E6D4}"; +pub const LINE_VERTICAL: &str = "\u{ED70}"; +pub const LINK: &str = "\u{E2E2}"; +pub const LINK_BREAK: &str = "\u{E2E4}"; +pub const LINK_SIMPLE: &str = "\u{E2E6}"; +pub const LINK_SIMPLE_BREAK: &str = "\u{E2E8}"; +pub const LINK_SIMPLE_HORIZONTAL: &str = "\u{E2EA}"; +pub const LINK_SIMPLE_HORIZONTAL_BREAK: &str = "\u{E2EC}"; +pub const LINKEDIN_LOGO: &str = "\u{E2EE}"; +pub const LINKTREE_LOGO: &str = "\u{EDEE}"; +pub const LINUX_LOGO: &str = "\u{EB02}"; +pub const LIST: &str = "\u{E2F0}"; +pub const LIST_BULLETS: &str = "\u{E2F2}"; +pub const LIST_CHECKS: &str = "\u{EADC}"; +pub const LIST_DASHES: &str = "\u{E2F4}"; +pub const LIST_HEART: &str = "\u{EBDE}"; +pub const LIST_MAGNIFYING_GLASS: &str = "\u{EBE0}"; +pub const LIST_NUMBERS: &str = "\u{E2F6}"; +pub const LIST_PLUS: &str = "\u{E2F8}"; +pub const LIST_STAR: &str = "\u{EBDC}"; +pub const LOCK: &str = "\u{E2FA}"; +pub const LOCK_KEY: &str = "\u{E2FE}"; +pub const LOCK_KEY_OPEN: &str = "\u{E300}"; +pub const LOCK_LAMINATED: &str = "\u{E302}"; +pub const LOCK_LAMINATED_OPEN: &str = "\u{E304}"; +pub const LOCK_OPEN: &str = "\u{E306}"; +pub const LOCK_SIMPLE: &str = "\u{E308}"; +pub const LOCK_SIMPLE_OPEN: &str = "\u{E30A}"; +pub const LOCKERS: &str = "\u{ECB8}"; +pub const LOG: &str = "\u{ED82}"; +pub const MAGIC_WAND: &str = "\u{E6B6}"; +pub const MAGNET: &str = "\u{E680}"; +pub const MAGNET_STRAIGHT: &str = "\u{E682}"; +pub const MAGNIFYING_GLASS: &str = "\u{E30C}"; +pub const MAGNIFYING_GLASS_MINUS: &str = "\u{E30E}"; +pub const MAGNIFYING_GLASS_PLUS: &str = "\u{E310}"; +pub const MAILBOX: &str = "\u{EC1E}"; +pub const MAP_PIN: &str = "\u{E316}"; +pub const MAP_PIN_AREA: &str = "\u{EE3A}"; +pub const MAP_PIN_LINE: &str = "\u{E318}"; +pub const MAP_PIN_PLUS: &str = "\u{E314}"; +pub const MAP_PIN_SIMPLE: &str = "\u{EE3E}"; +pub const MAP_PIN_SIMPLE_AREA: &str = "\u{EE3C}"; +pub const MAP_PIN_SIMPLE_LINE: &str = "\u{EE38}"; +pub const MAP_TRIFOLD: &str = "\u{E31A}"; +pub const MARKDOWN_LOGO: &str = "\u{E508}"; +pub const MARKER_CIRCLE: &str = "\u{E640}"; +pub const MARTINI: &str = "\u{E31C}"; +pub const MASK_HAPPY: &str = "\u{E9F4}"; +pub const MASK_SAD: &str = "\u{EB9E}"; +pub const MASTODON_LOGO: &str = "\u{ED68}"; +pub const MATH_OPERATIONS: &str = "\u{E31E}"; +pub const MATRIX_LOGO: &str = "\u{ED64}"; +pub const MEDAL: &str = "\u{E320}"; +pub const MEDAL_MILITARY: &str = "\u{ECFC}"; +pub const MEDIUM_LOGO: &str = "\u{E322}"; +pub const MEGAPHONE: &str = "\u{E324}"; +pub const MEGAPHONE_SIMPLE: &str = "\u{E642}"; +pub const MEMBER_OF: &str = "\u{EDC2}"; +pub const MEMORY: &str = "\u{E9C4}"; +pub const MESSENGER_LOGO: &str = "\u{E6D8}"; +pub const META_LOGO: &str = "\u{ED02}"; +pub const METEOR: &str = "\u{E9BA}"; +pub const METRONOME: &str = "\u{EC8E}"; +pub const MICROPHONE: &str = "\u{E326}"; +pub const MICROPHONE_SLASH: &str = "\u{E328}"; +pub const MICROPHONE_STAGE: &str = "\u{E75C}"; +pub const MICROSCOPE: &str = "\u{EC7A}"; +pub const MICROSOFT_EXCEL_LOGO: &str = "\u{EB6C}"; +pub const MICROSOFT_OUTLOOK_LOGO: &str = "\u{EB70}"; +pub const MICROSOFT_POWERPOINT_LOGO: &str = "\u{EACE}"; +pub const MICROSOFT_TEAMS_LOGO: &str = "\u{EB66}"; +pub const MICROSOFT_WORD_LOGO: &str = "\u{EB6A}"; +pub const MINUS: &str = "\u{E32A}"; +pub const MINUS_CIRCLE: &str = "\u{E32C}"; +pub const MINUS_SQUARE: &str = "\u{ED4C}"; +pub const MONEY: &str = "\u{E588}"; +pub const MONEY_WAVY: &str = "\u{EE68}"; +pub const MONITOR: &str = "\u{E32E}"; +pub const MONITOR_ARROW_UP: &str = "\u{E58A}"; +pub const MONITOR_PLAY: &str = "\u{E58C}"; +pub const MOON: &str = "\u{E330}"; +pub const MOON_STARS: &str = "\u{E58E}"; +pub const MOPED: &str = "\u{E824}"; +pub const MOPED_FRONT: &str = "\u{E822}"; +pub const MOSQUE: &str = "\u{ECEE}"; +pub const MOTORCYCLE: &str = "\u{E80A}"; +pub const MOUNTAINS: &str = "\u{E7AE}"; +pub const MOUSE: &str = "\u{E33A}"; +pub const MOUSE_LEFT_CLICK: &str = "\u{E334}"; +pub const MOUSE_MIDDLE_CLICK: &str = "\u{E338}"; +pub const MOUSE_RIGHT_CLICK: &str = "\u{E336}"; +pub const MOUSE_SCROLL: &str = "\u{E332}"; +pub const MOUSE_SIMPLE: &str = "\u{E644}"; +pub const MUSIC_NOTE: &str = "\u{E33C}"; +pub const MUSIC_NOTE_SIMPLE: &str = "\u{E33E}"; +pub const MUSIC_NOTES: &str = "\u{E340}"; +pub const MUSIC_NOTES_MINUS: &str = "\u{EE0C}"; +pub const MUSIC_NOTES_PLUS: &str = "\u{EB7C}"; +pub const MUSIC_NOTES_SIMPLE: &str = "\u{E342}"; +pub const NAVIGATION_ARROW: &str = "\u{EADE}"; +pub const NEEDLE: &str = "\u{E82E}"; +pub const NETWORK: &str = "\u{EDDE}"; +pub const NETWORK_SLASH: &str = "\u{EDDC}"; +pub const NETWORK_X: &str = "\u{EDDA}"; +pub const NEWSPAPER: &str = "\u{E344}"; +pub const NEWSPAPER_CLIPPING: &str = "\u{E346}"; +pub const NOT_EQUALS: &str = "\u{EDA6}"; +pub const NOT_MEMBER_OF: &str = "\u{EDAE}"; +pub const NOT_SUBSET_OF: &str = "\u{EDB0}"; +pub const NOT_SUPERSET_OF: &str = "\u{EDB2}"; +pub const NOTCHES: &str = "\u{ED3A}"; +pub const NOTE: &str = "\u{E348}"; +pub const NOTE_BLANK: &str = "\u{E34A}"; +pub const NOTE_PENCIL: &str = "\u{E34C}"; +pub const NOTEBOOK: &str = "\u{E34E}"; +pub const NOTEPAD: &str = "\u{E63E}"; +pub const NOTIFICATION: &str = "\u{E6FA}"; +pub const NOTION_LOGO: &str = "\u{E9A0}"; +pub const NUCLEAR_PLANT: &str = "\u{ED7C}"; +pub const NUMBER_CIRCLE_EIGHT: &str = "\u{E352}"; +pub const NUMBER_CIRCLE_FIVE: &str = "\u{E358}"; +pub const NUMBER_CIRCLE_FOUR: &str = "\u{E35E}"; +pub const NUMBER_CIRCLE_NINE: &str = "\u{E364}"; +pub const NUMBER_CIRCLE_ONE: &str = "\u{E36A}"; +pub const NUMBER_CIRCLE_SEVEN: &str = "\u{E370}"; +pub const NUMBER_CIRCLE_SIX: &str = "\u{E376}"; +pub const NUMBER_CIRCLE_THREE: &str = "\u{E37C}"; +pub const NUMBER_CIRCLE_TWO: &str = "\u{E382}"; +pub const NUMBER_CIRCLE_ZERO: &str = "\u{E388}"; +pub const NUMBER_EIGHT: &str = "\u{E350}"; +pub const NUMBER_FIVE: &str = "\u{E356}"; +pub const NUMBER_FOUR: &str = "\u{E35C}"; +pub const NUMBER_NINE: &str = "\u{E362}"; +pub const NUMBER_ONE: &str = "\u{E368}"; +pub const NUMBER_SEVEN: &str = "\u{E36E}"; +pub const NUMBER_SIX: &str = "\u{E374}"; +pub const NUMBER_SQUARE_EIGHT: &str = "\u{E354}"; +pub const NUMBER_SQUARE_FIVE: &str = "\u{E35A}"; +pub const NUMBER_SQUARE_FOUR: &str = "\u{E360}"; +pub const NUMBER_SQUARE_NINE: &str = "\u{E366}"; +pub const NUMBER_SQUARE_ONE: &str = "\u{E36C}"; +pub const NUMBER_SQUARE_SEVEN: &str = "\u{E372}"; +pub const NUMBER_SQUARE_SIX: &str = "\u{E378}"; +pub const NUMBER_SQUARE_THREE: &str = "\u{E37E}"; +pub const NUMBER_SQUARE_TWO: &str = "\u{E384}"; +pub const NUMBER_SQUARE_ZERO: &str = "\u{E38A}"; +pub const NUMBER_THREE: &str = "\u{E37A}"; +pub const NUMBER_TWO: &str = "\u{E380}"; +pub const NUMBER_ZERO: &str = "\u{E386}"; +pub const NUMPAD: &str = "\u{E3C8}"; +pub const NUT: &str = "\u{E38C}"; +pub const NY_TIMES_LOGO: &str = "\u{E646}"; +pub const OCTAGON: &str = "\u{E38E}"; +pub const OFFICE_CHAIR: &str = "\u{EA46}"; +pub const ONIGIRI: &str = "\u{EE2C}"; +pub const OPEN_AI_LOGO: &str = "\u{E7D2}"; +pub const OPTION: &str = "\u{E8A8}"; +pub const ORANGE: &str = "\u{EE40}"; +pub const ORANGE_SLICE: &str = "\u{ED36}"; +pub const OVEN: &str = "\u{ED8C}"; +pub const PACKAGE: &str = "\u{E390}"; +pub const PAINT_BRUSH: &str = "\u{E6F0}"; +pub const PAINT_BRUSH_BROAD: &str = "\u{E590}"; +pub const PAINT_BRUSH_HOUSEHOLD: &str = "\u{E6F2}"; +pub const PAINT_BUCKET: &str = "\u{E392}"; +pub const PAINT_ROLLER: &str = "\u{E6F4}"; +pub const PALETTE: &str = "\u{E6C8}"; +pub const PANORAMA: &str = "\u{EAA2}"; +pub const PANTS: &str = "\u{EC88}"; +pub const PAPER_PLANE: &str = "\u{E394}"; +pub const PAPER_PLANE_RIGHT: &str = "\u{E396}"; +pub const PAPER_PLANE_TILT: &str = "\u{E398}"; +pub const PAPERCLIP: &str = "\u{E39A}"; +pub const PAPERCLIP_HORIZONTAL: &str = "\u{E592}"; +pub const PARACHUTE: &str = "\u{EA7C}"; +pub const PARAGRAPH: &str = "\u{E960}"; +pub const PARALLELOGRAM: &str = "\u{ECC6}"; +pub const PARK: &str = "\u{ECB2}"; +pub const PASSWORD: &str = "\u{E752}"; +pub const PATH: &str = "\u{E39C}"; +pub const PATREON_LOGO: &str = "\u{E98A}"; +pub const PAUSE: &str = "\u{E39E}"; +pub const PAUSE_CIRCLE: &str = "\u{E3A0}"; +pub const PAW_PRINT: &str = "\u{E648}"; +pub const PAYPAL_LOGO: &str = "\u{E98C}"; +pub const PEACE: &str = "\u{E3A2}"; +pub const PEN: &str = "\u{E3AA}"; +pub const PEN_NIB: &str = "\u{E3AC}"; +pub const PEN_NIB_STRAIGHT: &str = "\u{E64A}"; +pub const PENCIL: &str = "\u{E3AE}"; +pub const PENCIL_CIRCLE: &str = "\u{E3B0}"; +pub const PENCIL_LINE: &str = "\u{E3B2}"; +pub const PENCIL_RULER: &str = "\u{E906}"; +pub const PENCIL_SIMPLE: &str = "\u{E3B4}"; +pub const PENCIL_SIMPLE_LINE: &str = "\u{EBC6}"; +pub const PENCIL_SIMPLE_SLASH: &str = "\u{ECF6}"; +pub const PENCIL_SLASH: &str = "\u{ECF8}"; +pub const PENTAGON: &str = "\u{EC7E}"; +pub const PENTAGRAM: &str = "\u{EC5C}"; +pub const PEPPER: &str = "\u{E94A}"; +pub const PERCENT: &str = "\u{E3B6}"; +pub const PERSON: &str = "\u{E3A8}"; +pub const PERSON_ARMS_SPREAD: &str = "\u{ECFE}"; +pub const PERSON_SIMPLE: &str = "\u{E72E}"; +pub const PERSON_SIMPLE_BIKE: &str = "\u{E734}"; +pub const PERSON_SIMPLE_CIRCLE: &str = "\u{EE58}"; +pub const PERSON_SIMPLE_HIKE: &str = "\u{ED54}"; +pub const PERSON_SIMPLE_RUN: &str = "\u{E730}"; +pub const PERSON_SIMPLE_SKI: &str = "\u{E71C}"; +pub const PERSON_SIMPLE_SNOWBOARD: &str = "\u{E71E}"; +pub const PERSON_SIMPLE_SWIM: &str = "\u{E736}"; +pub const PERSON_SIMPLE_TAI_CHI: &str = "\u{ED5C}"; +pub const PERSON_SIMPLE_THROW: &str = "\u{E732}"; +pub const PERSON_SIMPLE_WALK: &str = "\u{E73A}"; +pub const PERSPECTIVE: &str = "\u{EBE6}"; +pub const PHONE: &str = "\u{E3B8}"; +pub const PHONE_CALL: &str = "\u{E3BA}"; +pub const PHONE_DISCONNECT: &str = "\u{E3BC}"; +pub const PHONE_INCOMING: &str = "\u{E3BE}"; +pub const PHONE_LIST: &str = "\u{E3CC}"; +pub const PHONE_OUTGOING: &str = "\u{E3C0}"; +pub const PHONE_PAUSE: &str = "\u{E3CA}"; +pub const PHONE_PLUS: &str = "\u{EC56}"; +pub const PHONE_SLASH: &str = "\u{E3C2}"; +pub const PHONE_TRANSFER: &str = "\u{E3C6}"; +pub const PHONE_X: &str = "\u{E3C4}"; +pub const PHOSPHOR_LOGO: &str = "\u{E3CE}"; +pub const PI: &str = "\u{EC80}"; +pub const PIANO_KEYS: &str = "\u{E9C8}"; +pub const PICNIC_TABLE: &str = "\u{EE26}"; +pub const PICTURE_IN_PICTURE: &str = "\u{E64C}"; +pub const PIGGY_BANK: &str = "\u{EA04}"; +pub const PILL: &str = "\u{E700}"; +pub const PING_PONG: &str = "\u{EA42}"; +pub const PINT_GLASS: &str = "\u{EDD0}"; +pub const PINTEREST_LOGO: &str = "\u{E64E}"; +pub const PINWHEEL: &str = "\u{EB9C}"; +pub const PIPE: &str = "\u{ED86}"; +pub const PIPE_WRENCH: &str = "\u{ED88}"; +pub const PIX_LOGO: &str = "\u{ECC2}"; +pub const PIZZA: &str = "\u{E796}"; +pub const PLACEHOLDER: &str = "\u{E650}"; +pub const PLANET: &str = "\u{E652}"; +pub const PLANT: &str = "\u{EBAE}"; +pub const PLAY: &str = "\u{E3D0}"; +pub const PLAY_CIRCLE: &str = "\u{E3D2}"; +pub const PLAY_PAUSE: &str = "\u{E8BE}"; +pub const PLAYLIST: &str = "\u{E6AA}"; +pub const PLUG: &str = "\u{E946}"; +pub const PLUG_CHARGING: &str = "\u{EB5C}"; +pub const PLUGS: &str = "\u{EB56}"; +pub const PLUGS_CONNECTED: &str = "\u{EB5A}"; +pub const PLUS: &str = "\u{E3D4}"; +pub const PLUS_CIRCLE: &str = "\u{E3D6}"; +pub const PLUS_MINUS: &str = "\u{E3D8}"; +pub const PLUS_SQUARE: &str = "\u{ED4A}"; +pub const POKER_CHIP: &str = "\u{E594}"; +pub const POLICE_CAR: &str = "\u{EC4A}"; +pub const POLYGON: &str = "\u{E6D0}"; +pub const POPCORN: &str = "\u{EB4E}"; +pub const POPSICLE: &str = "\u{EBBE}"; +pub const POTTED_PLANT: &str = "\u{EC22}"; +pub const POWER: &str = "\u{E3DA}"; +pub const PRESCRIPTION: &str = "\u{E7A2}"; +pub const PRESENTATION: &str = "\u{E654}"; +pub const PRESENTATION_CHART: &str = "\u{E656}"; +pub const PRINTER: &str = "\u{E3DC}"; +pub const PROHIBIT: &str = "\u{E3DE}"; +pub const PROHIBIT_INSET: &str = "\u{E3E0}"; +pub const PROJECTOR_SCREEN: &str = "\u{E658}"; +pub const PROJECTOR_SCREEN_CHART: &str = "\u{E65A}"; +pub const PULSE: &str = "\u{E000}"; +pub const ACTIVITY: &str = "\u{E000}"; +pub const PUSH_PIN: &str = "\u{E3E2}"; +pub const PUSH_PIN_SIMPLE: &str = "\u{E65C}"; +pub const PUSH_PIN_SIMPLE_SLASH: &str = "\u{E65E}"; +pub const PUSH_PIN_SLASH: &str = "\u{E3E4}"; +pub const PUZZLE_PIECE: &str = "\u{E596}"; +pub const QR_CODE: &str = "\u{E3E6}"; +pub const QUESTION: &str = "\u{E3E8}"; +pub const QUESTION_MARK: &str = "\u{E3E9}"; +pub const QUEUE: &str = "\u{E6AC}"; +pub const QUOTES: &str = "\u{E660}"; +pub const RABBIT: &str = "\u{EAC2}"; +pub const RACQUET: &str = "\u{EE02}"; +pub const RADICAL: &str = "\u{E3EA}"; +pub const RADIO: &str = "\u{E77E}"; +pub const RADIO_BUTTON: &str = "\u{EB08}"; +pub const RADIOACTIVE: &str = "\u{E9DC}"; +pub const RAINBOW: &str = "\u{E598}"; +pub const RAINBOW_CLOUD: &str = "\u{E59A}"; +pub const RANKING: &str = "\u{ED62}"; +pub const READ_CV_LOGO: &str = "\u{ED0C}"; +pub const RECEIPT: &str = "\u{E3EC}"; +pub const RECEIPT_X: &str = "\u{ED40}"; +pub const RECORD: &str = "\u{E3EE}"; +pub const RECTANGLE: &str = "\u{E3F0}"; +pub const RECTANGLE_DASHED: &str = "\u{E3F2}"; +pub const RECYCLE: &str = "\u{E75A}"; +pub const REDDIT_LOGO: &str = "\u{E59C}"; +pub const REPEAT: &str = "\u{E3F6}"; +pub const REPEAT_ONCE: &str = "\u{E3F8}"; +pub const REPLIT_LOGO: &str = "\u{EB8A}"; +pub const RESIZE: &str = "\u{ED6E}"; +pub const REWIND: &str = "\u{E6A8}"; +pub const REWIND_CIRCLE: &str = "\u{E3FA}"; +pub const ROAD_HORIZON: &str = "\u{E838}"; +pub const ROBOT: &str = "\u{E762}"; +pub const ROCKET: &str = "\u{E3FC}"; +pub const ROCKET_LAUNCH: &str = "\u{E3FE}"; +pub const ROWS: &str = "\u{E5A2}"; +pub const ROWS_PLUS_BOTTOM: &str = "\u{E59E}"; +pub const ROWS_PLUS_TOP: &str = "\u{E5A0}"; +pub const RSS: &str = "\u{E400}"; +pub const RSS_SIMPLE: &str = "\u{E402}"; +pub const RUG: &str = "\u{EA1A}"; +pub const RULER: &str = "\u{E6B8}"; +pub const SAILBOAT: &str = "\u{E78A}"; +pub const SCALES: &str = "\u{E750}"; +pub const SCAN: &str = "\u{EBB6}"; +pub const SCAN_SMILEY: &str = "\u{EBB4}"; +pub const SCISSORS: &str = "\u{EAE0}"; +pub const SCOOTER: &str = "\u{E820}"; +pub const SCREENCAST: &str = "\u{E404}"; +pub const SCREWDRIVER: &str = "\u{E86E}"; +pub const SCRIBBLE: &str = "\u{E806}"; +pub const SCRIBBLE_LOOP: &str = "\u{E662}"; +pub const SCROLL: &str = "\u{EB7A}"; +pub const SEAL: &str = "\u{E604}"; +pub const CIRCLE_WAVY: &str = "\u{E604}"; +pub const SEAL_CHECK: &str = "\u{E606}"; +pub const CIRCLE_WAVY_CHECK: &str = "\u{E606}"; +pub const SEAL_PERCENT: &str = "\u{E60A}"; +pub const SEAL_QUESTION: &str = "\u{E608}"; +pub const CIRCLE_WAVY_QUESTION: &str = "\u{E608}"; +pub const SEAL_WARNING: &str = "\u{E60C}"; +pub const CIRCLE_WAVY_WARNING: &str = "\u{E60C}"; +pub const SEAT: &str = "\u{EB8E}"; +pub const SEATBELT: &str = "\u{EDFE}"; +pub const SECURITY_CAMERA: &str = "\u{ECA4}"; +pub const SELECTION: &str = "\u{E69A}"; +pub const SELECTION_ALL: &str = "\u{E746}"; +pub const SELECTION_BACKGROUND: &str = "\u{EAF8}"; +pub const SELECTION_FOREGROUND: &str = "\u{EAF6}"; +pub const SELECTION_INVERSE: &str = "\u{E744}"; +pub const SELECTION_PLUS: &str = "\u{E69C}"; +pub const SELECTION_SLASH: &str = "\u{E69E}"; +pub const SHAPES: &str = "\u{EC5E}"; +pub const SHARE: &str = "\u{E406}"; +pub const SHARE_FAT: &str = "\u{ED52}"; +pub const SHARE_NETWORK: &str = "\u{E408}"; +pub const SHIELD: &str = "\u{E40A}"; +pub const SHIELD_CHECK: &str = "\u{E40C}"; +pub const SHIELD_CHECKERED: &str = "\u{E708}"; +pub const SHIELD_CHEVRON: &str = "\u{E40E}"; +pub const SHIELD_PLUS: &str = "\u{E706}"; +pub const SHIELD_SLASH: &str = "\u{E410}"; +pub const SHIELD_STAR: &str = "\u{EC34}"; +pub const SHIELD_WARNING: &str = "\u{E412}"; +pub const SHIPPING_CONTAINER: &str = "\u{E78C}"; +pub const SHIRT_FOLDED: &str = "\u{EA92}"; +pub const SHOOTING_STAR: &str = "\u{ECFA}"; +pub const SHOPPING_BAG: &str = "\u{E416}"; +pub const SHOPPING_BAG_OPEN: &str = "\u{E418}"; +pub const SHOPPING_CART: &str = "\u{E41E}"; +pub const SHOPPING_CART_SIMPLE: &str = "\u{E420}"; +pub const SHOVEL: &str = "\u{E9E6}"; +pub const SHOWER: &str = "\u{E776}"; +pub const SHRIMP: &str = "\u{EAB4}"; +pub const SHUFFLE: &str = "\u{E422}"; +pub const SHUFFLE_ANGULAR: &str = "\u{E424}"; +pub const SHUFFLE_SIMPLE: &str = "\u{E426}"; +pub const SIDEBAR: &str = "\u{EAB6}"; +pub const SIDEBAR_SIMPLE: &str = "\u{EC24}"; +pub const SIGMA: &str = "\u{EAB8}"; +pub const SIGN_IN: &str = "\u{E428}"; +pub const SIGN_OUT: &str = "\u{E42A}"; +pub const SIGNATURE: &str = "\u{EBAC}"; +pub const SIGNPOST: &str = "\u{E89C}"; +pub const SIM_CARD: &str = "\u{E664}"; +pub const SIREN: &str = "\u{E9B8}"; +pub const SKETCH_LOGO: &str = "\u{E42C}"; +pub const SKIP_BACK: &str = "\u{E5A4}"; +pub const SKIP_BACK_CIRCLE: &str = "\u{E42E}"; +pub const SKIP_FORWARD: &str = "\u{E5A6}"; +pub const SKIP_FORWARD_CIRCLE: &str = "\u{E430}"; +pub const SKULL: &str = "\u{E916}"; +pub const SKYPE_LOGO: &str = "\u{E8DC}"; +pub const SLACK_LOGO: &str = "\u{E5A8}"; +pub const SLIDERS: &str = "\u{E432}"; +pub const SLIDERS_HORIZONTAL: &str = "\u{E434}"; +pub const SLIDESHOW: &str = "\u{ED32}"; +pub const SMILEY: &str = "\u{E436}"; +pub const SMILEY_ANGRY: &str = "\u{EC62}"; +pub const SMILEY_BLANK: &str = "\u{E438}"; +pub const SMILEY_MEH: &str = "\u{E43A}"; +pub const SMILEY_MELTING: &str = "\u{EE56}"; +pub const SMILEY_NERVOUS: &str = "\u{E43C}"; +pub const SMILEY_SAD: &str = "\u{E43E}"; +pub const SMILEY_STICKER: &str = "\u{E440}"; +pub const SMILEY_WINK: &str = "\u{E666}"; +pub const SMILEY_X_EYES: &str = "\u{E442}"; +pub const SNAPCHAT_LOGO: &str = "\u{E668}"; +pub const SNEAKER: &str = "\u{E80C}"; +pub const SNEAKER_MOVE: &str = "\u{ED60}"; +pub const SNOWFLAKE: &str = "\u{E5AA}"; +pub const SOCCER_BALL: &str = "\u{E716}"; +pub const SOCK: &str = "\u{ECCE}"; +pub const SOLAR_PANEL: &str = "\u{ED7A}"; +pub const SOLAR_ROOF: &str = "\u{ED7B}"; +pub const SORT_ASCENDING: &str = "\u{E444}"; +pub const SORT_DESCENDING: &str = "\u{E446}"; +pub const SOUNDCLOUD_LOGO: &str = "\u{E8DE}"; +pub const SPADE: &str = "\u{E448}"; +pub const SPARKLE: &str = "\u{E6A2}"; +pub const SPEAKER_HIFI: &str = "\u{EA08}"; +pub const SPEAKER_HIGH: &str = "\u{E44A}"; +pub const SPEAKER_LOW: &str = "\u{E44C}"; +pub const SPEAKER_NONE: &str = "\u{E44E}"; +pub const SPEAKER_SIMPLE_HIGH: &str = "\u{E450}"; +pub const SPEAKER_SIMPLE_LOW: &str = "\u{E452}"; +pub const SPEAKER_SIMPLE_NONE: &str = "\u{E454}"; +pub const SPEAKER_SIMPLE_SLASH: &str = "\u{E456}"; +pub const SPEAKER_SIMPLE_X: &str = "\u{E458}"; +pub const SPEAKER_SLASH: &str = "\u{E45A}"; +pub const SPEAKER_X: &str = "\u{E45C}"; +pub const SPEEDOMETER: &str = "\u{EE74}"; +pub const SPHERE: &str = "\u{EE66}"; +pub const SPINNER: &str = "\u{E66A}"; +pub const SPINNER_BALL: &str = "\u{EE28}"; +pub const SPINNER_GAP: &str = "\u{E66C}"; +pub const SPIRAL: &str = "\u{E9FA}"; +pub const SPLIT_HORIZONTAL: &str = "\u{E872}"; +pub const SPLIT_VERTICAL: &str = "\u{E876}"; +pub const SPOTIFY_LOGO: &str = "\u{E66E}"; +pub const SPRAY_BOTTLE: &str = "\u{E7E4}"; +pub const SQUARE: &str = "\u{E45E}"; +pub const SQUARE_HALF: &str = "\u{E462}"; +pub const SQUARE_HALF_BOTTOM: &str = "\u{EB16}"; +pub const SQUARE_LOGO: &str = "\u{E690}"; +pub const SQUARE_SPLIT_HORIZONTAL: &str = "\u{E870}"; +pub const SQUARE_SPLIT_VERTICAL: &str = "\u{E874}"; +pub const SQUARES_FOUR: &str = "\u{E464}"; +pub const STACK: &str = "\u{E466}"; +pub const STACK_MINUS: &str = "\u{EDF4}"; +pub const STACK_OVERFLOW_LOGO: &str = "\u{EB78}"; +pub const STACK_PLUS: &str = "\u{EDF6}"; +pub const STACK_SIMPLE: &str = "\u{E468}"; +pub const STAIRS: &str = "\u{E8EC}"; +pub const STAMP: &str = "\u{EA48}"; +pub const STANDARD_DEFINITION: &str = "\u{EA90}"; +pub const STAR: &str = "\u{E46A}"; +pub const STAR_AND_CRESCENT: &str = "\u{ECF4}"; +pub const STAR_FOUR: &str = "\u{E6A4}"; +pub const STAR_HALF: &str = "\u{E70A}"; +pub const STAR_OF_DAVID: &str = "\u{E89E}"; +pub const STEAM_LOGO: &str = "\u{EAD4}"; +pub const STEERING_WHEEL: &str = "\u{E9AC}"; +pub const STEPS: &str = "\u{ECBE}"; +pub const STETHOSCOPE: &str = "\u{E7EA}"; +pub const STICKER: &str = "\u{E5AC}"; +pub const STOOL: &str = "\u{EA44}"; +pub const STOP: &str = "\u{E46C}"; +pub const STOP_CIRCLE: &str = "\u{E46E}"; +pub const STOREFRONT: &str = "\u{E470}"; +pub const STRATEGY: &str = "\u{EA3A}"; +pub const STRIPE_LOGO: &str = "\u{E698}"; +pub const STUDENT: &str = "\u{E73E}"; +pub const SUBSET_OF: &str = "\u{EDC0}"; +pub const SUBSET_PROPER_OF: &str = "\u{EDB6}"; +pub const SUBTITLES: &str = "\u{E1A8}"; +pub const SUBTITLES_SLASH: &str = "\u{E1A6}"; +pub const SUBTRACT: &str = "\u{EBD6}"; +pub const SUBTRACT_SQUARE: &str = "\u{EBD4}"; +pub const SUBWAY: &str = "\u{E498}"; +pub const SUITCASE: &str = "\u{E5AE}"; +pub const SUITCASE_ROLLING: &str = "\u{E9B0}"; +pub const SUITCASE_SIMPLE: &str = "\u{E5B0}"; +pub const SUN: &str = "\u{E472}"; +pub const SUN_DIM: &str = "\u{E474}"; +pub const SUN_HORIZON: &str = "\u{E5B6}"; +pub const SUNGLASSES: &str = "\u{E816}"; +pub const SUPERSET_OF: &str = "\u{EDB8}"; +pub const SUPERSET_PROPER_OF: &str = "\u{EDB4}"; +pub const SWAP: &str = "\u{E83C}"; +pub const SWATCHES: &str = "\u{E5B8}"; +pub const SWIMMING_POOL: &str = "\u{ECB6}"; +pub const SWORD: &str = "\u{E5BA}"; +pub const SYNAGOGUE: &str = "\u{ECEC}"; +pub const SYRINGE: &str = "\u{E968}"; +pub const T_SHIRT: &str = "\u{E670}"; +pub const TABLE: &str = "\u{E476}"; +pub const TABS: &str = "\u{E778}"; +pub const TAG: &str = "\u{E478}"; +pub const TAG_CHEVRON: &str = "\u{E672}"; +pub const TAG_SIMPLE: &str = "\u{E47A}"; +pub const TARGET: &str = "\u{E47C}"; +pub const TAXI: &str = "\u{E902}"; +pub const TEA_BAG: &str = "\u{E8E6}"; +pub const TELEGRAM_LOGO: &str = "\u{E5BC}"; +pub const TELEVISION: &str = "\u{E754}"; +pub const TELEVISION_SIMPLE: &str = "\u{EAE6}"; +pub const TENNIS_BALL: &str = "\u{E720}"; +pub const TENT: &str = "\u{E8BA}"; +pub const TERMINAL: &str = "\u{E47E}"; +pub const TERMINAL_WINDOW: &str = "\u{EAE8}"; +pub const TEST_TUBE: &str = "\u{E7A0}"; +pub const TEXT_A_UNDERLINE: &str = "\u{ED34}"; +pub const TEXT_AA: &str = "\u{E6EE}"; +pub const TEXT_ALIGN_CENTER: &str = "\u{E480}"; +pub const TEXT_ALIGN_JUSTIFY: &str = "\u{E482}"; +pub const TEXT_ALIGN_LEFT: &str = "\u{E484}"; +pub const TEXT_ALIGN_RIGHT: &str = "\u{E486}"; +pub const TEXT_B: &str = "\u{E5BE}"; +pub const TEXT_BOLDER: &str = "\u{E5BE}"; +pub const TEXT_COLUMNS: &str = "\u{EC96}"; +pub const TEXT_H: &str = "\u{E6BA}"; +pub const TEXT_H_FIVE: &str = "\u{E6C4}"; +pub const TEXT_H_FOUR: &str = "\u{E6C2}"; +pub const TEXT_H_ONE: &str = "\u{E6BC}"; +pub const TEXT_H_SIX: &str = "\u{E6C6}"; +pub const TEXT_H_THREE: &str = "\u{E6C0}"; +pub const TEXT_H_TWO: &str = "\u{E6BE}"; +pub const TEXT_INDENT: &str = "\u{EA1E}"; +pub const TEXT_ITALIC: &str = "\u{E5C0}"; +pub const TEXT_OUTDENT: &str = "\u{EA1C}"; +pub const TEXT_STRIKETHROUGH: &str = "\u{E5C2}"; +pub const TEXT_SUBSCRIPT: &str = "\u{EC98}"; +pub const TEXT_SUPERSCRIPT: &str = "\u{EC9A}"; +pub const TEXT_T: &str = "\u{E48A}"; +pub const TEXT_T_SLASH: &str = "\u{E488}"; +pub const TEXT_UNDERLINE: &str = "\u{E5C4}"; +pub const TEXTBOX: &str = "\u{EB0A}"; +pub const THERMOMETER: &str = "\u{E5C6}"; +pub const THERMOMETER_COLD: &str = "\u{E5C8}"; +pub const THERMOMETER_HOT: &str = "\u{E5CA}"; +pub const THERMOMETER_SIMPLE: &str = "\u{E5CC}"; +pub const THREADS_LOGO: &str = "\u{ED9E}"; +pub const THREE_D: &str = "\u{EA5A}"; +pub const THUMBS_DOWN: &str = "\u{E48C}"; +pub const THUMBS_UP: &str = "\u{E48E}"; +pub const TICKET: &str = "\u{E490}"; +pub const TIDAL_LOGO: &str = "\u{ED1C}"; +pub const TIKTOK_LOGO: &str = "\u{EAF2}"; +pub const TILDE: &str = "\u{EDA8}"; +pub const TIMER: &str = "\u{E492}"; +pub const TIP_JAR: &str = "\u{E7E2}"; +pub const TIPI: &str = "\u{ED30}"; +pub const TIRE: &str = "\u{EDD2}"; +pub const TOGGLE_LEFT: &str = "\u{E674}"; +pub const TOGGLE_RIGHT: &str = "\u{E676}"; +pub const TOILET: &str = "\u{E79A}"; +pub const TOILET_PAPER: &str = "\u{E79C}"; +pub const TOOLBOX: &str = "\u{ECA0}"; +pub const TOOTH: &str = "\u{E9CC}"; +pub const TORNADO: &str = "\u{E88C}"; +pub const TOTE: &str = "\u{E494}"; +pub const TOTE_SIMPLE: &str = "\u{E678}"; +pub const TOWEL: &str = "\u{EDE6}"; +pub const TRACTOR: &str = "\u{EC6E}"; +pub const TRADEMARK: &str = "\u{E9F0}"; +pub const TRADEMARK_REGISTERED: &str = "\u{E3F4}"; +pub const TRAFFIC_CONE: &str = "\u{E9A8}"; +pub const TRAFFIC_SIGN: &str = "\u{E67A}"; +pub const TRAFFIC_SIGNAL: &str = "\u{E9AA}"; +pub const TRAIN: &str = "\u{E496}"; +pub const TRAIN_REGIONAL: &str = "\u{E49E}"; +pub const TRAIN_SIMPLE: &str = "\u{E4A0}"; +pub const TRAM: &str = "\u{E9EC}"; +pub const TRANSLATE: &str = "\u{E4A2}"; +pub const TRASH: &str = "\u{E4A6}"; +pub const TRASH_SIMPLE: &str = "\u{E4A8}"; +pub const TRAY: &str = "\u{E4AA}"; +pub const TRAY_ARROW_DOWN: &str = "\u{E010}"; +pub const ARCHIVE_TRAY: &str = "\u{E010}"; +pub const TRAY_ARROW_UP: &str = "\u{EE52}"; +pub const TREASURE_CHEST: &str = "\u{EDE2}"; +pub const TREE: &str = "\u{E6DA}"; +pub const TREE_EVERGREEN: &str = "\u{E6DC}"; +pub const TREE_PALM: &str = "\u{E91A}"; +pub const TREE_STRUCTURE: &str = "\u{E67C}"; +pub const TREE_VIEW: &str = "\u{EE48}"; +pub const TREND_DOWN: &str = "\u{E4AC}"; +pub const TREND_UP: &str = "\u{E4AE}"; +pub const TRIANGLE: &str = "\u{E4B0}"; +pub const TRIANGLE_DASHED: &str = "\u{E4B2}"; +pub const TROLLEY: &str = "\u{E5B2}"; +pub const TROLLEY_SUITCASE: &str = "\u{E5B4}"; +pub const TROPHY: &str = "\u{E67E}"; +pub const TRUCK: &str = "\u{E4B4}"; +pub const TRUCK_TRAILER: &str = "\u{E4B6}"; +pub const TUMBLR_LOGO: &str = "\u{E8D4}"; +pub const TWITCH_LOGO: &str = "\u{E5CE}"; +pub const TWITTER_LOGO: &str = "\u{E4BA}"; +pub const UMBRELLA: &str = "\u{E684}"; +pub const UMBRELLA_SIMPLE: &str = "\u{E686}"; +pub const UNION: &str = "\u{EDBE}"; +pub const UNITE: &str = "\u{E87E}"; +pub const UNITE_SQUARE: &str = "\u{E878}"; +pub const UPLOAD: &str = "\u{E4BE}"; +pub const UPLOAD_SIMPLE: &str = "\u{E4C0}"; +pub const USB: &str = "\u{E956}"; +pub const USER: &str = "\u{E4C2}"; +pub const USER_CHECK: &str = "\u{EAFA}"; +pub const USER_CIRCLE: &str = "\u{E4C4}"; +pub const USER_CIRCLE_CHECK: &str = "\u{EC38}"; +pub const USER_CIRCLE_DASHED: &str = "\u{EC36}"; +pub const USER_CIRCLE_GEAR: &str = "\u{E4C6}"; +pub const USER_CIRCLE_MINUS: &str = "\u{E4C8}"; +pub const USER_CIRCLE_PLUS: &str = "\u{E4CA}"; +pub const USER_FOCUS: &str = "\u{E6FC}"; +pub const USER_GEAR: &str = "\u{E4CC}"; +pub const USER_LIST: &str = "\u{E73C}"; +pub const USER_MINUS: &str = "\u{E4CE}"; +pub const USER_PLUS: &str = "\u{E4D0}"; +pub const USER_RECTANGLE: &str = "\u{E4D2}"; +pub const USER_SOUND: &str = "\u{ECA8}"; +pub const USER_SQUARE: &str = "\u{E4D4}"; +pub const USER_SWITCH: &str = "\u{E756}"; +pub const USERS: &str = "\u{E4D6}"; +pub const USERS_FOUR: &str = "\u{E68C}"; +pub const USERS_THREE: &str = "\u{E68E}"; +pub const VAN: &str = "\u{E826}"; +pub const VAULT: &str = "\u{E76E}"; +pub const VECTOR_THREE: &str = "\u{EE62}"; +pub const VECTOR_TWO: &str = "\u{EE64}"; +pub const VIBRATE: &str = "\u{E4D8}"; +pub const VIDEO: &str = "\u{E740}"; +pub const VIDEO_CAMERA: &str = "\u{E4DA}"; +pub const VIDEO_CAMERA_SLASH: &str = "\u{E4DC}"; +pub const VIDEO_CONFERENCE: &str = "\u{EDCE}"; +pub const VIGNETTE: &str = "\u{EBA2}"; +pub const VINYL_RECORD: &str = "\u{ECAC}"; +pub const VIRTUAL_REALITY: &str = "\u{E7B8}"; +pub const VIRUS: &str = "\u{E7D6}"; +pub const VISOR: &str = "\u{EE2A}"; +pub const VOICEMAIL: &str = "\u{E4DE}"; +pub const VOLLEYBALL: &str = "\u{E726}"; +pub const WALL: &str = "\u{E688}"; +pub const WALLET: &str = "\u{E68A}"; +pub const WAREHOUSE: &str = "\u{ECD4}"; +pub const WARNING: &str = "\u{E4E0}"; +pub const WARNING_CIRCLE: &str = "\u{E4E2}"; +pub const WARNING_DIAMOND: &str = "\u{E7FC}"; +pub const WARNING_OCTAGON: &str = "\u{E4E4}"; +pub const WASHING_MACHINE: &str = "\u{EDE8}"; +pub const WATCH: &str = "\u{E4E6}"; +pub const WAVE_SAWTOOTH: &str = "\u{EA9C}"; +pub const WAVE_SINE: &str = "\u{EA9A}"; +pub const WAVE_SQUARE: &str = "\u{EA9E}"; +pub const WAVE_TRIANGLE: &str = "\u{EAA0}"; +pub const WAVEFORM: &str = "\u{E802}"; +pub const WAVEFORM_SLASH: &str = "\u{E800}"; +pub const WAVES: &str = "\u{E6DE}"; +pub const WEBCAM: &str = "\u{E9B2}"; +pub const WEBCAM_SLASH: &str = "\u{ECDC}"; +pub const WEBHOOKS_LOGO: &str = "\u{ECAE}"; +pub const WECHAT_LOGO: &str = "\u{E8D2}"; +pub const WHATSAPP_LOGO: &str = "\u{E5D0}"; +pub const WHEELCHAIR: &str = "\u{E4E8}"; +pub const WHEELCHAIR_MOTION: &str = "\u{E89A}"; +pub const WIFI_HIGH: &str = "\u{E4EA}"; +pub const WIFI_LOW: &str = "\u{E4EC}"; +pub const WIFI_MEDIUM: &str = "\u{E4EE}"; +pub const WIFI_NONE: &str = "\u{E4F0}"; +pub const WIFI_SLASH: &str = "\u{E4F2}"; +pub const WIFI_X: &str = "\u{E4F4}"; +pub const WIND: &str = "\u{E5D2}"; +pub const WINDMILL: &str = "\u{E9F8}"; +pub const WINDOWS_LOGO: &str = "\u{E692}"; +pub const WINE: &str = "\u{E6B2}"; +pub const WRENCH: &str = "\u{E5D4}"; +pub const X: &str = "\u{E4F6}"; +pub const X_CIRCLE: &str = "\u{E4F8}"; +pub const X_LOGO: &str = "\u{E4BC}"; +pub const X_SQUARE: &str = "\u{E4FA}"; +pub const YARN: &str = "\u{ED9A}"; +pub const YIN_YANG: &str = "\u{E92A}"; +pub const YOUTUBE_LOGO: &str = "\u{E4FC}"; + +pub const ICONS: &[(&str, &str)] = &[ + ("ACORN", ACORN), + ("ADDRESS_BOOK", ADDRESS_BOOK), + ("ADDRESS_BOOK_TABS", ADDRESS_BOOK_TABS), + ("AIR_TRAFFIC_CONTROL", AIR_TRAFFIC_CONTROL), + ("AIRPLANE", AIRPLANE), + ("AIRPLANE_IN_FLIGHT", AIRPLANE_IN_FLIGHT), + ("AIRPLANE_LANDING", AIRPLANE_LANDING), + ("AIRPLANE_TAKEOFF", AIRPLANE_TAKEOFF), + ("AIRPLANE_TAXIING", AIRPLANE_TAXIING), + ("AIRPLANE_TILT", AIRPLANE_TILT), + ("AIRPLAY", AIRPLAY), + ("ALARM", ALARM), + ("ALIEN", ALIEN), + ("ALIGN_BOTTOM", ALIGN_BOTTOM), + ("ALIGN_BOTTOM_SIMPLE", ALIGN_BOTTOM_SIMPLE), + ("ALIGN_CENTER_HORIZONTAL", ALIGN_CENTER_HORIZONTAL), + ("ALIGN_CENTER_HORIZONTAL_SIMPLE", ALIGN_CENTER_HORIZONTAL_SIMPLE), + ("ALIGN_CENTER_VERTICAL", ALIGN_CENTER_VERTICAL), + ("ALIGN_CENTER_VERTICAL_SIMPLE", ALIGN_CENTER_VERTICAL_SIMPLE), + ("ALIGN_LEFT", ALIGN_LEFT), + ("ALIGN_LEFT_SIMPLE", ALIGN_LEFT_SIMPLE), + ("ALIGN_RIGHT", ALIGN_RIGHT), + ("ALIGN_RIGHT_SIMPLE", ALIGN_RIGHT_SIMPLE), + ("ALIGN_TOP", ALIGN_TOP), + ("ALIGN_TOP_SIMPLE", ALIGN_TOP_SIMPLE), + ("AMAZON_LOGO", AMAZON_LOGO), + ("AMBULANCE", AMBULANCE), + ("ANCHOR", ANCHOR), + ("ANCHOR_SIMPLE", ANCHOR_SIMPLE), + ("ANDROID_LOGO", ANDROID_LOGO), + ("ANGLE", ANGLE), + ("ANGULAR_LOGO", ANGULAR_LOGO), + ("APERTURE", APERTURE), + ("APP_STORE_LOGO", APP_STORE_LOGO), + ("APP_WINDOW", APP_WINDOW), + ("APPLE_LOGO", APPLE_LOGO), + ("APPLE_PODCASTS_LOGO", APPLE_PODCASTS_LOGO), + ("APPROXIMATE_EQUALS", APPROXIMATE_EQUALS), + ("ARCHIVE", ARCHIVE), + ("ARMCHAIR", ARMCHAIR), + ("ARROW_ARC_LEFT", ARROW_ARC_LEFT), + ("ARROW_ARC_RIGHT", ARROW_ARC_RIGHT), + ("ARROW_BEND_DOUBLE_UP_LEFT", ARROW_BEND_DOUBLE_UP_LEFT), + ("ARROW_BEND_DOUBLE_UP_RIGHT", ARROW_BEND_DOUBLE_UP_RIGHT), + ("ARROW_BEND_DOWN_LEFT", ARROW_BEND_DOWN_LEFT), + ("ARROW_BEND_DOWN_RIGHT", ARROW_BEND_DOWN_RIGHT), + ("ARROW_BEND_LEFT_DOWN", ARROW_BEND_LEFT_DOWN), + ("ARROW_BEND_LEFT_UP", ARROW_BEND_LEFT_UP), + ("ARROW_BEND_RIGHT_DOWN", ARROW_BEND_RIGHT_DOWN), + ("ARROW_BEND_RIGHT_UP", ARROW_BEND_RIGHT_UP), + ("ARROW_BEND_UP_LEFT", ARROW_BEND_UP_LEFT), + ("ARROW_BEND_UP_RIGHT", ARROW_BEND_UP_RIGHT), + ("ARROW_CIRCLE_DOWN", ARROW_CIRCLE_DOWN), + ("ARROW_CIRCLE_DOWN_LEFT", ARROW_CIRCLE_DOWN_LEFT), + ("ARROW_CIRCLE_DOWN_RIGHT", ARROW_CIRCLE_DOWN_RIGHT), + ("ARROW_CIRCLE_LEFT", ARROW_CIRCLE_LEFT), + ("ARROW_CIRCLE_RIGHT", ARROW_CIRCLE_RIGHT), + ("ARROW_CIRCLE_UP", ARROW_CIRCLE_UP), + ("ARROW_CIRCLE_UP_LEFT", ARROW_CIRCLE_UP_LEFT), + ("ARROW_CIRCLE_UP_RIGHT", ARROW_CIRCLE_UP_RIGHT), + ("ARROW_CLOCKWISE", ARROW_CLOCKWISE), + ("ARROW_COUNTER_CLOCKWISE", ARROW_COUNTER_CLOCKWISE), + ("ARROW_DOWN", ARROW_DOWN), + ("ARROW_DOWN_LEFT", ARROW_DOWN_LEFT), + ("ARROW_DOWN_RIGHT", ARROW_DOWN_RIGHT), + ("ARROW_ELBOW_DOWN_LEFT", ARROW_ELBOW_DOWN_LEFT), + ("ARROW_ELBOW_DOWN_RIGHT", ARROW_ELBOW_DOWN_RIGHT), + ("ARROW_ELBOW_LEFT", ARROW_ELBOW_LEFT), + ("ARROW_ELBOW_LEFT_DOWN", ARROW_ELBOW_LEFT_DOWN), + ("ARROW_ELBOW_LEFT_UP", ARROW_ELBOW_LEFT_UP), + ("ARROW_ELBOW_RIGHT", ARROW_ELBOW_RIGHT), + ("ARROW_ELBOW_RIGHT_DOWN", ARROW_ELBOW_RIGHT_DOWN), + ("ARROW_ELBOW_RIGHT_UP", ARROW_ELBOW_RIGHT_UP), + ("ARROW_ELBOW_UP_LEFT", ARROW_ELBOW_UP_LEFT), + ("ARROW_ELBOW_UP_RIGHT", ARROW_ELBOW_UP_RIGHT), + ("ARROW_FAT_DOWN", ARROW_FAT_DOWN), + ("ARROW_FAT_LEFT", ARROW_FAT_LEFT), + ("ARROW_FAT_LINE_DOWN", ARROW_FAT_LINE_DOWN), + ("ARROW_FAT_LINE_LEFT", ARROW_FAT_LINE_LEFT), + ("ARROW_FAT_LINE_RIGHT", ARROW_FAT_LINE_RIGHT), + ("ARROW_FAT_LINE_UP", ARROW_FAT_LINE_UP), + ("ARROW_FAT_LINES_DOWN", ARROW_FAT_LINES_DOWN), + ("ARROW_FAT_LINES_LEFT", ARROW_FAT_LINES_LEFT), + ("ARROW_FAT_LINES_RIGHT", ARROW_FAT_LINES_RIGHT), + ("ARROW_FAT_LINES_UP", ARROW_FAT_LINES_UP), + ("ARROW_FAT_RIGHT", ARROW_FAT_RIGHT), + ("ARROW_FAT_UP", ARROW_FAT_UP), + ("ARROW_LEFT", ARROW_LEFT), + ("ARROW_LINE_DOWN", ARROW_LINE_DOWN), + ("ARROW_LINE_DOWN_LEFT", ARROW_LINE_DOWN_LEFT), + ("ARROW_LINE_DOWN_RIGHT", ARROW_LINE_DOWN_RIGHT), + ("ARROW_LINE_LEFT", ARROW_LINE_LEFT), + ("ARROW_LINE_RIGHT", ARROW_LINE_RIGHT), + ("ARROW_LINE_UP", ARROW_LINE_UP), + ("ARROW_LINE_UP_LEFT", ARROW_LINE_UP_LEFT), + ("ARROW_LINE_UP_RIGHT", ARROW_LINE_UP_RIGHT), + ("ARROW_RIGHT", ARROW_RIGHT), + ("ARROW_SQUARE_DOWN", ARROW_SQUARE_DOWN), + ("ARROW_SQUARE_DOWN_LEFT", ARROW_SQUARE_DOWN_LEFT), + ("ARROW_SQUARE_DOWN_RIGHT", ARROW_SQUARE_DOWN_RIGHT), + ("ARROW_SQUARE_IN", ARROW_SQUARE_IN), + ("ARROW_SQUARE_LEFT", ARROW_SQUARE_LEFT), + ("ARROW_SQUARE_OUT", ARROW_SQUARE_OUT), + ("ARROW_SQUARE_RIGHT", ARROW_SQUARE_RIGHT), + ("ARROW_SQUARE_UP", ARROW_SQUARE_UP), + ("ARROW_SQUARE_UP_LEFT", ARROW_SQUARE_UP_LEFT), + ("ARROW_SQUARE_UP_RIGHT", ARROW_SQUARE_UP_RIGHT), + ("ARROW_U_DOWN_LEFT", ARROW_U_DOWN_LEFT), + ("ARROW_U_DOWN_RIGHT", ARROW_U_DOWN_RIGHT), + ("ARROW_U_LEFT_DOWN", ARROW_U_LEFT_DOWN), + ("ARROW_U_LEFT_UP", ARROW_U_LEFT_UP), + ("ARROW_U_RIGHT_DOWN", ARROW_U_RIGHT_DOWN), + ("ARROW_U_RIGHT_UP", ARROW_U_RIGHT_UP), + ("ARROW_U_UP_LEFT", ARROW_U_UP_LEFT), + ("ARROW_U_UP_RIGHT", ARROW_U_UP_RIGHT), + ("ARROW_UP", ARROW_UP), + ("ARROW_UP_LEFT", ARROW_UP_LEFT), + ("ARROW_UP_RIGHT", ARROW_UP_RIGHT), + ("ARROWS_CLOCKWISE", ARROWS_CLOCKWISE), + ("ARROWS_COUNTER_CLOCKWISE", ARROWS_COUNTER_CLOCKWISE), + ("ARROWS_DOWN_UP", ARROWS_DOWN_UP), + ("ARROWS_HORIZONTAL", ARROWS_HORIZONTAL), + ("ARROWS_IN", ARROWS_IN), + ("ARROWS_IN_CARDINAL", ARROWS_IN_CARDINAL), + ("ARROWS_IN_LINE_HORIZONTAL", ARROWS_IN_LINE_HORIZONTAL), + ("ARROWS_IN_LINE_VERTICAL", ARROWS_IN_LINE_VERTICAL), + ("ARROWS_IN_SIMPLE", ARROWS_IN_SIMPLE), + ("ARROWS_LEFT_RIGHT", ARROWS_LEFT_RIGHT), + ("ARROWS_MERGE", ARROWS_MERGE), + ("ARROWS_OUT", ARROWS_OUT), + ("ARROWS_OUT_CARDINAL", ARROWS_OUT_CARDINAL), + ("ARROWS_OUT_LINE_HORIZONTAL", ARROWS_OUT_LINE_HORIZONTAL), + ("ARROWS_OUT_LINE_VERTICAL", ARROWS_OUT_LINE_VERTICAL), + ("ARROWS_OUT_SIMPLE", ARROWS_OUT_SIMPLE), + ("ARROWS_SPLIT", ARROWS_SPLIT), + ("ARROWS_VERTICAL", ARROWS_VERTICAL), + ("ARTICLE", ARTICLE), + ("ARTICLE_MEDIUM", ARTICLE_MEDIUM), + ("ARTICLE_NY_TIMES", ARTICLE_NY_TIMES), + ("ASCLEPIUS", ASCLEPIUS), + ("CADUCEUS", CADUCEUS), + ("ASTERISK", ASTERISK), + ("ASTERISK_SIMPLE", ASTERISK_SIMPLE), + ("AT", AT), + ("ATOM", ATOM), + ("AVOCADO", AVOCADO), + ("AXE", AXE), + ("BABY", BABY), + ("BABY_CARRIAGE", BABY_CARRIAGE), + ("BACKPACK", BACKPACK), + ("BACKSPACE", BACKSPACE), + ("BAG", BAG), + ("BAG_SIMPLE", BAG_SIMPLE), + ("BALLOON", BALLOON), + ("BANDAIDS", BANDAIDS), + ("BANK", BANK), + ("BARBELL", BARBELL), + ("BARCODE", BARCODE), + ("BARN", BARN), + ("BARRICADE", BARRICADE), + ("BASEBALL", BASEBALL), + ("BASEBALL_CAP", BASEBALL_CAP), + ("BASEBALL_HELMET", BASEBALL_HELMET), + ("BASKET", BASKET), + ("BASKETBALL", BASKETBALL), + ("BATHTUB", BATHTUB), + ("BATTERY_CHARGING", BATTERY_CHARGING), + ("BATTERY_CHARGING_VERTICAL", BATTERY_CHARGING_VERTICAL), + ("BATTERY_EMPTY", BATTERY_EMPTY), + ("BATTERY_FULL", BATTERY_FULL), + ("BATTERY_HIGH", BATTERY_HIGH), + ("BATTERY_LOW", BATTERY_LOW), + ("BATTERY_MEDIUM", BATTERY_MEDIUM), + ("BATTERY_PLUS", BATTERY_PLUS), + ("BATTERY_PLUS_VERTICAL", BATTERY_PLUS_VERTICAL), + ("BATTERY_VERTICAL_EMPTY", BATTERY_VERTICAL_EMPTY), + ("BATTERY_VERTICAL_FULL", BATTERY_VERTICAL_FULL), + ("BATTERY_VERTICAL_HIGH", BATTERY_VERTICAL_HIGH), + ("BATTERY_VERTICAL_LOW", BATTERY_VERTICAL_LOW), + ("BATTERY_VERTICAL_MEDIUM", BATTERY_VERTICAL_MEDIUM), + ("BATTERY_WARNING", BATTERY_WARNING), + ("BATTERY_WARNING_VERTICAL", BATTERY_WARNING_VERTICAL), + ("BEACH_BALL", BEACH_BALL), + ("BEANIE", BEANIE), + ("BED", BED), + ("BEER_BOTTLE", BEER_BOTTLE), + ("BEER_STEIN", BEER_STEIN), + ("BEHANCE_LOGO", BEHANCE_LOGO), + ("BELL", BELL), + ("BELL_RINGING", BELL_RINGING), + ("BELL_SIMPLE", BELL_SIMPLE), + ("BELL_SIMPLE_RINGING", BELL_SIMPLE_RINGING), + ("BELL_SIMPLE_SLASH", BELL_SIMPLE_SLASH), + ("BELL_SIMPLE_Z", BELL_SIMPLE_Z), + ("BELL_SLASH", BELL_SLASH), + ("BELL_Z", BELL_Z), + ("BELT", BELT), + ("BEZIER_CURVE", BEZIER_CURVE), + ("BICYCLE", BICYCLE), + ("BINARY", BINARY), + ("BINOCULARS", BINOCULARS), + ("BIOHAZARD", BIOHAZARD), + ("BIRD", BIRD), + ("BLUEPRINT", BLUEPRINT), + ("BLUETOOTH", BLUETOOTH), + ("BLUETOOTH_CONNECTED", BLUETOOTH_CONNECTED), + ("BLUETOOTH_SLASH", BLUETOOTH_SLASH), + ("BLUETOOTH_X", BLUETOOTH_X), + ("BOAT", BOAT), + ("BOMB", BOMB), + ("BONE", BONE), + ("BOOK", BOOK), + ("BOOK_BOOKMARK", BOOK_BOOKMARK), + ("BOOK_OPEN", BOOK_OPEN), + ("BOOK_OPEN_TEXT", BOOK_OPEN_TEXT), + ("BOOK_OPEN_USER", BOOK_OPEN_USER), + ("BOOKMARK", BOOKMARK), + ("BOOKMARK_SIMPLE", BOOKMARK_SIMPLE), + ("BOOKMARKS", BOOKMARKS), + ("BOOKMARKS_SIMPLE", BOOKMARKS_SIMPLE), + ("BOOKS", BOOKS), + ("BOOT", BOOT), + ("BOULES", BOULES), + ("BOUNDING_BOX", BOUNDING_BOX), + ("BOWL_FOOD", BOWL_FOOD), + ("BOWL_STEAM", BOWL_STEAM), + ("BOWLING_BALL", BOWLING_BALL), + ("BOX_ARROW_DOWN", BOX_ARROW_DOWN), + ("ARCHIVE_BOX", ARCHIVE_BOX), + ("BOX_ARROW_UP", BOX_ARROW_UP), + ("BOXING_GLOVE", BOXING_GLOVE), + ("BRACKETS_ANGLE", BRACKETS_ANGLE), + ("BRACKETS_CURLY", BRACKETS_CURLY), + ("BRACKETS_ROUND", BRACKETS_ROUND), + ("BRACKETS_SQUARE", BRACKETS_SQUARE), + ("BRAIN", BRAIN), + ("BRANDY", BRANDY), + ("BREAD", BREAD), + ("BRIDGE", BRIDGE), + ("BRIEFCASE", BRIEFCASE), + ("BRIEFCASE_METAL", BRIEFCASE_METAL), + ("BROADCAST", BROADCAST), + ("BROOM", BROOM), + ("BROWSER", BROWSER), + ("BROWSERS", BROWSERS), + ("BUG", BUG), + ("BUG_BEETLE", BUG_BEETLE), + ("BUG_DROID", BUG_DROID), + ("BUILDING", BUILDING), + ("BUILDING_APARTMENT", BUILDING_APARTMENT), + ("BUILDING_OFFICE", BUILDING_OFFICE), + ("BUILDINGS", BUILDINGS), + ("BULLDOZER", BULLDOZER), + ("BUS", BUS), + ("BUTTERFLY", BUTTERFLY), + ("CABLE_CAR", CABLE_CAR), + ("CACTUS", CACTUS), + ("CAKE", CAKE), + ("CALCULATOR", CALCULATOR), + ("CALENDAR", CALENDAR), + ("CALENDAR_BLANK", CALENDAR_BLANK), + ("CALENDAR_CHECK", CALENDAR_CHECK), + ("CALENDAR_DOT", CALENDAR_DOT), + ("CALENDAR_DOTS", CALENDAR_DOTS), + ("CALENDAR_HEART", CALENDAR_HEART), + ("CALENDAR_MINUS", CALENDAR_MINUS), + ("CALENDAR_PLUS", CALENDAR_PLUS), + ("CALENDAR_SLASH", CALENDAR_SLASH), + ("CALENDAR_STAR", CALENDAR_STAR), + ("CALENDAR_X", CALENDAR_X), + ("CALL_BELL", CALL_BELL), + ("CAMERA", CAMERA), + ("CAMERA_PLUS", CAMERA_PLUS), + ("CAMERA_ROTATE", CAMERA_ROTATE), + ("CAMERA_SLASH", CAMERA_SLASH), + ("CAMPFIRE", CAMPFIRE), + ("CAR", CAR), + ("CAR_BATTERY", CAR_BATTERY), + ("CAR_PROFILE", CAR_PROFILE), + ("CAR_SIMPLE", CAR_SIMPLE), + ("CARDHOLDER", CARDHOLDER), + ("CARDS", CARDS), + ("CARDS_THREE", CARDS_THREE), + ("CARET_CIRCLE_DOUBLE_DOWN", CARET_CIRCLE_DOUBLE_DOWN), + ("CARET_CIRCLE_DOUBLE_LEFT", CARET_CIRCLE_DOUBLE_LEFT), + ("CARET_CIRCLE_DOUBLE_RIGHT", CARET_CIRCLE_DOUBLE_RIGHT), + ("CARET_CIRCLE_DOUBLE_UP", CARET_CIRCLE_DOUBLE_UP), + ("CARET_CIRCLE_DOWN", CARET_CIRCLE_DOWN), + ("CARET_CIRCLE_LEFT", CARET_CIRCLE_LEFT), + ("CARET_CIRCLE_RIGHT", CARET_CIRCLE_RIGHT), + ("CARET_CIRCLE_UP", CARET_CIRCLE_UP), + ("CARET_CIRCLE_UP_DOWN", CARET_CIRCLE_UP_DOWN), + ("CARET_DOUBLE_DOWN", CARET_DOUBLE_DOWN), + ("CARET_DOUBLE_LEFT", CARET_DOUBLE_LEFT), + ("CARET_DOUBLE_RIGHT", CARET_DOUBLE_RIGHT), + ("CARET_DOUBLE_UP", CARET_DOUBLE_UP), + ("CARET_DOWN", CARET_DOWN), + ("CARET_LEFT", CARET_LEFT), + ("CARET_LINE_DOWN", CARET_LINE_DOWN), + ("CARET_LINE_LEFT", CARET_LINE_LEFT), + ("CARET_LINE_RIGHT", CARET_LINE_RIGHT), + ("CARET_LINE_UP", CARET_LINE_UP), + ("CARET_RIGHT", CARET_RIGHT), + ("CARET_UP", CARET_UP), + ("CARET_UP_DOWN", CARET_UP_DOWN), + ("CARROT", CARROT), + ("CASH_REGISTER", CASH_REGISTER), + ("CASSETTE_TAPE", CASSETTE_TAPE), + ("CASTLE_TURRET", CASTLE_TURRET), + ("CAT", CAT), + ("CELL_SIGNAL_FULL", CELL_SIGNAL_FULL), + ("CELL_SIGNAL_HIGH", CELL_SIGNAL_HIGH), + ("CELL_SIGNAL_LOW", CELL_SIGNAL_LOW), + ("CELL_SIGNAL_MEDIUM", CELL_SIGNAL_MEDIUM), + ("CELL_SIGNAL_NONE", CELL_SIGNAL_NONE), + ("CELL_SIGNAL_SLASH", CELL_SIGNAL_SLASH), + ("CELL_SIGNAL_X", CELL_SIGNAL_X), + ("CELL_TOWER", CELL_TOWER), + ("CERTIFICATE", CERTIFICATE), + ("CHAIR", CHAIR), + ("CHALKBOARD", CHALKBOARD), + ("CHALKBOARD_SIMPLE", CHALKBOARD_SIMPLE), + ("CHALKBOARD_TEACHER", CHALKBOARD_TEACHER), + ("CHAMPAGNE", CHAMPAGNE), + ("CHARGING_STATION", CHARGING_STATION), + ("CHART_BAR", CHART_BAR), + ("CHART_BAR_HORIZONTAL", CHART_BAR_HORIZONTAL), + ("CHART_DONUT", CHART_DONUT), + ("CHART_LINE", CHART_LINE), + ("CHART_LINE_DOWN", CHART_LINE_DOWN), + ("CHART_LINE_UP", CHART_LINE_UP), + ("CHART_PIE", CHART_PIE), + ("CHART_PIE_SLICE", CHART_PIE_SLICE), + ("CHART_POLAR", CHART_POLAR), + ("CHART_SCATTER", CHART_SCATTER), + ("CHAT", CHAT), + ("CHAT_CENTERED", CHAT_CENTERED), + ("CHAT_CENTERED_DOTS", CHAT_CENTERED_DOTS), + ("CHAT_CENTERED_SLASH", CHAT_CENTERED_SLASH), + ("CHAT_CENTERED_TEXT", CHAT_CENTERED_TEXT), + ("CHAT_CIRCLE", CHAT_CIRCLE), + ("CHAT_CIRCLE_DOTS", CHAT_CIRCLE_DOTS), + ("CHAT_CIRCLE_SLASH", CHAT_CIRCLE_SLASH), + ("CHAT_CIRCLE_TEXT", CHAT_CIRCLE_TEXT), + ("CHAT_DOTS", CHAT_DOTS), + ("CHAT_SLASH", CHAT_SLASH), + ("CHAT_TEARDROP", CHAT_TEARDROP), + ("CHAT_TEARDROP_DOTS", CHAT_TEARDROP_DOTS), + ("CHAT_TEARDROP_SLASH", CHAT_TEARDROP_SLASH), + ("CHAT_TEARDROP_TEXT", CHAT_TEARDROP_TEXT), + ("CHAT_TEXT", CHAT_TEXT), + ("CHATS", CHATS), + ("CHATS_CIRCLE", CHATS_CIRCLE), + ("CHATS_TEARDROP", CHATS_TEARDROP), + ("CHECK", CHECK), + ("CHECK_CIRCLE", CHECK_CIRCLE), + ("CHECK_FAT", CHECK_FAT), + ("CHECK_SQUARE", CHECK_SQUARE), + ("CHECK_SQUARE_OFFSET", CHECK_SQUARE_OFFSET), + ("CHECKERBOARD", CHECKERBOARD), + ("CHECKS", CHECKS), + ("CHEERS", CHEERS), + ("CHEESE", CHEESE), + ("CHEF_HAT", CHEF_HAT), + ("CHERRIES", CHERRIES), + ("CHURCH", CHURCH), + ("CIGARETTE", CIGARETTE), + ("CIGARETTE_SLASH", CIGARETTE_SLASH), + ("CIRCLE", CIRCLE), + ("CIRCLE_DASHED", CIRCLE_DASHED), + ("CIRCLE_HALF", CIRCLE_HALF), + ("CIRCLE_HALF_TILT", CIRCLE_HALF_TILT), + ("CIRCLE_NOTCH", CIRCLE_NOTCH), + ("CIRCLES_FOUR", CIRCLES_FOUR), + ("CIRCLES_THREE", CIRCLES_THREE), + ("CIRCLES_THREE_PLUS", CIRCLES_THREE_PLUS), + ("CIRCUITRY", CIRCUITRY), + ("CITY", CITY), + ("CLIPBOARD", CLIPBOARD), + ("CLIPBOARD_TEXT", CLIPBOARD_TEXT), + ("CLOCK", CLOCK), + ("CLOCK_AFTERNOON", CLOCK_AFTERNOON), + ("CLOCK_CLOCKWISE", CLOCK_CLOCKWISE), + ("CLOCK_COUNTDOWN", CLOCK_COUNTDOWN), + ("CLOCK_COUNTER_CLOCKWISE", CLOCK_COUNTER_CLOCKWISE), + ("CLOCK_USER", CLOCK_USER), + ("CLOSED_CAPTIONING", CLOSED_CAPTIONING), + ("CLOUD", CLOUD), + ("CLOUD_ARROW_DOWN", CLOUD_ARROW_DOWN), + ("CLOUD_ARROW_UP", CLOUD_ARROW_UP), + ("CLOUD_CHECK", CLOUD_CHECK), + ("CLOUD_FOG", CLOUD_FOG), + ("CLOUD_LIGHTNING", CLOUD_LIGHTNING), + ("CLOUD_MOON", CLOUD_MOON), + ("CLOUD_RAIN", CLOUD_RAIN), + ("CLOUD_SLASH", CLOUD_SLASH), + ("CLOUD_SNOW", CLOUD_SNOW), + ("CLOUD_SUN", CLOUD_SUN), + ("CLOUD_WARNING", CLOUD_WARNING), + ("CLOUD_X", CLOUD_X), + ("CLOVER", CLOVER), + ("CLUB", CLUB), + ("COAT_HANGER", COAT_HANGER), + ("CODA_LOGO", CODA_LOGO), + ("CODE", CODE), + ("CODE_BLOCK", CODE_BLOCK), + ("CODE_SIMPLE", CODE_SIMPLE), + ("CODEPEN_LOGO", CODEPEN_LOGO), + ("CODESANDBOX_LOGO", CODESANDBOX_LOGO), + ("COFFEE", COFFEE), + ("COFFEE_BEAN", COFFEE_BEAN), + ("COIN", COIN), + ("COIN_VERTICAL", COIN_VERTICAL), + ("COINS", COINS), + ("COLUMNS", COLUMNS), + ("COLUMNS_PLUS_LEFT", COLUMNS_PLUS_LEFT), + ("COLUMNS_PLUS_RIGHT", COLUMNS_PLUS_RIGHT), + ("COMMAND", COMMAND), + ("COMPASS", COMPASS), + ("COMPASS_ROSE", COMPASS_ROSE), + ("COMPASS_TOOL", COMPASS_TOOL), + ("COMPUTER_TOWER", COMPUTER_TOWER), + ("CONFETTI", CONFETTI), + ("CONTACTLESS_PAYMENT", CONTACTLESS_PAYMENT), + ("CONTROL", CONTROL), + ("COOKIE", COOKIE), + ("COOKING_POT", COOKING_POT), + ("COPY", COPY), + ("COPY_SIMPLE", COPY_SIMPLE), + ("COPYLEFT", COPYLEFT), + ("COPYRIGHT", COPYRIGHT), + ("CORNERS_IN", CORNERS_IN), + ("CORNERS_OUT", CORNERS_OUT), + ("COUCH", COUCH), + ("COURT_BASKETBALL", COURT_BASKETBALL), + ("COW", COW), + ("COWBOY_HAT", COWBOY_HAT), + ("CPU", CPU), + ("CRANE", CRANE), + ("CRANE_TOWER", CRANE_TOWER), + ("CREDIT_CARD", CREDIT_CARD), + ("CRICKET", CRICKET), + ("CROP", CROP), + ("CROSS", CROSS), + ("CROSSHAIR", CROSSHAIR), + ("CROSSHAIR_SIMPLE", CROSSHAIR_SIMPLE), + ("CROWN", CROWN), + ("CROWN_CROSS", CROWN_CROSS), + ("CROWN_SIMPLE", CROWN_SIMPLE), + ("CUBE", CUBE), + ("CUBE_FOCUS", CUBE_FOCUS), + ("CUBE_TRANSPARENT", CUBE_TRANSPARENT), + ("CURRENCY_BTC", CURRENCY_BTC), + ("CURRENCY_CIRCLE_DOLLAR", CURRENCY_CIRCLE_DOLLAR), + ("CURRENCY_CNY", CURRENCY_CNY), + ("CURRENCY_DOLLAR", CURRENCY_DOLLAR), + ("CURRENCY_DOLLAR_SIMPLE", CURRENCY_DOLLAR_SIMPLE), + ("CURRENCY_ETH", CURRENCY_ETH), + ("CURRENCY_EUR", CURRENCY_EUR), + ("CURRENCY_GBP", CURRENCY_GBP), + ("CURRENCY_INR", CURRENCY_INR), + ("CURRENCY_JPY", CURRENCY_JPY), + ("CURRENCY_KRW", CURRENCY_KRW), + ("CURRENCY_KZT", CURRENCY_KZT), + ("CURRENCY_NGN", CURRENCY_NGN), + ("CURRENCY_RUB", CURRENCY_RUB), + ("CURSOR", CURSOR), + ("CURSOR_CLICK", CURSOR_CLICK), + ("CURSOR_TEXT", CURSOR_TEXT), + ("CYLINDER", CYLINDER), + ("DATABASE", DATABASE), + ("DESK", DESK), + ("DESKTOP", DESKTOP), + ("DESKTOP_TOWER", DESKTOP_TOWER), + ("DETECTIVE", DETECTIVE), + ("DEV_TO_LOGO", DEV_TO_LOGO), + ("DEVICE_MOBILE", DEVICE_MOBILE), + ("DEVICE_MOBILE_CAMERA", DEVICE_MOBILE_CAMERA), + ("DEVICE_MOBILE_SLASH", DEVICE_MOBILE_SLASH), + ("DEVICE_MOBILE_SPEAKER", DEVICE_MOBILE_SPEAKER), + ("DEVICE_ROTATE", DEVICE_ROTATE), + ("DEVICE_TABLET", DEVICE_TABLET), + ("DEVICE_TABLET_CAMERA", DEVICE_TABLET_CAMERA), + ("DEVICE_TABLET_SPEAKER", DEVICE_TABLET_SPEAKER), + ("DEVICES", DEVICES), + ("DIAMOND", DIAMOND), + ("DIAMONDS_FOUR", DIAMONDS_FOUR), + ("DICE_FIVE", DICE_FIVE), + ("DICE_FOUR", DICE_FOUR), + ("DICE_ONE", DICE_ONE), + ("DICE_SIX", DICE_SIX), + ("DICE_THREE", DICE_THREE), + ("DICE_TWO", DICE_TWO), + ("DISC", DISC), + ("DISCO_BALL", DISCO_BALL), + ("DISCORD_LOGO", DISCORD_LOGO), + ("DIVIDE", DIVIDE), + ("DNA", DNA), + ("DOG", DOG), + ("DOOR", DOOR), + ("DOOR_OPEN", DOOR_OPEN), + ("DOT", DOT), + ("DOT_OUTLINE", DOT_OUTLINE), + ("DOTS_NINE", DOTS_NINE), + ("DOTS_SIX", DOTS_SIX), + ("DOTS_SIX_VERTICAL", DOTS_SIX_VERTICAL), + ("DOTS_THREE", DOTS_THREE), + ("DOTS_THREE_CIRCLE", DOTS_THREE_CIRCLE), + ("DOTS_THREE_CIRCLE_VERTICAL", DOTS_THREE_CIRCLE_VERTICAL), + ("DOTS_THREE_OUTLINE", DOTS_THREE_OUTLINE), + ("DOTS_THREE_OUTLINE_VERTICAL", DOTS_THREE_OUTLINE_VERTICAL), + ("DOTS_THREE_VERTICAL", DOTS_THREE_VERTICAL), + ("DOWNLOAD", DOWNLOAD), + ("DOWNLOAD_SIMPLE", DOWNLOAD_SIMPLE), + ("DRESS", DRESS), + ("DRESSER", DRESSER), + ("DRIBBBLE_LOGO", DRIBBBLE_LOGO), + ("DRONE", DRONE), + ("DROP", DROP), + ("DROP_HALF", DROP_HALF), + ("DROP_HALF_BOTTOM", DROP_HALF_BOTTOM), + ("DROP_SIMPLE", DROP_SIMPLE), + ("DROP_SLASH", DROP_SLASH), + ("DROPBOX_LOGO", DROPBOX_LOGO), + ("EAR", EAR), + ("EAR_SLASH", EAR_SLASH), + ("EGG", EGG), + ("EGG_CRACK", EGG_CRACK), + ("EJECT", EJECT), + ("EJECT_SIMPLE", EJECT_SIMPLE), + ("ELEVATOR", ELEVATOR), + ("EMPTY", EMPTY), + ("ENGINE", ENGINE), + ("ENVELOPE", ENVELOPE), + ("ENVELOPE_OPEN", ENVELOPE_OPEN), + ("ENVELOPE_SIMPLE", ENVELOPE_SIMPLE), + ("ENVELOPE_SIMPLE_OPEN", ENVELOPE_SIMPLE_OPEN), + ("EQUALIZER", EQUALIZER), + ("EQUALS", EQUALS), + ("ERASER", ERASER), + ("ESCALATOR_DOWN", ESCALATOR_DOWN), + ("ESCALATOR_UP", ESCALATOR_UP), + ("EXAM", EXAM), + ("EXCLAMATION_MARK", EXCLAMATION_MARK), + ("EXCLUDE", EXCLUDE), + ("EXCLUDE_SQUARE", EXCLUDE_SQUARE), + ("EXPORT", EXPORT), + ("EYE", EYE), + ("EYE_CLOSED", EYE_CLOSED), + ("EYE_SLASH", EYE_SLASH), + ("EYEDROPPER", EYEDROPPER), + ("EYEDROPPER_SAMPLE", EYEDROPPER_SAMPLE), + ("EYEGLASSES", EYEGLASSES), + ("EYES", EYES), + ("FACE_MASK", FACE_MASK), + ("FACEBOOK_LOGO", FACEBOOK_LOGO), + ("FACTORY", FACTORY), + ("FADERS", FADERS), + ("FADERS_HORIZONTAL", FADERS_HORIZONTAL), + ("FALLOUT_SHELTER", FALLOUT_SHELTER), + ("FAN", FAN), + ("FARM", FARM), + ("FAST_FORWARD", FAST_FORWARD), + ("FAST_FORWARD_CIRCLE", FAST_FORWARD_CIRCLE), + ("FEATHER", FEATHER), + ("FEDIVERSE_LOGO", FEDIVERSE_LOGO), + ("FIGMA_LOGO", FIGMA_LOGO), + ("FILE", FILE), + ("FILE_ARCHIVE", FILE_ARCHIVE), + ("FILE_ARROW_DOWN", FILE_ARROW_DOWN), + ("FILE_ARROW_UP", FILE_ARROW_UP), + ("FILE_AUDIO", FILE_AUDIO), + ("FILE_C", FILE_C), + ("FILE_C_SHARP", FILE_C_SHARP), + ("FILE_CLOUD", FILE_CLOUD), + ("FILE_CODE", FILE_CODE), + ("FILE_CPP", FILE_CPP), + ("FILE_CSS", FILE_CSS), + ("FILE_CSV", FILE_CSV), + ("FILE_DASHED", FILE_DASHED), + ("FILE_DOTTED", FILE_DOTTED), + ("FILE_DOC", FILE_DOC), + ("FILE_HTML", FILE_HTML), + ("FILE_IMAGE", FILE_IMAGE), + ("FILE_INI", FILE_INI), + ("FILE_JPG", FILE_JPG), + ("FILE_JS", FILE_JS), + ("FILE_JSX", FILE_JSX), + ("FILE_LOCK", FILE_LOCK), + ("FILE_MAGNIFYING_GLASS", FILE_MAGNIFYING_GLASS), + ("FILE_SEARCH", FILE_SEARCH), + ("FILE_MD", FILE_MD), + ("FILE_MINUS", FILE_MINUS), + ("FILE_PDF", FILE_PDF), + ("FILE_PLUS", FILE_PLUS), + ("FILE_PNG", FILE_PNG), + ("FILE_PPT", FILE_PPT), + ("FILE_PY", FILE_PY), + ("FILE_RS", FILE_RS), + ("FILE_SQL", FILE_SQL), + ("FILE_SVG", FILE_SVG), + ("FILE_TEXT", FILE_TEXT), + ("FILE_TS", FILE_TS), + ("FILE_TSX", FILE_TSX), + ("FILE_TXT", FILE_TXT), + ("FILE_VIDEO", FILE_VIDEO), + ("FILE_VUE", FILE_VUE), + ("FILE_X", FILE_X), + ("FILE_XLS", FILE_XLS), + ("FILE_ZIP", FILE_ZIP), + ("FILES", FILES), + ("FILM_REEL", FILM_REEL), + ("FILM_SCRIPT", FILM_SCRIPT), + ("FILM_SLATE", FILM_SLATE), + ("FILM_STRIP", FILM_STRIP), + ("FINGERPRINT", FINGERPRINT), + ("FINGERPRINT_SIMPLE", FINGERPRINT_SIMPLE), + ("FINN_THE_HUMAN", FINN_THE_HUMAN), + ("FIRE", FIRE), + ("FIRE_EXTINGUISHER", FIRE_EXTINGUISHER), + ("FIRE_SIMPLE", FIRE_SIMPLE), + ("FIRE_TRUCK", FIRE_TRUCK), + ("FIRST_AID", FIRST_AID), + ("FIRST_AID_KIT", FIRST_AID_KIT), + ("FISH", FISH), + ("FISH_SIMPLE", FISH_SIMPLE), + ("FLAG", FLAG), + ("FLAG_BANNER", FLAG_BANNER), + ("FLAG_BANNER_FOLD", FLAG_BANNER_FOLD), + ("FLAG_CHECKERED", FLAG_CHECKERED), + ("FLAG_PENNANT", FLAG_PENNANT), + ("FLAME", FLAME), + ("FLASHLIGHT", FLASHLIGHT), + ("FLASK", FLASK), + ("FLIP_HORIZONTAL", FLIP_HORIZONTAL), + ("FLIP_VERTICAL", FLIP_VERTICAL), + ("FLOPPY_DISK", FLOPPY_DISK), + ("FLOPPY_DISK_BACK", FLOPPY_DISK_BACK), + ("FLOW_ARROW", FLOW_ARROW), + ("FLOWER", FLOWER), + ("FLOWER_LOTUS", FLOWER_LOTUS), + ("FLOWER_TULIP", FLOWER_TULIP), + ("FLYING_SAUCER", FLYING_SAUCER), + ("FOLDER", FOLDER), + ("FOLDER_NOTCH", FOLDER_NOTCH), + ("FOLDER_DASHED", FOLDER_DASHED), + ("FOLDER_DOTTED", FOLDER_DOTTED), + ("FOLDER_LOCK", FOLDER_LOCK), + ("FOLDER_MINUS", FOLDER_MINUS), + ("FOLDER_NOTCH_MINUS", FOLDER_NOTCH_MINUS), + ("FOLDER_OPEN", FOLDER_OPEN), + ("FOLDER_NOTCH_OPEN", FOLDER_NOTCH_OPEN), + ("FOLDER_PLUS", FOLDER_PLUS), + ("FOLDER_NOTCH_PLUS", FOLDER_NOTCH_PLUS), + ("FOLDER_SIMPLE", FOLDER_SIMPLE), + ("FOLDER_SIMPLE_DASHED", FOLDER_SIMPLE_DASHED), + ("FOLDER_SIMPLE_DOTTED", FOLDER_SIMPLE_DOTTED), + ("FOLDER_SIMPLE_LOCK", FOLDER_SIMPLE_LOCK), + ("FOLDER_SIMPLE_MINUS", FOLDER_SIMPLE_MINUS), + ("FOLDER_SIMPLE_PLUS", FOLDER_SIMPLE_PLUS), + ("FOLDER_SIMPLE_STAR", FOLDER_SIMPLE_STAR), + ("FOLDER_SIMPLE_USER", FOLDER_SIMPLE_USER), + ("FOLDER_STAR", FOLDER_STAR), + ("FOLDER_USER", FOLDER_USER), + ("FOLDERS", FOLDERS), + ("FOOTBALL", FOOTBALL), + ("FOOTBALL_HELMET", FOOTBALL_HELMET), + ("FOOTPRINTS", FOOTPRINTS), + ("FORK_KNIFE", FORK_KNIFE), + ("FOUR_K", FOUR_K), + ("FRAME_CORNERS", FRAME_CORNERS), + ("FRAMER_LOGO", FRAMER_LOGO), + ("FUNCTION", FUNCTION), + ("FUNNEL", FUNNEL), + ("FUNNEL_SIMPLE", FUNNEL_SIMPLE), + ("FUNNEL_SIMPLE_X", FUNNEL_SIMPLE_X), + ("FUNNEL_X", FUNNEL_X), + ("GAME_CONTROLLER", GAME_CONTROLLER), + ("GARAGE", GARAGE), + ("GAS_CAN", GAS_CAN), + ("GAS_PUMP", GAS_PUMP), + ("GAUGE", GAUGE), + ("GAVEL", GAVEL), + ("GEAR", GEAR), + ("GEAR_FINE", GEAR_FINE), + ("GEAR_SIX", GEAR_SIX), + ("GENDER_FEMALE", GENDER_FEMALE), + ("GENDER_INTERSEX", GENDER_INTERSEX), + ("GENDER_MALE", GENDER_MALE), + ("GENDER_NEUTER", GENDER_NEUTER), + ("GENDER_NONBINARY", GENDER_NONBINARY), + ("GENDER_TRANSGENDER", GENDER_TRANSGENDER), + ("GHOST", GHOST), + ("GIF", GIF), + ("GIFT", GIFT), + ("GIT_BRANCH", GIT_BRANCH), + ("GIT_COMMIT", GIT_COMMIT), + ("GIT_DIFF", GIT_DIFF), + ("GIT_FORK", GIT_FORK), + ("GIT_MERGE", GIT_MERGE), + ("GIT_PULL_REQUEST", GIT_PULL_REQUEST), + ("GITHUB_LOGO", GITHUB_LOGO), + ("GITLAB_LOGO", GITLAB_LOGO), + ("GITLAB_LOGO_SIMPLE", GITLAB_LOGO_SIMPLE), + ("GLOBE", GLOBE), + ("GLOBE_HEMISPHERE_EAST", GLOBE_HEMISPHERE_EAST), + ("GLOBE_HEMISPHERE_WEST", GLOBE_HEMISPHERE_WEST), + ("GLOBE_SIMPLE", GLOBE_SIMPLE), + ("GLOBE_SIMPLE_X", GLOBE_SIMPLE_X), + ("GLOBE_STAND", GLOBE_STAND), + ("GLOBE_X", GLOBE_X), + ("GOGGLES", GOGGLES), + ("GOLF", GOLF), + ("GOODREADS_LOGO", GOODREADS_LOGO), + ("GOOGLE_CARDBOARD_LOGO", GOOGLE_CARDBOARD_LOGO), + ("GOOGLE_CHROME_LOGO", GOOGLE_CHROME_LOGO), + ("GOOGLE_DRIVE_LOGO", GOOGLE_DRIVE_LOGO), + ("GOOGLE_LOGO", GOOGLE_LOGO), + ("GOOGLE_PHOTOS_LOGO", GOOGLE_PHOTOS_LOGO), + ("GOOGLE_PLAY_LOGO", GOOGLE_PLAY_LOGO), + ("GOOGLE_PODCASTS_LOGO", GOOGLE_PODCASTS_LOGO), + ("GPS", GPS), + ("GPS_FIX", GPS_FIX), + ("GPS_SLASH", GPS_SLASH), + ("GRADIENT", GRADIENT), + ("GRADUATION_CAP", GRADUATION_CAP), + ("GRAINS", GRAINS), + ("GRAINS_SLASH", GRAINS_SLASH), + ("GRAPH", GRAPH), + ("GRAPHICS_CARD", GRAPHICS_CARD), + ("GREATER_THAN", GREATER_THAN), + ("GREATER_THAN_OR_EQUAL", GREATER_THAN_OR_EQUAL), + ("GRID_FOUR", GRID_FOUR), + ("GRID_NINE", GRID_NINE), + ("GUITAR", GUITAR), + ("HAIR_DRYER", HAIR_DRYER), + ("HAMBURGER", HAMBURGER), + ("HAMMER", HAMMER), + ("HAND", HAND), + ("HAND_ARROW_DOWN", HAND_ARROW_DOWN), + ("HAND_ARROW_UP", HAND_ARROW_UP), + ("HAND_COINS", HAND_COINS), + ("HAND_DEPOSIT", HAND_DEPOSIT), + ("HAND_EYE", HAND_EYE), + ("HAND_FIST", HAND_FIST), + ("HAND_GRABBING", HAND_GRABBING), + ("HAND_HEART", HAND_HEART), + ("HAND_PALM", HAND_PALM), + ("HAND_PEACE", HAND_PEACE), + ("HAND_POINTING", HAND_POINTING), + ("HAND_SOAP", HAND_SOAP), + ("HAND_SWIPE_LEFT", HAND_SWIPE_LEFT), + ("HAND_SWIPE_RIGHT", HAND_SWIPE_RIGHT), + ("HAND_TAP", HAND_TAP), + ("HAND_WAVING", HAND_WAVING), + ("HAND_WITHDRAW", HAND_WITHDRAW), + ("HANDBAG", HANDBAG), + ("HANDBAG_SIMPLE", HANDBAG_SIMPLE), + ("HANDS_CLAPPING", HANDS_CLAPPING), + ("HANDS_PRAYING", HANDS_PRAYING), + ("HANDSHAKE", HANDSHAKE), + ("HARD_DRIVE", HARD_DRIVE), + ("HARD_DRIVES", HARD_DRIVES), + ("HARD_HAT", HARD_HAT), + ("HASH", HASH), + ("HASH_STRAIGHT", HASH_STRAIGHT), + ("HEAD_CIRCUIT", HEAD_CIRCUIT), + ("HEADLIGHTS", HEADLIGHTS), + ("HEADPHONES", HEADPHONES), + ("HEADSET", HEADSET), + ("HEART", HEART), + ("HEART_BREAK", HEART_BREAK), + ("HEART_HALF", HEART_HALF), + ("HEART_STRAIGHT", HEART_STRAIGHT), + ("HEART_STRAIGHT_BREAK", HEART_STRAIGHT_BREAK), + ("HEARTBEAT", HEARTBEAT), + ("HEXAGON", HEXAGON), + ("HIGH_DEFINITION", HIGH_DEFINITION), + ("HIGH_HEEL", HIGH_HEEL), + ("HIGHLIGHTER", HIGHLIGHTER), + ("HIGHLIGHTER_CIRCLE", HIGHLIGHTER_CIRCLE), + ("HOCKEY", HOCKEY), + ("HOODIE", HOODIE), + ("HORSE", HORSE), + ("HOSPITAL", HOSPITAL), + ("HOURGLASS", HOURGLASS), + ("HOURGLASS_HIGH", HOURGLASS_HIGH), + ("HOURGLASS_LOW", HOURGLASS_LOW), + ("HOURGLASS_MEDIUM", HOURGLASS_MEDIUM), + ("HOURGLASS_SIMPLE", HOURGLASS_SIMPLE), + ("HOURGLASS_SIMPLE_HIGH", HOURGLASS_SIMPLE_HIGH), + ("HOURGLASS_SIMPLE_LOW", HOURGLASS_SIMPLE_LOW), + ("HOURGLASS_SIMPLE_MEDIUM", HOURGLASS_SIMPLE_MEDIUM), + ("HOUSE", HOUSE), + ("HOUSE_LINE", HOUSE_LINE), + ("HOUSE_SIMPLE", HOUSE_SIMPLE), + ("HURRICANE", HURRICANE), + ("ICE_CREAM", ICE_CREAM), + ("IDENTIFICATION_BADGE", IDENTIFICATION_BADGE), + ("IDENTIFICATION_CARD", IDENTIFICATION_CARD), + ("IMAGE", IMAGE), + ("IMAGE_BROKEN", IMAGE_BROKEN), + ("IMAGE_SQUARE", IMAGE_SQUARE), + ("IMAGES", IMAGES), + ("IMAGES_SQUARE", IMAGES_SQUARE), + ("INFINITY", INFINITY), + ("LEMNISCATE", LEMNISCATE), + ("INFO", INFO), + ("INSTAGRAM_LOGO", INSTAGRAM_LOGO), + ("INTERSECT", INTERSECT), + ("INTERSECT_SQUARE", INTERSECT_SQUARE), + ("INTERSECT_THREE", INTERSECT_THREE), + ("INTERSECTION", INTERSECTION), + ("INVOICE", INVOICE), + ("ISLAND", ISLAND), + ("JAR", JAR), + ("JAR_LABEL", JAR_LABEL), + ("JEEP", JEEP), + ("JOYSTICK", JOYSTICK), + ("KANBAN", KANBAN), + ("KEY", KEY), + ("KEY_RETURN", KEY_RETURN), + ("KEYBOARD", KEYBOARD), + ("KEYHOLE", KEYHOLE), + ("KNIFE", KNIFE), + ("LADDER", LADDER), + ("LADDER_SIMPLE", LADDER_SIMPLE), + ("LAMP", LAMP), + ("LAMP_PENDANT", LAMP_PENDANT), + ("LAPTOP", LAPTOP), + ("LASSO", LASSO), + ("LASTFM_LOGO", LASTFM_LOGO), + ("LAYOUT", LAYOUT), + ("LEAF", LEAF), + ("LECTERN", LECTERN), + ("LEGO", LEGO), + ("LEGO_SMILEY", LEGO_SMILEY), + ("LESS_THAN", LESS_THAN), + ("LESS_THAN_OR_EQUAL", LESS_THAN_OR_EQUAL), + ("LETTER_CIRCLE_H", LETTER_CIRCLE_H), + ("LETTER_CIRCLE_P", LETTER_CIRCLE_P), + ("LETTER_CIRCLE_V", LETTER_CIRCLE_V), + ("LIFEBUOY", LIFEBUOY), + ("LIGHTBULB", LIGHTBULB), + ("LIGHTBULB_FILAMENT", LIGHTBULB_FILAMENT), + ("LIGHTHOUSE", LIGHTHOUSE), + ("LIGHTNING", LIGHTNING), + ("LIGHTNING_A", LIGHTNING_A), + ("LIGHTNING_SLASH", LIGHTNING_SLASH), + ("LINE_SEGMENT", LINE_SEGMENT), + ("LINE_SEGMENTS", LINE_SEGMENTS), + ("LINE_VERTICAL", LINE_VERTICAL), + ("LINK", LINK), + ("LINK_BREAK", LINK_BREAK), + ("LINK_SIMPLE", LINK_SIMPLE), + ("LINK_SIMPLE_BREAK", LINK_SIMPLE_BREAK), + ("LINK_SIMPLE_HORIZONTAL", LINK_SIMPLE_HORIZONTAL), + ("LINK_SIMPLE_HORIZONTAL_BREAK", LINK_SIMPLE_HORIZONTAL_BREAK), + ("LINKEDIN_LOGO", LINKEDIN_LOGO), + ("LINKTREE_LOGO", LINKTREE_LOGO), + ("LINUX_LOGO", LINUX_LOGO), + ("LIST", LIST), + ("LIST_BULLETS", LIST_BULLETS), + ("LIST_CHECKS", LIST_CHECKS), + ("LIST_DASHES", LIST_DASHES), + ("LIST_HEART", LIST_HEART), + ("LIST_MAGNIFYING_GLASS", LIST_MAGNIFYING_GLASS), + ("LIST_NUMBERS", LIST_NUMBERS), + ("LIST_PLUS", LIST_PLUS), + ("LIST_STAR", LIST_STAR), + ("LOCK", LOCK), + ("LOCK_KEY", LOCK_KEY), + ("LOCK_KEY_OPEN", LOCK_KEY_OPEN), + ("LOCK_LAMINATED", LOCK_LAMINATED), + ("LOCK_LAMINATED_OPEN", LOCK_LAMINATED_OPEN), + ("LOCK_OPEN", LOCK_OPEN), + ("LOCK_SIMPLE", LOCK_SIMPLE), + ("LOCK_SIMPLE_OPEN", LOCK_SIMPLE_OPEN), + ("LOCKERS", LOCKERS), + ("LOG", LOG), + ("MAGIC_WAND", MAGIC_WAND), + ("MAGNET", MAGNET), + ("MAGNET_STRAIGHT", MAGNET_STRAIGHT), + ("MAGNIFYING_GLASS", MAGNIFYING_GLASS), + ("MAGNIFYING_GLASS_MINUS", MAGNIFYING_GLASS_MINUS), + ("MAGNIFYING_GLASS_PLUS", MAGNIFYING_GLASS_PLUS), + ("MAILBOX", MAILBOX), + ("MAP_PIN", MAP_PIN), + ("MAP_PIN_AREA", MAP_PIN_AREA), + ("MAP_PIN_LINE", MAP_PIN_LINE), + ("MAP_PIN_PLUS", MAP_PIN_PLUS), + ("MAP_PIN_SIMPLE", MAP_PIN_SIMPLE), + ("MAP_PIN_SIMPLE_AREA", MAP_PIN_SIMPLE_AREA), + ("MAP_PIN_SIMPLE_LINE", MAP_PIN_SIMPLE_LINE), + ("MAP_TRIFOLD", MAP_TRIFOLD), + ("MARKDOWN_LOGO", MARKDOWN_LOGO), + ("MARKER_CIRCLE", MARKER_CIRCLE), + ("MARTINI", MARTINI), + ("MASK_HAPPY", MASK_HAPPY), + ("MASK_SAD", MASK_SAD), + ("MASTODON_LOGO", MASTODON_LOGO), + ("MATH_OPERATIONS", MATH_OPERATIONS), + ("MATRIX_LOGO", MATRIX_LOGO), + ("MEDAL", MEDAL), + ("MEDAL_MILITARY", MEDAL_MILITARY), + ("MEDIUM_LOGO", MEDIUM_LOGO), + ("MEGAPHONE", MEGAPHONE), + ("MEGAPHONE_SIMPLE", MEGAPHONE_SIMPLE), + ("MEMBER_OF", MEMBER_OF), + ("MEMORY", MEMORY), + ("MESSENGER_LOGO", MESSENGER_LOGO), + ("META_LOGO", META_LOGO), + ("METEOR", METEOR), + ("METRONOME", METRONOME), + ("MICROPHONE", MICROPHONE), + ("MICROPHONE_SLASH", MICROPHONE_SLASH), + ("MICROPHONE_STAGE", MICROPHONE_STAGE), + ("MICROSCOPE", MICROSCOPE), + ("MICROSOFT_EXCEL_LOGO", MICROSOFT_EXCEL_LOGO), + ("MICROSOFT_OUTLOOK_LOGO", MICROSOFT_OUTLOOK_LOGO), + ("MICROSOFT_POWERPOINT_LOGO", MICROSOFT_POWERPOINT_LOGO), + ("MICROSOFT_TEAMS_LOGO", MICROSOFT_TEAMS_LOGO), + ("MICROSOFT_WORD_LOGO", MICROSOFT_WORD_LOGO), + ("MINUS", MINUS), + ("MINUS_CIRCLE", MINUS_CIRCLE), + ("MINUS_SQUARE", MINUS_SQUARE), + ("MONEY", MONEY), + ("MONEY_WAVY", MONEY_WAVY), + ("MONITOR", MONITOR), + ("MONITOR_ARROW_UP", MONITOR_ARROW_UP), + ("MONITOR_PLAY", MONITOR_PLAY), + ("MOON", MOON), + ("MOON_STARS", MOON_STARS), + ("MOPED", MOPED), + ("MOPED_FRONT", MOPED_FRONT), + ("MOSQUE", MOSQUE), + ("MOTORCYCLE", MOTORCYCLE), + ("MOUNTAINS", MOUNTAINS), + ("MOUSE", MOUSE), + ("MOUSE_LEFT_CLICK", MOUSE_LEFT_CLICK), + ("MOUSE_MIDDLE_CLICK", MOUSE_MIDDLE_CLICK), + ("MOUSE_RIGHT_CLICK", MOUSE_RIGHT_CLICK), + ("MOUSE_SCROLL", MOUSE_SCROLL), + ("MOUSE_SIMPLE", MOUSE_SIMPLE), + ("MUSIC_NOTE", MUSIC_NOTE), + ("MUSIC_NOTE_SIMPLE", MUSIC_NOTE_SIMPLE), + ("MUSIC_NOTES", MUSIC_NOTES), + ("MUSIC_NOTES_MINUS", MUSIC_NOTES_MINUS), + ("MUSIC_NOTES_PLUS", MUSIC_NOTES_PLUS), + ("MUSIC_NOTES_SIMPLE", MUSIC_NOTES_SIMPLE), + ("NAVIGATION_ARROW", NAVIGATION_ARROW), + ("NEEDLE", NEEDLE), + ("NETWORK", NETWORK), + ("NETWORK_SLASH", NETWORK_SLASH), + ("NETWORK_X", NETWORK_X), + ("NEWSPAPER", NEWSPAPER), + ("NEWSPAPER_CLIPPING", NEWSPAPER_CLIPPING), + ("NOT_EQUALS", NOT_EQUALS), + ("NOT_MEMBER_OF", NOT_MEMBER_OF), + ("NOT_SUBSET_OF", NOT_SUBSET_OF), + ("NOT_SUPERSET_OF", NOT_SUPERSET_OF), + ("NOTCHES", NOTCHES), + ("NOTE", NOTE), + ("NOTE_BLANK", NOTE_BLANK), + ("NOTE_PENCIL", NOTE_PENCIL), + ("NOTEBOOK", NOTEBOOK), + ("NOTEPAD", NOTEPAD), + ("NOTIFICATION", NOTIFICATION), + ("NOTION_LOGO", NOTION_LOGO), + ("NUCLEAR_PLANT", NUCLEAR_PLANT), + ("NUMBER_CIRCLE_EIGHT", NUMBER_CIRCLE_EIGHT), + ("NUMBER_CIRCLE_FIVE", NUMBER_CIRCLE_FIVE), + ("NUMBER_CIRCLE_FOUR", NUMBER_CIRCLE_FOUR), + ("NUMBER_CIRCLE_NINE", NUMBER_CIRCLE_NINE), + ("NUMBER_CIRCLE_ONE", NUMBER_CIRCLE_ONE), + ("NUMBER_CIRCLE_SEVEN", NUMBER_CIRCLE_SEVEN), + ("NUMBER_CIRCLE_SIX", NUMBER_CIRCLE_SIX), + ("NUMBER_CIRCLE_THREE", NUMBER_CIRCLE_THREE), + ("NUMBER_CIRCLE_TWO", NUMBER_CIRCLE_TWO), + ("NUMBER_CIRCLE_ZERO", NUMBER_CIRCLE_ZERO), + ("NUMBER_EIGHT", NUMBER_EIGHT), + ("NUMBER_FIVE", NUMBER_FIVE), + ("NUMBER_FOUR", NUMBER_FOUR), + ("NUMBER_NINE", NUMBER_NINE), + ("NUMBER_ONE", NUMBER_ONE), + ("NUMBER_SEVEN", NUMBER_SEVEN), + ("NUMBER_SIX", NUMBER_SIX), + ("NUMBER_SQUARE_EIGHT", NUMBER_SQUARE_EIGHT), + ("NUMBER_SQUARE_FIVE", NUMBER_SQUARE_FIVE), + ("NUMBER_SQUARE_FOUR", NUMBER_SQUARE_FOUR), + ("NUMBER_SQUARE_NINE", NUMBER_SQUARE_NINE), + ("NUMBER_SQUARE_ONE", NUMBER_SQUARE_ONE), + ("NUMBER_SQUARE_SEVEN", NUMBER_SQUARE_SEVEN), + ("NUMBER_SQUARE_SIX", NUMBER_SQUARE_SIX), + ("NUMBER_SQUARE_THREE", NUMBER_SQUARE_THREE), + ("NUMBER_SQUARE_TWO", NUMBER_SQUARE_TWO), + ("NUMBER_SQUARE_ZERO", NUMBER_SQUARE_ZERO), + ("NUMBER_THREE", NUMBER_THREE), + ("NUMBER_TWO", NUMBER_TWO), + ("NUMBER_ZERO", NUMBER_ZERO), + ("NUMPAD", NUMPAD), + ("NUT", NUT), + ("NY_TIMES_LOGO", NY_TIMES_LOGO), + ("OCTAGON", OCTAGON), + ("OFFICE_CHAIR", OFFICE_CHAIR), + ("ONIGIRI", ONIGIRI), + ("OPEN_AI_LOGO", OPEN_AI_LOGO), + ("OPTION", OPTION), + ("ORANGE", ORANGE), + ("ORANGE_SLICE", ORANGE_SLICE), + ("OVEN", OVEN), + ("PACKAGE", PACKAGE), + ("PAINT_BRUSH", PAINT_BRUSH), + ("PAINT_BRUSH_BROAD", PAINT_BRUSH_BROAD), + ("PAINT_BRUSH_HOUSEHOLD", PAINT_BRUSH_HOUSEHOLD), + ("PAINT_BUCKET", PAINT_BUCKET), + ("PAINT_ROLLER", PAINT_ROLLER), + ("PALETTE", PALETTE), + ("PANORAMA", PANORAMA), + ("PANTS", PANTS), + ("PAPER_PLANE", PAPER_PLANE), + ("PAPER_PLANE_RIGHT", PAPER_PLANE_RIGHT), + ("PAPER_PLANE_TILT", PAPER_PLANE_TILT), + ("PAPERCLIP", PAPERCLIP), + ("PAPERCLIP_HORIZONTAL", PAPERCLIP_HORIZONTAL), + ("PARACHUTE", PARACHUTE), + ("PARAGRAPH", PARAGRAPH), + ("PARALLELOGRAM", PARALLELOGRAM), + ("PARK", PARK), + ("PASSWORD", PASSWORD), + ("PATH", PATH), + ("PATREON_LOGO", PATREON_LOGO), + ("PAUSE", PAUSE), + ("PAUSE_CIRCLE", PAUSE_CIRCLE), + ("PAW_PRINT", PAW_PRINT), + ("PAYPAL_LOGO", PAYPAL_LOGO), + ("PEACE", PEACE), + ("PEN", PEN), + ("PEN_NIB", PEN_NIB), + ("PEN_NIB_STRAIGHT", PEN_NIB_STRAIGHT), + ("PENCIL", PENCIL), + ("PENCIL_CIRCLE", PENCIL_CIRCLE), + ("PENCIL_LINE", PENCIL_LINE), + ("PENCIL_RULER", PENCIL_RULER), + ("PENCIL_SIMPLE", PENCIL_SIMPLE), + ("PENCIL_SIMPLE_LINE", PENCIL_SIMPLE_LINE), + ("PENCIL_SIMPLE_SLASH", PENCIL_SIMPLE_SLASH), + ("PENCIL_SLASH", PENCIL_SLASH), + ("PENTAGON", PENTAGON), + ("PENTAGRAM", PENTAGRAM), + ("PEPPER", PEPPER), + ("PERCENT", PERCENT), + ("PERSON", PERSON), + ("PERSON_ARMS_SPREAD", PERSON_ARMS_SPREAD), + ("PERSON_SIMPLE", PERSON_SIMPLE), + ("PERSON_SIMPLE_BIKE", PERSON_SIMPLE_BIKE), + ("PERSON_SIMPLE_CIRCLE", PERSON_SIMPLE_CIRCLE), + ("PERSON_SIMPLE_HIKE", PERSON_SIMPLE_HIKE), + ("PERSON_SIMPLE_RUN", PERSON_SIMPLE_RUN), + ("PERSON_SIMPLE_SKI", PERSON_SIMPLE_SKI), + ("PERSON_SIMPLE_SNOWBOARD", PERSON_SIMPLE_SNOWBOARD), + ("PERSON_SIMPLE_SWIM", PERSON_SIMPLE_SWIM), + ("PERSON_SIMPLE_TAI_CHI", PERSON_SIMPLE_TAI_CHI), + ("PERSON_SIMPLE_THROW", PERSON_SIMPLE_THROW), + ("PERSON_SIMPLE_WALK", PERSON_SIMPLE_WALK), + ("PERSPECTIVE", PERSPECTIVE), + ("PHONE", PHONE), + ("PHONE_CALL", PHONE_CALL), + ("PHONE_DISCONNECT", PHONE_DISCONNECT), + ("PHONE_INCOMING", PHONE_INCOMING), + ("PHONE_LIST", PHONE_LIST), + ("PHONE_OUTGOING", PHONE_OUTGOING), + ("PHONE_PAUSE", PHONE_PAUSE), + ("PHONE_PLUS", PHONE_PLUS), + ("PHONE_SLASH", PHONE_SLASH), + ("PHONE_TRANSFER", PHONE_TRANSFER), + ("PHONE_X", PHONE_X), + ("PHOSPHOR_LOGO", PHOSPHOR_LOGO), + ("PI", PI), + ("PIANO_KEYS", PIANO_KEYS), + ("PICNIC_TABLE", PICNIC_TABLE), + ("PICTURE_IN_PICTURE", PICTURE_IN_PICTURE), + ("PIGGY_BANK", PIGGY_BANK), + ("PILL", PILL), + ("PING_PONG", PING_PONG), + ("PINT_GLASS", PINT_GLASS), + ("PINTEREST_LOGO", PINTEREST_LOGO), + ("PINWHEEL", PINWHEEL), + ("PIPE", PIPE), + ("PIPE_WRENCH", PIPE_WRENCH), + ("PIX_LOGO", PIX_LOGO), + ("PIZZA", PIZZA), + ("PLACEHOLDER", PLACEHOLDER), + ("PLANET", PLANET), + ("PLANT", PLANT), + ("PLAY", PLAY), + ("PLAY_CIRCLE", PLAY_CIRCLE), + ("PLAY_PAUSE", PLAY_PAUSE), + ("PLAYLIST", PLAYLIST), + ("PLUG", PLUG), + ("PLUG_CHARGING", PLUG_CHARGING), + ("PLUGS", PLUGS), + ("PLUGS_CONNECTED", PLUGS_CONNECTED), + ("PLUS", PLUS), + ("PLUS_CIRCLE", PLUS_CIRCLE), + ("PLUS_MINUS", PLUS_MINUS), + ("PLUS_SQUARE", PLUS_SQUARE), + ("POKER_CHIP", POKER_CHIP), + ("POLICE_CAR", POLICE_CAR), + ("POLYGON", POLYGON), + ("POPCORN", POPCORN), + ("POPSICLE", POPSICLE), + ("POTTED_PLANT", POTTED_PLANT), + ("POWER", POWER), + ("PRESCRIPTION", PRESCRIPTION), + ("PRESENTATION", PRESENTATION), + ("PRESENTATION_CHART", PRESENTATION_CHART), + ("PRINTER", PRINTER), + ("PROHIBIT", PROHIBIT), + ("PROHIBIT_INSET", PROHIBIT_INSET), + ("PROJECTOR_SCREEN", PROJECTOR_SCREEN), + ("PROJECTOR_SCREEN_CHART", PROJECTOR_SCREEN_CHART), + ("PULSE", PULSE), + ("ACTIVITY", ACTIVITY), + ("PUSH_PIN", PUSH_PIN), + ("PUSH_PIN_SIMPLE", PUSH_PIN_SIMPLE), + ("PUSH_PIN_SIMPLE_SLASH", PUSH_PIN_SIMPLE_SLASH), + ("PUSH_PIN_SLASH", PUSH_PIN_SLASH), + ("PUZZLE_PIECE", PUZZLE_PIECE), + ("QR_CODE", QR_CODE), + ("QUESTION", QUESTION), + ("QUESTION_MARK", QUESTION_MARK), + ("QUEUE", QUEUE), + ("QUOTES", QUOTES), + ("RABBIT", RABBIT), + ("RACQUET", RACQUET), + ("RADICAL", RADICAL), + ("RADIO", RADIO), + ("RADIO_BUTTON", RADIO_BUTTON), + ("RADIOACTIVE", RADIOACTIVE), + ("RAINBOW", RAINBOW), + ("RAINBOW_CLOUD", RAINBOW_CLOUD), + ("RANKING", RANKING), + ("READ_CV_LOGO", READ_CV_LOGO), + ("RECEIPT", RECEIPT), + ("RECEIPT_X", RECEIPT_X), + ("RECORD", RECORD), + ("RECTANGLE", RECTANGLE), + ("RECTANGLE_DASHED", RECTANGLE_DASHED), + ("RECYCLE", RECYCLE), + ("REDDIT_LOGO", REDDIT_LOGO), + ("REPEAT", REPEAT), + ("REPEAT_ONCE", REPEAT_ONCE), + ("REPLIT_LOGO", REPLIT_LOGO), + ("RESIZE", RESIZE), + ("REWIND", REWIND), + ("REWIND_CIRCLE", REWIND_CIRCLE), + ("ROAD_HORIZON", ROAD_HORIZON), + ("ROBOT", ROBOT), + ("ROCKET", ROCKET), + ("ROCKET_LAUNCH", ROCKET_LAUNCH), + ("ROWS", ROWS), + ("ROWS_PLUS_BOTTOM", ROWS_PLUS_BOTTOM), + ("ROWS_PLUS_TOP", ROWS_PLUS_TOP), + ("RSS", RSS), + ("RSS_SIMPLE", RSS_SIMPLE), + ("RUG", RUG), + ("RULER", RULER), + ("SAILBOAT", SAILBOAT), + ("SCALES", SCALES), + ("SCAN", SCAN), + ("SCAN_SMILEY", SCAN_SMILEY), + ("SCISSORS", SCISSORS), + ("SCOOTER", SCOOTER), + ("SCREENCAST", SCREENCAST), + ("SCREWDRIVER", SCREWDRIVER), + ("SCRIBBLE", SCRIBBLE), + ("SCRIBBLE_LOOP", SCRIBBLE_LOOP), + ("SCROLL", SCROLL), + ("SEAL", SEAL), + ("CIRCLE_WAVY", CIRCLE_WAVY), + ("SEAL_CHECK", SEAL_CHECK), + ("CIRCLE_WAVY_CHECK", CIRCLE_WAVY_CHECK), + ("SEAL_PERCENT", SEAL_PERCENT), + ("SEAL_QUESTION", SEAL_QUESTION), + ("CIRCLE_WAVY_QUESTION", CIRCLE_WAVY_QUESTION), + ("SEAL_WARNING", SEAL_WARNING), + ("CIRCLE_WAVY_WARNING", CIRCLE_WAVY_WARNING), + ("SEAT", SEAT), + ("SEATBELT", SEATBELT), + ("SECURITY_CAMERA", SECURITY_CAMERA), + ("SELECTION", SELECTION), + ("SELECTION_ALL", SELECTION_ALL), + ("SELECTION_BACKGROUND", SELECTION_BACKGROUND), + ("SELECTION_FOREGROUND", SELECTION_FOREGROUND), + ("SELECTION_INVERSE", SELECTION_INVERSE), + ("SELECTION_PLUS", SELECTION_PLUS), + ("SELECTION_SLASH", SELECTION_SLASH), + ("SHAPES", SHAPES), + ("SHARE", SHARE), + ("SHARE_FAT", SHARE_FAT), + ("SHARE_NETWORK", SHARE_NETWORK), + ("SHIELD", SHIELD), + ("SHIELD_CHECK", SHIELD_CHECK), + ("SHIELD_CHECKERED", SHIELD_CHECKERED), + ("SHIELD_CHEVRON", SHIELD_CHEVRON), + ("SHIELD_PLUS", SHIELD_PLUS), + ("SHIELD_SLASH", SHIELD_SLASH), + ("SHIELD_STAR", SHIELD_STAR), + ("SHIELD_WARNING", SHIELD_WARNING), + ("SHIPPING_CONTAINER", SHIPPING_CONTAINER), + ("SHIRT_FOLDED", SHIRT_FOLDED), + ("SHOOTING_STAR", SHOOTING_STAR), + ("SHOPPING_BAG", SHOPPING_BAG), + ("SHOPPING_BAG_OPEN", SHOPPING_BAG_OPEN), + ("SHOPPING_CART", SHOPPING_CART), + ("SHOPPING_CART_SIMPLE", SHOPPING_CART_SIMPLE), + ("SHOVEL", SHOVEL), + ("SHOWER", SHOWER), + ("SHRIMP", SHRIMP), + ("SHUFFLE", SHUFFLE), + ("SHUFFLE_ANGULAR", SHUFFLE_ANGULAR), + ("SHUFFLE_SIMPLE", SHUFFLE_SIMPLE), + ("SIDEBAR", SIDEBAR), + ("SIDEBAR_SIMPLE", SIDEBAR_SIMPLE), + ("SIGMA", SIGMA), + ("SIGN_IN", SIGN_IN), + ("SIGN_OUT", SIGN_OUT), + ("SIGNATURE", SIGNATURE), + ("SIGNPOST", SIGNPOST), + ("SIM_CARD", SIM_CARD), + ("SIREN", SIREN), + ("SKETCH_LOGO", SKETCH_LOGO), + ("SKIP_BACK", SKIP_BACK), + ("SKIP_BACK_CIRCLE", SKIP_BACK_CIRCLE), + ("SKIP_FORWARD", SKIP_FORWARD), + ("SKIP_FORWARD_CIRCLE", SKIP_FORWARD_CIRCLE), + ("SKULL", SKULL), + ("SKYPE_LOGO", SKYPE_LOGO), + ("SLACK_LOGO", SLACK_LOGO), + ("SLIDERS", SLIDERS), + ("SLIDERS_HORIZONTAL", SLIDERS_HORIZONTAL), + ("SLIDESHOW", SLIDESHOW), + ("SMILEY", SMILEY), + ("SMILEY_ANGRY", SMILEY_ANGRY), + ("SMILEY_BLANK", SMILEY_BLANK), + ("SMILEY_MEH", SMILEY_MEH), + ("SMILEY_MELTING", SMILEY_MELTING), + ("SMILEY_NERVOUS", SMILEY_NERVOUS), + ("SMILEY_SAD", SMILEY_SAD), + ("SMILEY_STICKER", SMILEY_STICKER), + ("SMILEY_WINK", SMILEY_WINK), + ("SMILEY_X_EYES", SMILEY_X_EYES), + ("SNAPCHAT_LOGO", SNAPCHAT_LOGO), + ("SNEAKER", SNEAKER), + ("SNEAKER_MOVE", SNEAKER_MOVE), + ("SNOWFLAKE", SNOWFLAKE), + ("SOCCER_BALL", SOCCER_BALL), + ("SOCK", SOCK), + ("SOLAR_PANEL", SOLAR_PANEL), + ("SOLAR_ROOF", SOLAR_ROOF), + ("SORT_ASCENDING", SORT_ASCENDING), + ("SORT_DESCENDING", SORT_DESCENDING), + ("SOUNDCLOUD_LOGO", SOUNDCLOUD_LOGO), + ("SPADE", SPADE), + ("SPARKLE", SPARKLE), + ("SPEAKER_HIFI", SPEAKER_HIFI), + ("SPEAKER_HIGH", SPEAKER_HIGH), + ("SPEAKER_LOW", SPEAKER_LOW), + ("SPEAKER_NONE", SPEAKER_NONE), + ("SPEAKER_SIMPLE_HIGH", SPEAKER_SIMPLE_HIGH), + ("SPEAKER_SIMPLE_LOW", SPEAKER_SIMPLE_LOW), + ("SPEAKER_SIMPLE_NONE", SPEAKER_SIMPLE_NONE), + ("SPEAKER_SIMPLE_SLASH", SPEAKER_SIMPLE_SLASH), + ("SPEAKER_SIMPLE_X", SPEAKER_SIMPLE_X), + ("SPEAKER_SLASH", SPEAKER_SLASH), + ("SPEAKER_X", SPEAKER_X), + ("SPEEDOMETER", SPEEDOMETER), + ("SPHERE", SPHERE), + ("SPINNER", SPINNER), + ("SPINNER_BALL", SPINNER_BALL), + ("SPINNER_GAP", SPINNER_GAP), + ("SPIRAL", SPIRAL), + ("SPLIT_HORIZONTAL", SPLIT_HORIZONTAL), + ("SPLIT_VERTICAL", SPLIT_VERTICAL), + ("SPOTIFY_LOGO", SPOTIFY_LOGO), + ("SPRAY_BOTTLE", SPRAY_BOTTLE), + ("SQUARE", SQUARE), + ("SQUARE_HALF", SQUARE_HALF), + ("SQUARE_HALF_BOTTOM", SQUARE_HALF_BOTTOM), + ("SQUARE_LOGO", SQUARE_LOGO), + ("SQUARE_SPLIT_HORIZONTAL", SQUARE_SPLIT_HORIZONTAL), + ("SQUARE_SPLIT_VERTICAL", SQUARE_SPLIT_VERTICAL), + ("SQUARES_FOUR", SQUARES_FOUR), + ("STACK", STACK), + ("STACK_MINUS", STACK_MINUS), + ("STACK_OVERFLOW_LOGO", STACK_OVERFLOW_LOGO), + ("STACK_PLUS", STACK_PLUS), + ("STACK_SIMPLE", STACK_SIMPLE), + ("STAIRS", STAIRS), + ("STAMP", STAMP), + ("STANDARD_DEFINITION", STANDARD_DEFINITION), + ("STAR", STAR), + ("STAR_AND_CRESCENT", STAR_AND_CRESCENT), + ("STAR_FOUR", STAR_FOUR), + ("STAR_HALF", STAR_HALF), + ("STAR_OF_DAVID", STAR_OF_DAVID), + ("STEAM_LOGO", STEAM_LOGO), + ("STEERING_WHEEL", STEERING_WHEEL), + ("STEPS", STEPS), + ("STETHOSCOPE", STETHOSCOPE), + ("STICKER", STICKER), + ("STOOL", STOOL), + ("STOP", STOP), + ("STOP_CIRCLE", STOP_CIRCLE), + ("STOREFRONT", STOREFRONT), + ("STRATEGY", STRATEGY), + ("STRIPE_LOGO", STRIPE_LOGO), + ("STUDENT", STUDENT), + ("SUBSET_OF", SUBSET_OF), + ("SUBSET_PROPER_OF", SUBSET_PROPER_OF), + ("SUBTITLES", SUBTITLES), + ("SUBTITLES_SLASH", SUBTITLES_SLASH), + ("SUBTRACT", SUBTRACT), + ("SUBTRACT_SQUARE", SUBTRACT_SQUARE), + ("SUBWAY", SUBWAY), + ("SUITCASE", SUITCASE), + ("SUITCASE_ROLLING", SUITCASE_ROLLING), + ("SUITCASE_SIMPLE", SUITCASE_SIMPLE), + ("SUN", SUN), + ("SUN_DIM", SUN_DIM), + ("SUN_HORIZON", SUN_HORIZON), + ("SUNGLASSES", SUNGLASSES), + ("SUPERSET_OF", SUPERSET_OF), + ("SUPERSET_PROPER_OF", SUPERSET_PROPER_OF), + ("SWAP", SWAP), + ("SWATCHES", SWATCHES), + ("SWIMMING_POOL", SWIMMING_POOL), + ("SWORD", SWORD), + ("SYNAGOGUE", SYNAGOGUE), + ("SYRINGE", SYRINGE), + ("T_SHIRT", T_SHIRT), + ("TABLE", TABLE), + ("TABS", TABS), + ("TAG", TAG), + ("TAG_CHEVRON", TAG_CHEVRON), + ("TAG_SIMPLE", TAG_SIMPLE), + ("TARGET", TARGET), + ("TAXI", TAXI), + ("TEA_BAG", TEA_BAG), + ("TELEGRAM_LOGO", TELEGRAM_LOGO), + ("TELEVISION", TELEVISION), + ("TELEVISION_SIMPLE", TELEVISION_SIMPLE), + ("TENNIS_BALL", TENNIS_BALL), + ("TENT", TENT), + ("TERMINAL", TERMINAL), + ("TERMINAL_WINDOW", TERMINAL_WINDOW), + ("TEST_TUBE", TEST_TUBE), + ("TEXT_A_UNDERLINE", TEXT_A_UNDERLINE), + ("TEXT_AA", TEXT_AA), + ("TEXT_ALIGN_CENTER", TEXT_ALIGN_CENTER), + ("TEXT_ALIGN_JUSTIFY", TEXT_ALIGN_JUSTIFY), + ("TEXT_ALIGN_LEFT", TEXT_ALIGN_LEFT), + ("TEXT_ALIGN_RIGHT", TEXT_ALIGN_RIGHT), + ("TEXT_B", TEXT_B), + ("TEXT_BOLDER", TEXT_BOLDER), + ("TEXT_COLUMNS", TEXT_COLUMNS), + ("TEXT_H", TEXT_H), + ("TEXT_H_FIVE", TEXT_H_FIVE), + ("TEXT_H_FOUR", TEXT_H_FOUR), + ("TEXT_H_ONE", TEXT_H_ONE), + ("TEXT_H_SIX", TEXT_H_SIX), + ("TEXT_H_THREE", TEXT_H_THREE), + ("TEXT_H_TWO", TEXT_H_TWO), + ("TEXT_INDENT", TEXT_INDENT), + ("TEXT_ITALIC", TEXT_ITALIC), + ("TEXT_OUTDENT", TEXT_OUTDENT), + ("TEXT_STRIKETHROUGH", TEXT_STRIKETHROUGH), + ("TEXT_SUBSCRIPT", TEXT_SUBSCRIPT), + ("TEXT_SUPERSCRIPT", TEXT_SUPERSCRIPT), + ("TEXT_T", TEXT_T), + ("TEXT_T_SLASH", TEXT_T_SLASH), + ("TEXT_UNDERLINE", TEXT_UNDERLINE), + ("TEXTBOX", TEXTBOX), + ("THERMOMETER", THERMOMETER), + ("THERMOMETER_COLD", THERMOMETER_COLD), + ("THERMOMETER_HOT", THERMOMETER_HOT), + ("THERMOMETER_SIMPLE", THERMOMETER_SIMPLE), + ("THREADS_LOGO", THREADS_LOGO), + ("THREE_D", THREE_D), + ("THUMBS_DOWN", THUMBS_DOWN), + ("THUMBS_UP", THUMBS_UP), + ("TICKET", TICKET), + ("TIDAL_LOGO", TIDAL_LOGO), + ("TIKTOK_LOGO", TIKTOK_LOGO), + ("TILDE", TILDE), + ("TIMER", TIMER), + ("TIP_JAR", TIP_JAR), + ("TIPI", TIPI), + ("TIRE", TIRE), + ("TOGGLE_LEFT", TOGGLE_LEFT), + ("TOGGLE_RIGHT", TOGGLE_RIGHT), + ("TOILET", TOILET), + ("TOILET_PAPER", TOILET_PAPER), + ("TOOLBOX", TOOLBOX), + ("TOOTH", TOOTH), + ("TORNADO", TORNADO), + ("TOTE", TOTE), + ("TOTE_SIMPLE", TOTE_SIMPLE), + ("TOWEL", TOWEL), + ("TRACTOR", TRACTOR), + ("TRADEMARK", TRADEMARK), + ("TRADEMARK_REGISTERED", TRADEMARK_REGISTERED), + ("TRAFFIC_CONE", TRAFFIC_CONE), + ("TRAFFIC_SIGN", TRAFFIC_SIGN), + ("TRAFFIC_SIGNAL", TRAFFIC_SIGNAL), + ("TRAIN", TRAIN), + ("TRAIN_REGIONAL", TRAIN_REGIONAL), + ("TRAIN_SIMPLE", TRAIN_SIMPLE), + ("TRAM", TRAM), + ("TRANSLATE", TRANSLATE), + ("TRASH", TRASH), + ("TRASH_SIMPLE", TRASH_SIMPLE), + ("TRAY", TRAY), + ("TRAY_ARROW_DOWN", TRAY_ARROW_DOWN), + ("ARCHIVE_TRAY", ARCHIVE_TRAY), + ("TRAY_ARROW_UP", TRAY_ARROW_UP), + ("TREASURE_CHEST", TREASURE_CHEST), + ("TREE", TREE), + ("TREE_EVERGREEN", TREE_EVERGREEN), + ("TREE_PALM", TREE_PALM), + ("TREE_STRUCTURE", TREE_STRUCTURE), + ("TREE_VIEW", TREE_VIEW), + ("TREND_DOWN", TREND_DOWN), + ("TREND_UP", TREND_UP), + ("TRIANGLE", TRIANGLE), + ("TRIANGLE_DASHED", TRIANGLE_DASHED), + ("TROLLEY", TROLLEY), + ("TROLLEY_SUITCASE", TROLLEY_SUITCASE), + ("TROPHY", TROPHY), + ("TRUCK", TRUCK), + ("TRUCK_TRAILER", TRUCK_TRAILER), + ("TUMBLR_LOGO", TUMBLR_LOGO), + ("TWITCH_LOGO", TWITCH_LOGO), + ("TWITTER_LOGO", TWITTER_LOGO), + ("UMBRELLA", UMBRELLA), + ("UMBRELLA_SIMPLE", UMBRELLA_SIMPLE), + ("UNION", UNION), + ("UNITE", UNITE), + ("UNITE_SQUARE", UNITE_SQUARE), + ("UPLOAD", UPLOAD), + ("UPLOAD_SIMPLE", UPLOAD_SIMPLE), + ("USB", USB), + ("USER", USER), + ("USER_CHECK", USER_CHECK), + ("USER_CIRCLE", USER_CIRCLE), + ("USER_CIRCLE_CHECK", USER_CIRCLE_CHECK), + ("USER_CIRCLE_DASHED", USER_CIRCLE_DASHED), + ("USER_CIRCLE_GEAR", USER_CIRCLE_GEAR), + ("USER_CIRCLE_MINUS", USER_CIRCLE_MINUS), + ("USER_CIRCLE_PLUS", USER_CIRCLE_PLUS), + ("USER_FOCUS", USER_FOCUS), + ("USER_GEAR", USER_GEAR), + ("USER_LIST", USER_LIST), + ("USER_MINUS", USER_MINUS), + ("USER_PLUS", USER_PLUS), + ("USER_RECTANGLE", USER_RECTANGLE), + ("USER_SOUND", USER_SOUND), + ("USER_SQUARE", USER_SQUARE), + ("USER_SWITCH", USER_SWITCH), + ("USERS", USERS), + ("USERS_FOUR", USERS_FOUR), + ("USERS_THREE", USERS_THREE), + ("VAN", VAN), + ("VAULT", VAULT), + ("VECTOR_THREE", VECTOR_THREE), + ("VECTOR_TWO", VECTOR_TWO), + ("VIBRATE", VIBRATE), + ("VIDEO", VIDEO), + ("VIDEO_CAMERA", VIDEO_CAMERA), + ("VIDEO_CAMERA_SLASH", VIDEO_CAMERA_SLASH), + ("VIDEO_CONFERENCE", VIDEO_CONFERENCE), + ("VIGNETTE", VIGNETTE), + ("VINYL_RECORD", VINYL_RECORD), + ("VIRTUAL_REALITY", VIRTUAL_REALITY), + ("VIRUS", VIRUS), + ("VISOR", VISOR), + ("VOICEMAIL", VOICEMAIL), + ("VOLLEYBALL", VOLLEYBALL), + ("WALL", WALL), + ("WALLET", WALLET), + ("WAREHOUSE", WAREHOUSE), + ("WARNING", WARNING), + ("WARNING_CIRCLE", WARNING_CIRCLE), + ("WARNING_DIAMOND", WARNING_DIAMOND), + ("WARNING_OCTAGON", WARNING_OCTAGON), + ("WASHING_MACHINE", WASHING_MACHINE), + ("WATCH", WATCH), + ("WAVE_SAWTOOTH", WAVE_SAWTOOTH), + ("WAVE_SINE", WAVE_SINE), + ("WAVE_SQUARE", WAVE_SQUARE), + ("WAVE_TRIANGLE", WAVE_TRIANGLE), + ("WAVEFORM", WAVEFORM), + ("WAVEFORM_SLASH", WAVEFORM_SLASH), + ("WAVES", WAVES), + ("WEBCAM", WEBCAM), + ("WEBCAM_SLASH", WEBCAM_SLASH), + ("WEBHOOKS_LOGO", WEBHOOKS_LOGO), + ("WECHAT_LOGO", WECHAT_LOGO), + ("WHATSAPP_LOGO", WHATSAPP_LOGO), + ("WHEELCHAIR", WHEELCHAIR), + ("WHEELCHAIR_MOTION", WHEELCHAIR_MOTION), + ("WIFI_HIGH", WIFI_HIGH), + ("WIFI_LOW", WIFI_LOW), + ("WIFI_MEDIUM", WIFI_MEDIUM), + ("WIFI_NONE", WIFI_NONE), + ("WIFI_SLASH", WIFI_SLASH), + ("WIFI_X", WIFI_X), + ("WIND", WIND), + ("WINDMILL", WINDMILL), + ("WINDOWS_LOGO", WINDOWS_LOGO), + ("WINE", WINE), + ("WRENCH", WRENCH), + ("X", X), + ("X_CIRCLE", X_CIRCLE), + ("X_LOGO", X_LOGO), + ("X_SQUARE", X_SQUARE), + ("YARN", YARN), + ("YIN_YANG", YIN_YANG), + ("YOUTUBE_LOGO", YOUTUBE_LOGO), +]; diff --git a/vendor/egui-phosphor/src/variants/fill.rs b/vendor/egui-phosphor/src/variants/fill.rs new file mode 100644 index 00000000..4b5cc924 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/fill.rs @@ -0,0 +1 @@ +pub use super::codepoints::*; diff --git a/vendor/egui-phosphor/src/variants/light.rs b/vendor/egui-phosphor/src/variants/light.rs new file mode 100644 index 00000000..4b5cc924 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/light.rs @@ -0,0 +1 @@ +pub use super::codepoints::*; diff --git a/vendor/egui-phosphor/src/variants/mod.rs b/vendor/egui-phosphor/src/variants/mod.rs new file mode 100644 index 00000000..5eb4a348 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/mod.rs @@ -0,0 +1,83 @@ +// Every variant uses the same codepoints, so they share one table and each +// variant module re-exports it. `update.py` verifies this still holds. +mod codepoints; + +#[cfg(feature = "bold")] +pub mod bold; +#[cfg(feature = "fill")] +pub mod fill; +#[cfg(feature = "light")] +pub mod light; +#[cfg(feature = "regular")] +pub mod regular; +#[cfg(feature = "thin")] +pub mod thin; + +#[cfg(not(any( + feature = "thin", + feature = "light", + feature = "regular", + feature = "bold", + feature = "fill", +)))] +compile_error!( + "At least one font variant must be selected as a crate feature. When in doubt, use default features." +); + +pub mod bytes { + #[cfg(feature = "thin")] + pub mod thin { + pub const FONT: &[u8] = include_bytes!("../../res/Phosphor-Thin.ttf"); + } + #[cfg(feature = "light")] + pub mod light { + pub const FONT: &[u8] = include_bytes!("../../res/Phosphor-Light.ttf"); + } + #[cfg(feature = "regular")] + pub mod regular { + pub const FONT: &[u8] = include_bytes!("../../res/Phosphor.ttf"); + } + #[cfg(feature = "bold")] + pub mod bold { + pub const FONT: &[u8] = include_bytes!("../../res/Phosphor-Bold.ttf"); + } + #[cfg(feature = "fill")] + pub mod fill { + pub const FONT: &[u8] = include_bytes!("../../res/Phosphor-Fill.ttf"); + } +} + +#[derive(Debug, Clone, Copy)] +pub enum Variant { + #[cfg(feature = "thin")] + Thin, + #[cfg(feature = "light")] + Light, + #[cfg(feature = "regular")] + Regular, + #[cfg(feature = "bold")] + Bold, + #[cfg(feature = "fill")] + Fill, +} + +impl Variant { + pub fn font_bytes(&self) -> &'static [u8] { + match self { + #[cfg(feature = "thin")] + Variant::Thin => bytes::thin::FONT, + #[cfg(feature = "light")] + Variant::Light => bytes::light::FONT, + #[cfg(feature = "regular")] + Variant::Regular => bytes::regular::FONT, + #[cfg(feature = "bold")] + Variant::Bold => bytes::bold::FONT, + #[cfg(feature = "fill")] + Variant::Fill => bytes::fill::FONT, + } + } + + pub fn font_data(&self) -> egui::FontData { + egui::FontData::from_static(self.font_bytes()) + } +} diff --git a/vendor/egui-phosphor/src/variants/regular.rs b/vendor/egui-phosphor/src/variants/regular.rs new file mode 100644 index 00000000..4b5cc924 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/regular.rs @@ -0,0 +1 @@ +pub use super::codepoints::*; diff --git a/vendor/egui-phosphor/src/variants/thin.rs b/vendor/egui-phosphor/src/variants/thin.rs new file mode 100644 index 00000000..4b5cc924 --- /dev/null +++ b/vendor/egui-phosphor/src/variants/thin.rs @@ -0,0 +1 @@ +pub use super::codepoints::*;