diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1ce5eca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + linux: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - name: Install test dependencies + run: | + rustup toolchain install 1.95.0 --profile minimal --component rustfmt + rustup override set 1.95.0 + sudo apt-get update + sudo apt-get install -y xvfb xauth libx11-xcb-dev libxcursor-dev libxi-dev libxkbcommon-x11-dev libfontconfig1-dev fonts-dejavu-core + - name: Run workspace checks + run: xvfb-run -a --server-args="-screen 0 1920x1080x24" ./scripts/check.sh winit-software diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bf56d6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target/ +.DS_Store +Thumbs.db diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..7b4434a --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,5804 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "accesskit" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e883d1d28c5fd5568c79ed2d2bd48d9f2fd3945c8974ed0f53690ceddb051be" +dependencies = [ + "uuid", +] + +[[package]] +name = "accesskit_atspi_common" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24f5baf62e34a4a6c30e3d697e4782f821a7337049c44c3b40576a27dfbb580d" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "phf", + "serde", + "zvariant", +] + +[[package]] +name = "accesskit_consumer" +version = "0.39.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3da8f27636015191b2264ee1df681503170a632cafd832fdc1edfdd4e3a2fd3" +dependencies = [ + "accesskit", + "hashbrown 0.17.2", +] + +[[package]] +name = "accesskit_ios" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5280724673bbfa8b30a838c013500b719392989be3b97c5a9964062c252c232" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.2", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", +] + +[[package]] +name = "accesskit_macos" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "123828ceeec755b05255e3976cb0852993202de98a0626c97dd8d34246991f84" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.2", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "accesskit_unix" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d5192871228c54f1b0fb4a85cef000e11a3804f25d2165f14afa0daa67f3f6" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.35.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498668b90da9995302a0055aaecad4756932333da2ddef6baee1c00844c430fc" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.2", + "static_assertions", + "windows", + "windows-core", +] + +[[package]] +name = "accesskit_winit" +version = "0.34.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd4ab4437b520ff03088fbe48676a11e7d44a929535e64b31432c1073e48dbcc" +dependencies = [ + "accesskit", + "accesskit_ios", + "accesskit_macos", + "accesskit_unix", + "accesskit_windows", + "raw-window-handle", + "winit", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54dae3d1d7b8956f3506c4e999a74e77f932a59153ccf38ab8cf96db74bb9dc0" +dependencies = [ + "cfg-if", + "getrandom", + "once_cell", + "serde", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57b212daf2e827b1ccdd778b7eb48ba433e58cb0e4f27b43cd6b7a608425a014" + +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "annotate-snippets" +version = "0.12.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0258346f92c78dbc5b336b9a5b27c64447aa10643bc64e651db2edb145361564" +dependencies = [ + "anstyle", + "memchr", + "unicode-width", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.6", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix 1.1.6", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.6", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "atspi" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d" +dependencies = [ + "atspi-common", + "atspi-proxies", +] + +[[package]] +name = "atspi-common" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d" +dependencies = [ + "enumflags2", + "serde", + "static_assertions", + "zbus", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "atspi-proxies" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc" +dependencies = [ + "atspi-common", + "serde", + "zbus", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bincode" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" +dependencies = [ + "serde", + "unty", +] + +[[package]] +name = "bindgen" +version = "0.73.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "787ef8ef523575546b106a58213d6e6b06198a05c2f757258c68a74273670cfa" +dependencies = [ + "bitflags 2.13.2", + "cexpr", + "clang-sys", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 2.1.3", + "shlex", + "syn 3.0.10", +] + +[[package]] +name = "bit-set" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "borsh" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +dependencies = [ + "bytes", + "cfg_aliases", +] + +[[package]] +name = "bumpalo" +version = "3.20.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" + +[[package]] +name = "by_address" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" + +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" +dependencies = [ + "bitflags 2.13.2", + "polling", + "rustix 1.1.6", + "tracing", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" +dependencies = [ + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.5", + "rustix 1.1.6", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95e45cf2980b2d467be49a9ed942c9179b701063a7ca3d037de7ee9bd67f8d66" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "cgl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff" +dependencies = [ + "libc", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "clang-sys" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a" +dependencies = [ + "glob", + "libc", + "libloading", +] + +[[package]] +name = "clipboard-win" +version = "5.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" +dependencies = [ + "error-code", +] + +[[package]] +name = "clru" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "197fd99cb113a8d5d9b6376f3aa817f32c1078f2343b714fff7d2ca44fdf67d5" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "codespan-reporting" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-field-offset" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d535c69e75b4e3c69e17205b5b37a91936c54086cecd339b70071500786acb9c" +dependencies = [ + "const-field-offset-macro", + "field-offset", +] + +[[package]] +name = "const-field-offset-macro" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d5848843a221ac268cfdd6bfd14e68d5d3dfa79d52c880aafab93f9517fb74" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "libc", +] + +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" + +[[package]] +name = "crc32fast" +version = "1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd9ae8fcb3ea71b0b26338b4ffb13006bb175de8fd07921089a906ce7e5e6945" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "ctor" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83cf0d42651b16c6dfe68685716d18480d18a9c39c62d76e8cf3eb6ed5d8bcbf" +dependencies = [ + "dtor", +] + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "data-url" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376" + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", + "unicode-xid", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "drm" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bc8c5c6c2941f70a55c15f8d9f00f9710ebda3ffda98075f996a0e6c92756f" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "drm-ffi", + "drm-fourcc", + "libc", + "rustix 0.38.44", +] + +[[package]] +name = "drm-ffi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51a91c9b32ac4e8105dec255e849e0d66e27d7c34d184364fb93e469db08f690" +dependencies = [ + "drm-sys", + "rustix 1.1.6", +] + +[[package]] +name = "drm-fourcc" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4" + +[[package]] +name = "drm-sys" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8e1361066d91f5ffccff060a3c3be9c3ecde15be2959c1937595f7a82a9f8" +dependencies = [ + "libc", + "linux-raw-sys 0.9.4", +] + +[[package]] +name = "dtor" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b" + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "femtovg" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd6dfbb6f827356c8a284b9b7ab83828d6d630fe5457aa59f56092ee49f407a" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "fnv", + "glow", + "imgref", + "itertools", + "log", + "rgb", + "slotmap", + "swash", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "filetime" +version = "0.2.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7" +dependencies = [ + "cfg-if", + "libc", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e44f110d1777dc6559a51e7d45083945ded4f1bf3305494350f693b6d20b9c8" + +[[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 = "flate2" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "float-cmp" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "fontdb" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2660c5e9157bf76d2db1294e4a9feba604ef610819a3b591088d0d8392a3290f" +dependencies = [ + "log", + "slotmap", + "tinyvec", +] + +[[package]] +name = "fontique" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbf1df16263783918b7da396077521f92b729ef7c429444dfcf03581f1448b77" +dependencies = [ + "hashbrown 0.17.2", + "linebender_resource_handle", + "memmap2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-text", + "objc2-foundation 0.3.2", + "parlance", + "read-fonts", + "roxmltree", + "smallvec", + "windows", + "windows-core", + "yeslogic-fontconfig-sys", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gbm" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce852e998d3ca5e4a97014fb31c940dc5ef344ec7d364984525fd11e8a547e6a" +dependencies = [ + "bitflags 2.13.2", + "drm", + "drm-fourcc", + "gbm-sys", + "libc", +] + +[[package]] +name = "gbm-sys" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13a5f2acc785d8fb6bf6b7ab6bfb0ef5dad4f4d97e8e70bb8e470722312f76f" +dependencies = [ + "libc", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.6", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasm-bindgen", +] + +[[package]] +name = "gif" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159" +dependencies = [ + "color_quant", + "weezl", +] + +[[package]] +name = "gl_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" +dependencies = [ + "khronos_api", + "log", + "xml-rs", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "glow" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "263218b0ba2b0715c3370fb04674f5f8aa331594b521c94ff0a8e4a8472d1386" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "glutin" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325" +dependencies = [ + "bitflags 2.13.2", + "cfg_aliases", + "cgl", + "dispatch2", + "glutin_egl_sys", + "glutin_glx_sys", + "glutin_wgl_sys", + "libloading", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "once_cell", + "raw-window-handle", + "wayland-sys", + "windows-sys 0.52.0", + "x11-dl", +] + +[[package]] +name = "glutin-winit" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f" +dependencies = [ + "cfg_aliases", + "glutin", + "raw-window-handle", + "winit", +] + +[[package]] +name = "glutin_egl_sys" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2" +dependencies = [ + "gl_generator", + "windows-sys 0.52.0", +] + +[[package]] +name = "glutin_glx_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185" +dependencies = [ + "gl_generator", + "x11-dl", +] + +[[package]] +name = "glutin_wgl_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e" +dependencies = [ + "gl_generator", +] + +[[package]] +name = "gpu-allocator" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795" +dependencies = [ + "ash", + "hashbrown 0.16.1", + "log", + "presser", + "thiserror 2.0.21", + "windows", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "harfrust" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "read-fonts", + "smallvec", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" +dependencies = [ + "foldhash", +] + +[[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.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "htmlparser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48ce8546b993eaf241d69ded33b1be6d205dd9857ec879d9d18bd05d3676e144" + +[[package]] +name = "i-slint-backend-linuxkms" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d422c55c4b1b564d5622edfbb99036a68b558dbfee3f48257cc11c6cd4ba105" +dependencies = [ + "bytemuck", + "calloop 0.14.5", + "cfg_aliases", + "drm", + "gbm", + "gbm-sys", + "glutin", + "i-slint-common", + "i-slint-core", + "i-slint-renderer-femtovg", + "i-slint-renderer-software", + "input", + "libseat", + "libudev-sys", + "memmap2", + "nix", + "pkg-config", + "raw-window-handle", + "xkbcommon", +] + +[[package]] +name = "i-slint-backend-selector" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413d6a72d11da38259d1b53c6a32b60dbf820aef6b95d73fc236bdf76bdae316" +dependencies = [ + "cfg_aliases", + "i-slint-backend-linuxkms", + "i-slint-backend-testing", + "i-slint-backend-winit", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", +] + +[[package]] +name = "i-slint-backend-testing" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "930e2c0fc1722c5e14b5dca9ac3e1f11e7cf60f5f8ba50bc208b0671cebcdbe2" +dependencies = [ + "cfg_aliases", + "i-slint-common", + "i-slint-core", + "i-slint-renderer-software", + "vtable", +] + +[[package]] +name = "i-slint-backend-winit" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d170c0918bd38f3afd3dcced2056f8741b8652867ab2554d58a47ad870eab09" +dependencies = [ + "accesskit", + "accesskit_winit", + "arboard", + "block2 0.6.2", + "bytemuck", + "cfg_aliases", + "futures", + "glutin", + "glutin-winit", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", + "i-slint-renderer-skia", + "i-slint-renderer-software", + "imgref", + "itertools", + "lyon_path", + "muda", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "objc2-ui-kit 0.3.2", + "pin-weak", + "raw-window-handle", + "rgb", + "scoped-tls-hkt", + "scopeguard", + "smithay-clipboard", + "softbuffer", + "strum", + "vtable", + "wasm-bindgen", + "web-sys", + "webbrowser", + "windows", + "winit", + "zbus", +] + +[[package]] +name = "i-slint-common" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "676891b286d16a92564780d48b8890f2eca3a49f02b5ecdaa0201e84cb9c10b0" +dependencies = [ + "derive_more", + "euclid", + "fontique", + "htmlparser", + "icu_decimal", + "icu_locale_core", + "icu_provider", + "objc2 0.6.5", + "pulldown-cmark", + "resvg", + "skrifa", +] + +[[package]] +name = "i-slint-compiler" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1667da24d1930e9f28e41a987e74611c6c923598d7c67a338ed585ad8b43a900" +dependencies = [ + "annotate-snippets", + "by_address", + "data-url", + "derive_more", + "either", + "i-slint-common", + "icu_normalizer", + "icu_properties", + "image", + "indexmap", + "itertools", + "lyon_extra", + "lyon_path", + "num_enum", + "once_cell", + "proc-macro2", + "quote", + "rayon", + "resvg", + "rowan", + "rspolib", + "serde", + "serde_json", + "skrifa", + "smol_str 0.3.7", + "strum", + "swash", + "syn 3.0.10", + "typed-index-collections", + "unicode-segmentation", + "url", +] + +[[package]] +name = "i-slint-core" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8764dedbc051cd5813c320dfe91e0c5be99169f171e1385c6fc183ae7e1b90ba" +dependencies = [ + "accesskit", + "bitflags 2.13.2", + "bytemuck", + "chrono", + "clru", + "const-field-offset", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core-macros", + "icu_normalizer", + "image", + "js-sys", + "lyon_algorithms", + "lyon_extra", + "lyon_geom", + "lyon_path", + "num-traits", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "once_cell", + "parley", + "pin-project", + "pin-weak", + "portable-atomic", + "raw-window-handle", + "resvg", + "rgb", + "scopeguard", + "skrifa", + "slab", + "strum", + "swash", + "sys-locale", + "taffy", + "unicode-linebreak", + "unicode-script", + "unicode-segmentation", + "vtable", + "wasm-bindgen", + "web-sys", + "web-time", + "wgpu", + "windows", +] + +[[package]] +name = "i-slint-core-macros" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3321045008b1322dec5101fb5de8ebd32b28862ebefe4ef65ab30b6096e09ac" +dependencies = [ + "quote", + "serde_json", + "syn 3.0.10", +] + +[[package]] +name = "i-slint-renderer-femtovg" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4efddbd0a02cc8f0ea1b9bb308e3ec7fe2feefdcf1bc43fb17d450e8285573" +dependencies = [ + "const-field-offset", + "femtovg", + "glow", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "imgref", + "lyon_path", + "pin-weak", + "rgb", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "i-slint-renderer-skia" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cfe63a57dc99c4a502b5cd805458380a98bcd30c80b21260d40597026fea11b" +dependencies = [ + "bytemuck", + "cfg_aliases", + "clru", + "const-field-offset", + "glow", + "glutin", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "lyon_path", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "pin-weak", + "raw-window-handle", + "read-fonts", + "scoped-tls-hkt", + "skia-safe", + "softbuffer", + "spin_on", + "unicode-segmentation", + "vtable", + "wgpu", + "wgpu-hal", + "windows", + "windows-core", + "write-fonts", +] + +[[package]] +name = "i-slint-renderer-software" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ec483856c0dc16a6ad3d9048162231db2e018a389625967ce975ad8025d9b33" +dependencies = [ + "bytemuck", + "clru", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core", + "lyon_path", + "num-traits", + "skrifa", + "swash", + "zeno", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_decimal" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1150ad5e272740670464934ee76facda43ef2e11f85c27b7ba76ccb33edf2d05" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_decimal_data", + "icu_locale_core", + "icu_locale_fallback", + "icu_plurals", + "icu_provider", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_decimal_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5595ab78370d48abd24a062f3db115d5108dd0b65634352036cae532aebb0df8" + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c" +dependencies = [ + "icu_locale_core", + "icu_locale_fallback_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c" + +[[package]] +name = "icu_normalizer" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" + +[[package]] +name = "icu_plurals" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ef046647b445acf95ce0f8083fa292467d3df649959fa9a20f3f8abfd957c5d" +dependencies = [ + "fixed_decimal", + "icu_locale_fallback", + "icu_plurals_data", + "icu_provider", + "zerovec", +] + +[[package]] +name = "icu_plurals_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43ff7df2c1a1d41588a6ddcba354d513d4a3e10eec22c06fe56d13c12a848ea" + +[[package]] +name = "icu_properties" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710" +dependencies = [ + "icu_collections", + "icu_locale_fallback", + "icu_provider", + "icu_segmenter_data", + "potential_utf", + "smallvec", + "utf8_iter", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "imagesize" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a" + +[[package]] +name = "imgref" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e44b0a4eaa4c82f441d50a963f2d5f05a787240aeee097597033e72accfd22f" + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.2", +] + +[[package]] +name = "input" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9793345a65d71317763a33066b5d8351f8760dde8d4930fe9e39b5f14a7959d" +dependencies = [ + "bitflags 2.13.2", + "input-sys", + "libc", + "log", + "udev", +] + +[[package]] +name = "input-sys" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7" + +[[package]] +name = "io-lifetimes" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" +dependencies = [ + "hermit-abi 0.3.9", + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "keyboard-types" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d" +dependencies = [ + "bitflags 2.13.2", + "serde", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + +[[package]] +name = "kurbo" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2" +dependencies = [ + "arrayvec", + "euclid", + "polycool", + "smallvec", +] + +[[package]] +name = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "bitflags 2.13.2", + "libc", + "plain", + "redox_syscall 0.9.5", +] + +[[package]] +name = "libseat" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6656c69b6e0366ffb83faa232f3e4fda5fc91161722d140f2c95ce2e90b1ef31" +dependencies = [ + "errno", + "libseat-sys", + "log", +] + +[[package]] +name = "libseat-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a484fa48be5f62a8d3ffed767779d0ab808cfead91de98ef4362d469097dfb" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libudev-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "linebender_resource_handle" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" + +[[package]] +name = "linux-raw-sys" +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" + +[[package]] +name = "litrs" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02b614978e47ce529faee66579f2b2fe19c94aa96d910a6a9a8043b2b02d8175" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "lyon_algorithms" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805" +dependencies = [ + "lyon_path", + "num-traits", +] + +[[package]] +name = "lyon_extra" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7755f08423275157ad1680aaecc9ccb7e0cc633da3240fea2d1522935cc15c72" +dependencies = [ + "lyon_path", + "thiserror 2.0.21", +] + +[[package]] +name = "lyon_geom" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82dd26aa4dc0b5b70b9115de59824842bcb43cf4a28e1b1e6d0ad148c93f93e" +dependencies = [ + "arrayvec", + "euclid", + "num-traits", +] + +[[package]] +name = "lyon_path" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e" +dependencies = [ + "lyon_geom", + "num-traits", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memmap2" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "muda" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4340e89c178916e62879c5c36b7f699019369be413e496178a6983ce91b8bc03" +dependencies = [ + "crossbeam-channel", + "dpi", + "keyboard-types", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "png", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "naga" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd0dd362bf26c0ffdd143df6da66a25d287e196eff482f117771010b207ad163" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.17.2", + "indexmap", + "libm", + "log", + "naga-types", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "naga-types" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14474170feb673cfb18b3565111a9869797cc1d290fb9ec969c53f5e1e231c6d" +dependencies = [ + "hashbrown 0.17.2", + "indexmap", + "rustc-hash 1.1.0", + "thiserror 2.0.21", +] + +[[package]] +name = "natord" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c" + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "nix" +version = "0.31.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bc81ce8148d3b4f3274da811f11cdd824ae661ee4ef732cdb229825cf5be7f7" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "libc", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation 0.2.2", + "objc2-quartz-core 0.2.2", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal 0.2.2", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core 0.2.2", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +dependencies = [ + "critical-section", + "portable-atomic", +] + +[[package]] +name = "orbclient" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f59006ce1e204c30956638535b74d317bca99477b9356dfaec54c37f6f600ab" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "owned_ttf_parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b" +dependencies = [ + "ttf-parser", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "parlance" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73072a9470554c8e794778acece2312661218aaabb635600957d952cf01c716e" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "parley" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61bd0c0c1737f0b3d3726dc06b225083af213b61913e4fbae1670613a106c6ce" +dependencies = [ + "fontique", + "hashbrown 0.17.2", + "linebender_resource_handle", + "parlance", + "parley_engine", + "smallvec", +] + +[[package]] +name = "parley_data" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43b63f808f6cc8f4a3b07de0d62a977bddd2e0bb5c232bd9e93ba8ef92e5e4b" +dependencies = [ + "icu_collections", + "icu_properties", +] + +[[package]] +name = "parley_emoji" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c4482d912d7671a7cd2089794f90ef3bb5f5f8c738230fb0fcd50fa020f0ed3" + +[[package]] +name = "parley_engine" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b74c0d373e462e504ad4436710a39f099e18e848e1ee711f70cd2dcd5a69b290" +dependencies = [ + "fontique", + "harfrust", + "hashbrown 0.17.2", + "icu_locale_core", + "icu_normalizer", + "icu_properties", + "icu_segmenter", + "linebender_resource_handle", + "parlance", + "parley_data", + "parley_emoji", + "skrifa", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pico-args" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" + +[[package]] +name = "pin-project" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6c2123f4708bbd422630a6dae7c03f678b1ce1f1c99e4c4b3beac69c8174cc9" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "358938fd6df944c1e44bb328b60fb275f13c804aac47ba26a1165d45a3f87756" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752" + +[[package]] +name = "pin-utils" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113" + +[[package]] +name = "pin-weak" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b330c9d1b92dfe68442ca20b009c717d5f0b1e3cf4965e62f704c3c6e95a1305" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi 0.5.3", + "pin-project-lite", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "polycool" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" +dependencies = [ + "critical-section", +] + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[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" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "prettyplease" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" +dependencies = [ + "proc-macro2", + "syn 3.0.10", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" + +[[package]] +name = "pulldown-cmark" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b" +dependencies = [ + "bitflags 2.13.2", + "memchr", + "unicase", +] + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "raw-window-metal" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135" +dependencies = [ + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types", + "once_cell", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_syscall" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "regex" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "resvg" +version = "0.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1572844b6727a1bf842190e9947641a68ac44bed83f50afb4bd1407a2564bee8" +dependencies = [ + "bytemuck", + "gif", + "image-webp", + "log", + "pico-args", + "rgb", + "svgtypes", + "tiny-skia 0.12.0", + "usvg", + "zune-jpeg", +] + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "rowan" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14b574c58582fa59fa43a2feb6608b8744184659f08a2e0117e4b8224d95ed61" +dependencies = [ + "countme", + "hashbrown 0.14.5", + "memoffset", + "rustc-hash 1.1.0", + "text-size", +] + +[[package]] +name = "roxmltree" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907" +dependencies = [ + "memchr", +] + +[[package]] +name = "rspolib" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fda9a7796aff63a7b1b39ccc93fffaaf65e20042984b4843041a49ca4677535" +dependencies = [ + "lazy_static", + "natord", + "snafu", + "unicode-linebreak", + "unicode-width", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scoped-tls-hkt" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9603871ffe5df3ac39cb624790c296dbd47a400d202f56bf3e414045099524d" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia 0.11.4", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serde_spanned" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" +dependencies = [ + "serde_core", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "simplecss" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a9c6883ca9c3c7c90e888de77b7a5c849c779d25d74a1269b0218b14e8b136c" +dependencies = [ + "log", +] + +[[package]] +name = "siphasher" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" + +[[package]] +name = "skia-bindings" +version = "0.157.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3930c7f5e8d813364d74c3b17b227f3bb3a84504f93bb1f8c222d8fd5a7d9c6f" +dependencies = [ + "bindgen", + "cc", + "flate2", + "heck", + "pkg-config", + "regex", + "serde_json", + "tar", + "toml", +] + +[[package]] +name = "skia-safe" +version = "0.157.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1c946dbc1a10b6b1ace7e368ea71f96c81448bbf55effcad0a9a3a392358eb" +dependencies = [ + "bitflags 2.13.2", + "skia-bindings", + "windows", +] + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +dependencies = [ + "bytemuck", + "read-fonts", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slint" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c513481458768be8e3521948c1d00d3b90b6a56df93790a77773c69cbda1a60" +dependencies = [ + "const-field-offset", + "i-slint-backend-linuxkms", + "i-slint-backend-selector", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", + "i-slint-renderer-software", + "once_cell", + "pin-weak", + "slint-macros", + "vtable", +] + +[[package]] +name = "slint-build" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4f942e3dff10848c7027e465ecdde27297cff5f8db597800d61922e8c083931" +dependencies = [ + "derive_more", + "fontique", + "i-slint-compiler", + "spin_on", + "toml_edit", +] + +[[package]] +name = "slint-macros" +version = "1.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "100eae657ddb5e10b8f3a5d61ac11ee6c8a9690d832673e89f117f1425259a66" +dependencies = [ + "i-slint-compiler", + "proc-macro2", + "quote", + "spin_on", +] + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.6", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "smol_str" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeb7109d23f319619d4cc0de5464613c8b7b1a09db2774a58101459cf6be2f10" +dependencies = [ + "borsh", + "serde_core", +] + +[[package]] +name = "snafu" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2" +dependencies = [ + "snafu-derive", +] + +[[package]] +name = "snafu-derive" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "as-raw-xcb-connection", + "bytemuck", + "fastrand", + "js-sys", + "memmap2", + "ndk", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "raw-window-handle", + "redox_syscall 0.5.18", + "rustix 1.1.6", + "tiny-xlib", + "tracing", + "wasm-bindgen", + "wayland-backend", + "wayland-client", + "wayland-sys", + "web-sys", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "spin_on" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "076e103ed41b9864aa838287efe5f4e3a7a0362dd00671ae62a212e5e4612da2" +dependencies = [ + "pin-utils", +] + +[[package]] +name = "spirv" +version = "0.4.0+sdk-1.4.341.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" +dependencies = [ + "float-cmp", +] + +[[package]] +name = "strum" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "svgtypes" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f12b12995e3638c70618c1facb1ce65302f6a6f706b675f07c58a5d7391120e" +dependencies = [ + "kurbo", + "siphasher", +] + +[[package]] +name = "swash" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" +dependencies = [ + "skrifa", + "yazi", + "zeno", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +dependencies = [ + "proc-macro2", + "quote", + "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.10", +] + +[[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]] +name = "taffy" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31f7bd2d97198df05186f93a3a3c306845f40e8b3c22bf9279cdd7e5cf5fea7d" +dependencies = [ + "serde", + "slotmap", +] + +[[package]] +name = "tar" +version = "0.4.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom", + "once_cell", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "tempo-ui" +version = "0.1.0" +dependencies = [ + "slint", +] + +[[package]] +name = "tempo-ui-showcase" +version = "0.1.0" +dependencies = [ + "png", + "slint", + "slint-build", + "tempo-ui", +] + +[[package]] +name = "text-size" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233" + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "tiny-skia" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "tiny-skia-path 0.11.4", +] + +[[package]] +name = "tiny-skia" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "png", + "tiny-skia-path 0.12.0", +] + +[[package]] +name = "tiny-skia-path" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tiny-skia-path" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tiny-xlib" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4" +dependencies = [ + "as-raw-xcb-connection", + "ctor", + "libloading", + "pkg-config", + "tracing", +] + +[[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 = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "pin-project-lite", +] + +[[package]] +name = "toml" +version = "1.2.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b1f26e9485c1fa43ee89fe76e9f3fb9e2e52bb227f8594b4d687496b83d073" +dependencies = [ + "indexmap", + "serde_core", + "serde_spanned", + "toml_datetime", + "toml_parser", + "toml_writer", + "winnow", +] + +[[package]] +name = "toml_datetime" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.21+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88497dab46de5bf343ec66b05c251e48c6213f3e9170c70a70a823f7abe886a4" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "toml_writer", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.7+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb28d6e049a9766c3bd91a8326e6179f5b132dec87906bb97018ef7a2f3431a" +dependencies = [ + "winnow", +] + +[[package]] +name = "toml_writer" +version = "1.2.0+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" + +[[package]] +name = "tracing" +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", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" + +[[package]] +name = "typed-index-collections" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "898160f1dfd383b4e92e17f0512a7d62f3c51c44937b23b6ffc3a1614a8eaccd" +dependencies = [ + "bincode", + "serde", +] + +[[package]] +name = "udev" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af4e37e9ea4401fc841ff54b9ddfc9be1079b1e89434c1a6a865dd68980f7e9f" +dependencies = [ + "io-lifetimes", + "libc", + "libudev-sys", + "pkg-config", +] + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicase" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-linebreak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" + +[[package]] +name = "unicode-script" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa04c955db05429d464c74d495c1ee677e1866e783a4c3747f9c0cef7756cabf" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-vo" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "unty" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae" + +[[package]] +name = "url" +version = "2.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "usvg" +version = "0.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d09b73ee83641d390ad7ffd9000f347b16eb128e437675b6ff277ea5c7fcf22c" +dependencies = [ + "base64", + "data-url", + "flate2", + "fontdb", + "harfrust", + "imagesize", + "kurbo", + "log", + "pico-args", + "roxmltree", + "simplecss", + "siphasher", + "skrifa", + "strict-num", + "svgtypes", + "tiny-skia-path 0.12.0", + "unicode-bidi", + "unicode-script", + "unicode-vo", + "xmlwriter", +] + +[[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.29.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c14b15dffa2f4bd712103e857140aa04a4f2ff6e955c77d7eb8e53ee02a3b64" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vtable" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b61cfbcacfc3669ee9afb88566e2b5eb7de86ebcf7b81409c3f8a767e0e0e7ce" +dependencies = [ + "const-field-offset", + "portable-atomic", + "stable_deref_trait", + "vtable-macro", +] + +[[package]] +name = "vtable-macro" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66a8daeaea1a2d710306a00be752bda09b11011e4aa0e816ad768348491a1ab6" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "walkdir" +version = "2.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b42e295b7452c4604982280d8586001fcad9b8b201cac67bca9771e7a7475403" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.10", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.6", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags 2.13.2", + "rustix 1.1.6", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-csd-frame" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" +dependencies = [ + "bitflags 2.13.2", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" +dependencies = [ + "rustix 1.1.6", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-experimental" +version = "20250721.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webbrowser" +version = "1.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73e91ccd4698f2647d6137e8eb17a3f1dcfd63810be9029fb2398f507279b95b" +dependencies = [ + "jni", + "log", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "url", + "web-sys", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146fc3d654250e6207921a66c87534c621bc886c70df83dcf466c1d66813810e" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.17.2", + "log", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad661da2ee99f208c30090b585284b2ab5b8bf2358ddf2d2215592808ec62f1a" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.17.2", + "indexmap", + "log", + "naga", + "naga-types", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-naga-bridge", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d3f2f24aee039ffe9ef527300daf6b7428c58edeefdaa1700f4fa0fd754df16" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1331b08fa2362c5d454eccc4448e6e4f01eccfea569a00e310adbfc4415f2bdc" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a57452fe453658e141aafdb09de1028afa498805fab518238ddf372a518813ff" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block2 0.6.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "gpu-allocator", + "hashbrown 0.17.2", + "libc", + "libloading", + "log", + "naga", + "naga-types", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "raw-window-metal", + "renderdoc-sys", + "smallvec", + "static_assertions", + "thiserror 2.0.21", + "wgpu-naga-bridge", + "wgpu-types", + "windows", + "windows-core", +] + +[[package]] +name = "wgpu-naga-bridge" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44a62ead68aad7cd40ac9e2cd2b8ec64f32dfbad2765f429b9fb74b8b735869f" +dependencies = [ + "naga", + "wgpu-types", +] + +[[package]] +name = "wgpu-types" +version = "30.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9f6ee0bd50f5ab79fb8c25e3f33afb27126f034af4ba5909c7a0967058659e6" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "log", + "naga-types", + "raw-window-handle", + "static_assertions", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", + "orbclient", + "percent-encoding", + "pin-project", + "raw-window-handle", + "redox_syscall 0.4.1", + "rustix 0.38.44", + "sctk-adwaita", + "smithay-client-toolkit 0.19.2", + "smol_str 0.2.2", + "tracing", + "unicode-segmentation", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-plasma", + "web-sys", + "web-time", + "windows-sys 0.52.0", + "x11-dl", + "x11rb", + "xkbcommon-dl", +] + +[[package]] +name = "winnow" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +dependencies = [ + "memchr", +] + +[[package]] +name = "write-fonts" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cae90d1d9f6d1d36ef116b0b1e651a6d7c12ba925439d4d06ff9adc94662a3d8" +dependencies = [ + "font-types", + "indexmap", + "kurbo", + "log", + "read-fonts", +] + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading", + "once_cell", + "rustix 1.1.6", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "xattr" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" +dependencies = [ + "libc", + "rustix 1.1.6", +] + +[[package]] +name = "xcursor" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a974f48060a14e95705c01f24ad9c3345022f4d97441b8a36beb7ed5c4a02d" +dependencies = [ + "libc", + "memmap2", + "xkeysym", +] + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.13.2", + "dlib", + "log", + "once_cell", + "xkeysym", +] + +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + +[[package]] +name = "xml-rs" +version = "0.8.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" + +[[package]] +name = "xmlwriter" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9" + +[[package]] +name = "yazi" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac366ea532fa8ee6a992cec9dea525b1dc284e69702f36c2ab5fbebadc81ec86" + +[[package]] +name = "yeslogic-fontconfig-sys" +version = "6.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2232035104db97d8ded0e24a20d6ba61a0f904e5830d437f411d9a499336224" +dependencies = [ + "dlib", + "once_cell", + "pkg-config", +] + +[[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.10", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.6", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus-lockstep" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863" +dependencies = [ + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus-lockstep-macros" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "zbus-lockstep", + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.10", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zbus_xml" +version = "5.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a" +dependencies = [ + "serde", + "winnow", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2da34e7164b75d803c3197b86e6cf61b874106fbd472c5082575a8bc5fbd0907" +dependencies = [ + "serde", +] + +[[package]] +name = "zeno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" + +[[package]] +name = "zerocopy" +version = "0.8.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cba8a86aee14fc8cc6c208af60854b3d4ab7185a9a369a12c648faa2716ff42a" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f89bca3b96ceb3cfcb4572790402f977442270d252b9a8504ebc258760c55f94" +dependencies = [ + "proc-macro2", + "quote", + "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.10", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "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.10", +] + +[[package]] +name = "zlib-rs" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.10", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.10", + "winnow", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..3e6cd23 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,34 @@ +[workspace] +members = ["examples/showcase"] +resolver = "3" + +[workspace.package] +version = "0.1.0" +edition = "2024" +rust-version = "1.95" +license = "MIT" +repository = "https://github.com/AxlumLab/TempoUI" + +[workspace.dependencies] +slint = { version = "=1.19.1", default-features = false } +slint-build = "=1.19.1" + +[package] +name = "tempo-ui" +description = "Rust helpers for the Tempo UI component library for Slint" +version.workspace = true +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +publish = false + +[features] +default = [] +finui-font-fallback = ["dep:slint"] + +[dependencies] +slint = { workspace = true, optional = true, features = ["std", "unstable-fontique-012", "compat-1-2"] } + +[profile.dev] +debug = 0 diff --git a/LICENSES/FinUI-MIT.txt b/LICENSES/FinUI-MIT.txt new file mode 100644 index 0000000..371d95f --- /dev/null +++ b/LICENSES/FinUI-MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 FlybirdGames + +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/LICENSES/Fluent-System-Icons-MIT.txt b/LICENSES/Fluent-System-Icons-MIT.txt new file mode 100644 index 0000000..bc9c36b --- /dev/null +++ b/LICENSES/Fluent-System-Icons-MIT.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Microsoft Corporation + +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/README.md b/README.md new file mode 100644 index 0000000..cd76c40 --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# Tempo UI + +Tempo UI is a Slint component library derived from FinUI. It includes themed controls, responsive navigation, dialogs and sheets, refreshable and reorderable lists, motion helpers, and a set of Fluent icons. The Slint components share a single import. The optional Rust helpers cover route history and CJK font fallback. + +![Tempo UI desktop component gallery](docs/images/catalog-desktop.png) + +## Run the showcase + +Use Rust 1.95 or later and a desktop graphical session. + +```sh +cargo run --release --locked -p tempo-ui-showcase +``` + +| Arguments after `--` | Showcase | +| --- | --- | +| `--compact --dark` | Narrow dark layout | +| `--layout --wide` | Three-pane layout | +| `--lists` | Virtualized list, queue reordering, and action menu | +| `--music` | FMusic-inspired sample browser with simulated playback | + +The showcase prefers FemtoVG and includes a software renderer. Set `SLINT_BACKEND=winit-software` to select software rendering. See the [narrow layout](docs/images/catalog-compact.png) and [list controls](docs/images/flutter-replacements-compact.png). + +## Use the components + +Add Tempo UI to your application checkout, for example under `vendor/TempoUI`. Use Slint and `slint-build` 1.19.1 to match the tested version. Register the library entry from your application's `build.rs`. + +```rust +use std::{collections::HashMap, env, path::PathBuf}; + +fn main() { + let project = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap()); + let libraries = HashMap::from([( + "tempo-ui".into(), + project.join("vendor/TempoUI/ui/index.slint"), + )]); + let config = slint_build::CompilerConfiguration::new().with_library_paths(libraries); + slint_build::compile_with_config("ui/main.slint", config).unwrap(); +} +``` + +```slint +import { TempoButton, TempoTheme } from "@tempo-ui"; + +export component App inherits Window { + background: TempoTheme.background; + + VerticalLayout { + padding: 16px; + TempoButton { label: "Continue"; } + } +} +``` + +The [showcase build script](examples/showcase/build.rs) uses this same import mechanism. For Rust route history, add `tempo-ui = { path = "vendor/TempoUI" }` under `[dependencies]`. Enable the `finui-font-fallback` feature to use `tempo_ui::fonts::configure_finui_fallbacks()` before constructing a window. + +## Verification + +```sh +cargo test --workspace --locked +./scripts/check.sh +``` + +The smoke checks require a graphical session and cover wide and narrow layouts, keyboard and pointer input, overlays, refresh, list virtualization, and animations. GitHub Actions runs the software-renderer checks on Linux. See the [FinUI component mapping](docs/PORTING.md) and [Flutter-to-Slint implementation notes](docs/REPLACEMENTS.md) for the scope of platform-specific behavior. + +## License + +Tempo UI uses the [MIT license](LICENSE). Attribution for the FinUI adaptation and Microsoft Fluent System Icons is in [LICENSES](LICENSES/). diff --git a/docs/PORTING.md b/docs/PORTING.md new file mode 100644 index 0000000..d21a8f9 --- /dev/null +++ b/docs/PORTING.md @@ -0,0 +1,59 @@ +# FinUI → Tempo UI 对照 + +按 Flutter 版 `lib/fin_ui.dart` 的 **29 个公开导出文件**逐项对照。下面每项已有可用对应,合并模块不重复计组件。迁移的是 Slint/Rust 的外观和功能,不兼容 Dart Widget、Flutter 路由或插件 API。 + +| FinUI 导出文件 | Tempo UI 对应实现 | +| --- | --- | +| `app_bar` | `TempoAppBar` | +| `app_bottom_tab_bar` | `TempoNav` 的底栏模式 | +| `app_button_group_tab_bar` | `TempoButtonGroupTabBar`,含图标模式和按选项宽度滑动的选中块 | +| `app_button` | `TempoButton`,含变体、禁用态和加载态 | +| `app_colors` | `TempoTheme` 的浅色、深色和强调色 | +| `app_combo_box` | `TempoComboBox`,窄屏底部选择面板、宽屏锚定下拉,支持禁用项和键盘选择 | +| `app_context` | `TempoTheme` 全局语义色,替代 Flutter 主题上下文扩展 | +| `app_dialog` | `TempoDialog`,宽窄屏居中,支持滚动内容、确认/取消、遮罩和 Esc | +| `app_empty_state` | `TempoEmptyState` | +| `app_floating_action_button` | `TempoFloatingActionButton`,常规和紧凑大小 | +| `app_icon_button` | `TempoIconButton`,含变体、加载和提示 | +| `app_icons` | `TempoIcons`,60 个别名对应 58 个官方 SVG | +| `app_page` | `TempoPage`,含滚动、边距和安全区 | +| `app_progress_bar` | `TempoProgressBar`,确定与不确定进度模式 | +| `app_refresh` | `TempoRefresh`、`TempoRefreshText`,刷新、加载、结束状态和原版五语种文案 | +| `app_section` | `TempoSection` + `TempoDivider`。Slint 子节点间显式放分隔线 | +| `app_segmented_control` | `TempoSegmentedControl` | +| `app_selection_tile` | `TempoSelectionTile`、`TempoRadioTile` | +| `app_slider` | `TempoSlider`,范围、步进、禁用、键盘与指针操作 | +| `app_surface` | `TempoSurface`、`TempoClickableSurface` | +| `app_tag` | `TempoTag`,五种变体和可选图标 | +| `app_text_field` | `TempoTextField`、`TempoSearch`,普通/密码/数字/搜索输入和编辑/提交事件 | +| `app_tile` | `TempoTile`,图标前缀、自定义尾部内容和尾部图标 | +| `app_toast` | `TempoToastHost`,底部胶囊、四种状态、超时、手动关闭和替换 | +| `app_tokens` | `TempoTokens` | +| `fui_adaptive_split` | `TempoAdaptiveSplit`,紧凑页/底部面板/弹窗、双栏和三栏 | +| `fui_navigation` | `TempoNavigationShell`、`TempoNavigationContent`、`TempoNav` + Rust `RouteStacks` | +| `fui_page_head` | `TempoPageHead` | +| `fui_theme` | `TempoTheme` + 宿主字体回退,支持宿主明确设置或读取 Slint 提供的配色 | + +## 五轮交付记录 + +1. 补下拉框、对话框、Toast、浮动按钮、刷新和独立按钮组标签栏。 +2. 补页面栏、滚动页、页面标题、自适应分栏和导航历史。完善通用输入、进度/步进、单选、主题和图标。 +3. 用临时 Flutter 3.44.0 环境跑原库 15 个测试,另加同尺寸截图夹具。对照修复了初始图标标签选中块、Toast 位置、窄屏详情遮盖底栏和桌面侧栏视觉差异。 +4. 用 Slint 的原生指针和键盘事件验证了标签点击、输入提交、禁用下拉项、弹窗 Esc、受控刷新、分页结束和模拟安全区。验证窄屏、普通桌面、超宽分栏及两个渲染器。截图不是像素级金标。 +5. 整理公共导出、可重复检查脚本、截图和使用说明。发布构建内嵌 SVG 等资源,不依赖原 Flutter 工作区。 + +## 保留的实现差异和平台验收边界 + +- Flutter 的 Widget 插槽、路由转场、Hero 和 GetX root overlay 不直接移植。Slint 由宿主提供导航内容和返回事件,Toast 使用每窗口的 Host。当前不实现 Flutter 的 Android predictive-back 转场和 Cupertino 交互式返回动画。 +- 安全区接的是 Slint Window 输入,并测了合成 inset。系统状态栏样式、触屏惯性与输入法、系统自动填充、TalkBack/VoiceOver 和原生返回手势仍需实际移动端宿主验收。Windows、Android 和 iOS 没有本轮真机验证。 +- 平台强调色和字体以宿主能提供的信息为准。当前支持手动语义色、Slint 平台配色入口及已安装字体回退。不同系统和渲染器的字形、行高、阴影和动效不承诺像素相同。 +- Flutter 的 `EasyRefresh` 自定义物理、控制器插件和横向滚动模式不作为 Slint API。当前纵向刷新提供下拉、分页、结果与可定制阈值/文案。 +- 音乐库横幅、曲目行和迷你播放器仍是 FMusic 演示,不是原 FinUI 控件或正式客户端。长列表、真实音频和自建服务端没有加入这次 UI 移植。 + +## 组件截图 + +- [桌面组件展板](images/catalog-desktop.png) +- [窄屏深色展板](images/catalog-compact.png) +- [窄屏列表和排序](images/flutter-replacements-compact.png) + +Flutter 原始对照和截图夹具位于移植时使用的 FMusic 工作区。 diff --git a/docs/REPLACEMENTS.md b/docs/REPLACEMENTS.md new file mode 100644 index 0000000..26b97a9 --- /dev/null +++ b/docs/REPLACEMENTS.md @@ -0,0 +1,30 @@ +# Flutter 平替复核 + +范围是 FinUI 的 Flutter 基元,以及 FMusic 曲库、歌单、队列页直接依赖的列表和菜单。这里区分现成控件、需要在 Tempo UI 保留的产品行为,以及平台宿主职责。 + +| Flutter / FinUI 的用法 | Slint 的可用基元 | Tempo UI 的选择 | +| --- | --- | --- | +| Row / Column / Stack / Align / Padding / LayoutBuilder | HorizontalLayout、VerticalLayout、Rectangle、宽高绑定 | 直接使用。响应式栏宽和安全区集中在 `TempoNavigationShell`、`TempoAdaptiveSplit` | +| Wrap | FlexboxLayout | 直接用它。对话框动作栏已使用自动换行,不在应用中重复计算宽度 | +| ThemeData / ThemeExtension / MediaQuery | Palette、Window 的宽高与 safe-area-insets | `TempoTheme`、`TempoInsets`。动态系统强调色取决于后端 | +| ListView.builder / SliverList.builder | ListView 的直接 model repeater | `TempoVirtualList`,直接重导出原生 ListView,保留编译器的行虚拟化。VirtualList 展板实际挂了 5,000 行 | +| CustomScrollView / SliverPersistentHeader | ScrollView、ListView,没有一套等价的 Flutter sliver 协议 | 当前建议展板结构,即固定页面栏 + 一个虚拟列表,分组标题可作为数据行;未封装可折叠/吸顶 sliver 协议 | +| ReorderableListView.builder | 交互基元与 ListView,没有现成可排序列表 | `TempoReorderList`,固定行高、拖拽把手、边缘滚动、上/下移按钮。应用负责更新模型、权限和持久化 | +| PopupMenuButton | ContextMenuArea、PopupWindow;前者适合右键/长按上下文菜单 | `TempoMenuButton` 保留按钮锚定、禁用项和键盘操作。上下文菜单直接用原生 ContextMenuArea | +| IndexedStack | 常驻节点 + visible,没有专用 IndexedStack | `TempoIndexedStack`、`TempoStackPage`。调用者绑定索引,不用条件实例化反复卸载当前页 | +| Navigator / MaterialPageRoute / showModalBottomSheet | PopupWindow、FocusScope、Window,不提供完整路径栈 | `RouteStacks` + `TempoRouteMotion`、`TempoDialog`、`TempoSheet`。交互式系统返回仍需要宿主适配 | +| Dialog content / arbitrary actions、TextField suffix | @children 单插槽;可用模型描述动作 | Dialog 支持任意内容 + 自定义动作模型,动作栏换行。输入框后缀是原生插槽。不能传递任意 Flutter Widget | +| ListTile leading / trailing | Slint 子项、图标、布局 | `TempoTile` 已有图标前缀和任意尾部插槽。非图标前缀用自定义行,暂无通用双命名插槽 | +| RefreshIndicator / EasyRefresh / OverlayEntry | SwipeGestureHandler、PopupWindow、Timer | `TempoRefresh`、`TempoToastHost`。不替换整个 Flutter 滚动物理或 GetX 约定 | +| TextField / FocusNode / Tooltip / Material 按键反馈 | TextInput、FocusScope、Tooltip、触摸和键盘事件 | Tempo 控件封装外观、编辑/提交、焦点、禁用与动效。自动填充和移动端软键盘动作标签走平台适配,不冒充 autofill | +| Checkbox / Radio / Slider / ProgressIndicator / IconButton | CheckBox、RadioGroup、Slider、ProgressIndicator、Button、Spinner | 通用原生控件直接可用。FinUI 外观继续使用 Tempo 封装 | + +## 本次动效 + +- `TempoPresence` 在关闭时保留视觉节点直到退出完成,避免直接靠 `if visible` 切掉动画。Toast 沿用 FinUI 的 180 ms 入场、120 ms 退场和 26 px 垂直偏移。 +- Dialog 在窗口中居中。Sheet 从底部进入。ComboBox 在窄屏使用底部面板,宽屏在控件旁展开,下面空间不足时优先向上展开。按钮菜单和 ComboBox 都有入场动画。 +- `TempoRouteMotion` 提供程序级详情推进/回退动效。窄屏页从侧面过渡,底部详情从下方进入;它不是 Flutter 的手势驱动转场。 +- 保留并补齐标签指示条、分段选择、复选状态、焦点、刷新指示条和图标按钮反馈。可通过 `TempoMotionSettings.reduced` 关闭这些动效。Slint 也会在支持的后端自动遵循系统减少动态效果设置。 +- 运行 `cargo run --release --locked -p tempo-ui-showcase -- --motion-smoke` 检查真实中间帧、退出后释放弹层和减少动态效果,不以静态截图作为动效验收。 + +不属于本次 UI 封装范围的还有真实音频、文件选择实现、系统凭据,以及 Windows/Android/iOS 原生宿主验收。 diff --git a/docs/images/catalog-compact.png b/docs/images/catalog-compact.png new file mode 100644 index 0000000..c4ca1d2 Binary files /dev/null and b/docs/images/catalog-compact.png differ diff --git a/docs/images/catalog-desktop.png b/docs/images/catalog-desktop.png new file mode 100644 index 0000000..5e32937 Binary files /dev/null and b/docs/images/catalog-desktop.png differ diff --git a/docs/images/flutter-replacements-compact.png b/docs/images/flutter-replacements-compact.png new file mode 100644 index 0000000..5e50c7e Binary files /dev/null and b/docs/images/flutter-replacements-compact.png differ diff --git a/examples/showcase/Cargo.toml b/examples/showcase/Cargo.toml new file mode 100644 index 0000000..19e2d69 --- /dev/null +++ b/examples/showcase/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "tempo-ui-showcase" +version.workspace = true +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +publish = false + +[dependencies] +tempo-ui = { path = "../..", features = ["finui-font-fallback"] } +slint = { workspace = true, features = ["std", "backend-winit", "renderer-femtovg", "renderer-software", "accessibility", "compat-1-2"] } +png = "0.18" + +[build-dependencies] +slint-build.workspace = true diff --git a/examples/showcase/build.rs b/examples/showcase/build.rs new file mode 100644 index 0000000..72d945b --- /dev/null +++ b/examples/showcase/build.rs @@ -0,0 +1,12 @@ +use std::{collections::HashMap, env, path::PathBuf}; + +fn main() { + let manifest_dir = + PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").expect("Cargo manifest directory")); + let libraries = HashMap::from([("tempo-ui".into(), manifest_dir.join("../../ui/index.slint"))]); + + let config = slint_build::CompilerConfiguration::new() + .with_library_paths(libraries) + .embed_resources(slint_build::EmbedResourcesKind::EmbedFiles); + slint_build::compile_with_config("ui/demo.slint", config).expect("compile Tempo UI showcase"); +} diff --git a/examples/showcase/src/main.rs b/examples/showcase/src/main.rs new file mode 100644 index 0000000..b78874c --- /dev/null +++ b/examples/showcase/src/main.rs @@ -0,0 +1,755 @@ +use tempo_ui::navigation; + +use std::{ + cell::Cell, + error::Error, + fs::File, + path::Path, + rc::Rc, + time::{Duration, Instant}, +}; + +use slint::{ComponentHandle, LogicalSize, Model, Timer, VecModel}; + +slint::include_modules!(); + +type Result = std::result::Result>; + +#[derive(Default)] +struct Options { + compact: bool, + dark: bool, + settings: bool, + catalog: bool, + music: bool, + wide: bool, + layout: bool, + lists: bool, + motion_smoke: bool, + screenshot: Option, + smoke: bool, +} + +fn options() -> Result { + let mut options = Options::default(); + let mut args = std::env::args().skip(1); + while let Some(arg) = args.next() { + match arg.as_str() { + "--compact" => options.compact = true, + "--dark" => options.dark = true, + "--settings" => options.settings = true, + "--catalog" => options.catalog = true, + "--music" => options.music = true, + "--wide" => options.wide = true, + "--layout" => { + options.catalog = true; + options.layout = true; + } + "--lists" => { + options.catalog = true; + options.lists = true; + } + "--motion-smoke" => { + options.catalog = true; + options.motion_smoke = true; + } + "--screenshot" => options.screenshot = Some(args.next().ok_or("missing PNG path")?), + "--smoke" => options.smoke = true, + "--help" | "-h" => { + println!( + "tempo-ui-showcase [--compact] [--dark] [--catalog|--music|--settings|--layout|--lists] [--wide] [--screenshot PATH] [--smoke|--motion-smoke]" + ); + std::process::exit(0); + } + _ => return Err(format!("unknown option: {arg}").into()), + } + } + Ok(options) +} + +fn filtered(tracks: &[DemoTrack], query: &str) -> Vec { + let query = query.trim().to_lowercase(); + tracks + .iter() + .filter(|track| { + [&track.title, &track.artist, &track.record] + .into_iter() + .any(|field| field.to_lowercase().contains(&query)) + }) + .cloned() + .collect() +} + +fn queue_index(current: i32, delta: i32, length: i32) -> Option { + (length > 0).then(|| (current + delta).rem_euclid(length)) +} + +fn select(ui: &DemoWindow, index: i32) { + ui.set_current(index); + ui.set_position(0.0); + ui.set_playing(true); +} + +fn wire(ui: &DemoWindow) { + let tracks = Rc::new(ui.get_tracks().iter().collect::>()); + let visible = Rc::new(VecModel::from(tracks.as_ref().clone())); + ui.set_shown_tracks(visible.clone().into()); + let data = tracks.clone(); + ui.on_filter(move |query| visible.set_vec(filtered(&data, &query))); + + let weak = ui.as_weak(); + let data = tracks.clone(); + ui.on_choose(move |title| { + if let (Some(ui), Some(index)) = ( + weak.upgrade(), + data.iter().position(|track| track.title == title), + ) { + select(&ui, index as i32); + } + }); + + let weak = ui.as_weak(); + let length = tracks.len() as i32; + ui.on_step(move |delta| { + if let Some(ui) = weak.upgrade() { + if let Some(index) = queue_index(ui.get_current(), delta, length) { + select(&ui, index); + } + } + }); + + let timer = Timer::default(); + let weak = ui.as_weak(); + ui.on_playback_changed(move |playing| { + if !playing { + timer.stop(); + return; + } + let weak = weak.clone(); + let tracks = tracks.clone(); + let last_tick = Cell::new(Instant::now()); + timer.start( + slint::TimerMode::Repeated, + Duration::from_millis(200), + move || { + let Some(ui) = weak.upgrade() else { return }; + if !ui.get_playing() { + return; + } + let now = Instant::now(); + let elapsed = now.duration_since(last_tick.replace(now)).as_secs_f32(); + let track = &tracks[ui.get_current() as usize]; + let position = ui.get_position() + elapsed / track.seconds as f32; + if position >= 1.0 { + ui.invoke_step(1); + } else { + ui.set_position(position); + } + }, + ); + }); +} + +fn save_screenshot(window: &slint::Window, path: &Path) -> Result<()> { + let snapshot = window.take_snapshot()?; + let mut encoder = png::Encoder::new(File::create(path)?, snapshot.width(), snapshot.height()); + encoder.set_color(png::ColorType::Rgba); + encoder.set_depth(png::BitDepth::Eight); + encoder + .write_header()? + .write_image_data(snapshot.as_bytes())?; + Ok(()) +} + +fn click_in(window: &slint::Window, x: f32, y: f32) { + use slint::platform::{PointerEventButton, WindowEvent}; + let position = slint::LogicalPosition::new(x, y); + let button = PointerEventButton::Left; + window.dispatch_event(WindowEvent::PointerMoved { position }); + window.dispatch_event(WindowEvent::PointerPressed { position, button }); + window.dispatch_event(WindowEvent::PointerReleased { position, button }); +} + +fn click(ui: &DemoWindow, x: f32, y: f32) { + click_in(ui.window(), x, y); +} + +fn drag(window: &slint::Window, x: f32, y: f32, dy: f32) { + use slint::platform::{PointerEventButton, WindowEvent}; + let start = slint::LogicalPosition::new(x, y); + let button = PointerEventButton::Left; + window.dispatch_event(WindowEvent::PointerMoved { position: start }); + window.dispatch_event(WindowEvent::PointerPressed { + position: start, + button, + }); + for step in 1..=8 { + let position = slint::LogicalPosition::new(x, y + dy * step as f32 / 8.0); + window.dispatch_event(WindowEvent::PointerMoved { position }); + } + let end = slint::LogicalPosition::new(x, y + dy); + window.dispatch_event(WindowEvent::PointerReleased { + position: end, + button, + }); +} + +fn smoke_check(ui: &DemoWindow, compact: bool, dark: bool) -> Result<()> { + if ui.get_compact() != compact || ui.get_dark() != dark { + return Err("initial viewport or theme did not apply".into()); + } + ui.invoke_filter(" NORTHBOUND ".into()); + if ui.get_shown_tracks().row_count() != 2 { + return Err("artist filter did not update the visible model".into()); + } + let window = ui.window(); + let size = window.size().to_logical(window.scale_factor()); + if compact { + click(ui, size.width * 0.625, size.height - 28.0); + } else { + click(ui, size.width - 39.0, size.height - 38.0); + } + if ui.get_page() != 2 { + return Err("queue navigation did not respond to pointer input".into()); + } + ui.invoke_choose("Sea Glass".into()); + if ui.get_page() != 2 || ui.get_current() != 2 || !ui.get_playing() || ui.get_position() != 0.0 + { + return Err("queue selection did not update player state".into()); + } + ui.invoke_step(-1); + if ui.get_current() != 1 { + return Err("previous track did not update the queue".into()); + } + click(ui, size.width - if compact { 37.0 } else { 47.0 }, 33.0); + if ui.get_dark() == dark { + return Err("theme control did not respond to pointer input".into()); + } + if compact { + click(ui, size.width * 0.875, size.height - 28.0); + } else { + click(ui, 60.0, 265.0); + } + if ui.get_page() != 3 { + return Err("settings showcase did not open".into()); + } + Ok(()) +} + +fn sync_route(ui: &TempoCatalogWindow, stack: &navigation::RouteStacks, tab: usize) { + ui.set_detail(stack.top(tab).copied().unwrap_or(-1)); + ui.set_route_depth(stack.depth(tab) as i32); +} + +fn move_index(items: &mut Vec, from: usize, to: usize) -> bool { + if from == to || from >= items.len() || to >= items.len() { + return false; + } + let value = items.remove(from); + items.insert(to, value); + true +} + +fn wire_catalog(ui: &TempoCatalogWindow) { + use std::cell::RefCell; + let queue = Rc::new(VecModel::from( + [ + "Earthly Light", + "Prelude", + "Sea Glass", + "City Static", + "Blue Hour", + "Paper Planes", + ] + .into_iter() + .map(|name| TempoReorderItem { + label: name.into(), + subtitle: "Queue sample".into(), + }) + .collect::>(), + )); + ui.set_queue_samples(queue.clone().into()); + ui.on_reorder_request(move |from, to| { + let Ok(from) = usize::try_from(from) else { + return; + }; + let Ok(to) = usize::try_from(to) else { return }; + let mut items: Vec<_> = queue.iter().collect(); + if move_index(&mut items, from, to) { + queue.set_vec(items); + } + }); + let stack = Rc::new(RefCell::new(navigation::RouteStacks::default())); + let weak = ui.as_weak(); + let routes = stack.clone(); + ui.on_push_detail(move |id, replace| { + if let Some(ui) = weak.upgrade() { + let tab = ui.get_tab() as usize; + ui.set_route_direction(1); + routes.borrow_mut().open(tab, id, replace); + sync_route(&ui, &routes.borrow(), tab); + } + }); + let weak = ui.as_weak(); + let routes = stack.clone(); + ui.on_pop_detail(move || { + if let Some(ui) = weak.upgrade() { + let tab = ui.get_tab() as usize; + ui.set_route_direction(-1); + routes.borrow_mut().back(tab); + sync_route(&ui, &routes.borrow(), tab); + } + }); + let weak = ui.as_weak(); + ui.on_close_route(move || { + if let Some(ui) = weak.upgrade() { + let tab = ui.get_tab() as usize; + ui.set_route_direction(-1); + stack.borrow_mut().close(tab); + sync_route(&ui, &stack.borrow(), tab); + } + }); +} + +fn press(window: &slint::Window, key: slint::platform::Key) { + use slint::platform::WindowEvent; + window.dispatch_event(WindowEvent::KeyPressed { text: key.into() }); + window.dispatch_event(WindowEvent::KeyReleased { text: key.into() }); +} + +fn catalog_smoke_start( + ui: &TempoCatalogWindow, + compact: bool, + dark: bool, + wide: bool, +) -> Result<()> { + use slint::platform::Key; + if ui.get_compact() != compact || ui.get_dark() != dark { + return Err("catalog viewport or theme did not apply".into()); + } + if ui.get_group_marker_width() < 40.0 + || ui.get_icon_marker_width() < 40.0 + || !ui.invoke_refresh_language_is_chinese() + { + return Err("tab marker or localized refresh strings did not resolve".into()); + } + let original_origin = ui.get_heading_origin(); + ui.set_extra_insets(TempoInsets { + top: 21.0, + left: 10.0, + right: 9.0, + bottom: 18.0, + }); + let safe_origin = ui.get_heading_origin(); + if (safe_origin.y - original_origin.y - 21.0).abs() > 1.0 { + return Err("heading was not padded by the injected safe area".into()); + } + ui.set_extra_insets(TempoInsets::default()); + let group = ui.get_group_origin(); + click_in(ui.window(), group.x + 131.0, group.y + 23.0); + if ui.get_group_index() != 1 { + return Err("button-group click did not select the next tab".into()); + } + let radio = ui.get_radio_point(); + click_in(ui.window(), radio.x, radio.y); + if !ui.get_radio_focused() || ui.get_radio_focus_ring() { + return Err("pointer activation of the radio added a focus ring or lost focus".into()); + } + press(ui.window(), Key::Space); + if !ui.get_radio_focus_ring() { + return Err("keyboard activation of the focused radio did not show focus".into()); + } + click_in(ui.window(), radio.x, radio.y); + if ui.get_radio_focus_ring() { + return Err("pointer activation did not clear the keyboard focus ring".into()); + } + let field = ui.get_field_center(); + click_in(ui.window(), field.x, field.y); + use slint::platform::WindowEvent; + ui.window() + .dispatch_event(WindowEvent::KeyPressed { text: "M".into() }); + ui.window() + .dispatch_event(WindowEvent::KeyReleased { text: "M".into() }); + press(ui.window(), Key::Return); + if ui.get_field_value() != "M" || ui.get_submitted() != "M" { + return Err("text input did not edit and submit through the keyboard".into()); + } + ui.invoke_open_combo(); + if !ui.get_combo_open() || ui.get_combo_is_sheet() != compact { + return Err("choice popup did not use the expected desktop or compact presentation".into()); + } + press(ui.window(), Key::DownArrow); + press(ui.window(), Key::Return); + if ui.get_selected_choice() != -1 || !ui.get_combo_open() { + return Err("keyboard accepted a disabled item".into()); + } + press(ui.window(), Key::DownArrow); + press(ui.window(), Key::Return); + if ui.get_selected_choice() != 2 || ui.get_combo_open() { + return Err(format!( + "keyboard choice did not select the enabled item: {}", + ui.get_selected_choice() + ) + .into()); + } + ui.invoke_show_dialog(); + if !ui.get_dialog_open() { + return Err("dialog did not open".into()); + } + press(ui.window(), Key::Escape); + if ui.get_dialog_open() { + return Err("Escape did not dismiss dialog".into()); + } + ui.set_tab(1); + if ui.get_wide_split() == compact || ui.get_three_pane() != wide { + return Err("adaptive split did not match the viewport".into()); + } + ui.invoke_push_detail(1, true); + ui.invoke_push_detail(4, false); + if ui.get_detail() != 4 || ui.get_route_depth() != 2 { + return Err("nested route was not pushed".into()); + } + ui.set_tab(0); + ui.set_tab(1); + ui.invoke_pop_detail(); + if ui.get_detail() != 1 || ui.get_route_depth() != 1 { + return Err("back did not restore the previous route".into()); + } + ui.invoke_close_route(); + if ui.get_route_depth() != 0 { + return Err("close did not empty the route stack".into()); + } + ui.set_tab(2); + let refresh = ui.get_refresh_origin(); + drag(ui.window(), refresh.x + 100.0, refresh.y + 30.0, 155.0); + ui.invoke_request_more(); + if ui.get_refresh_count() != 1 || ui.get_load_count() != 0 || ui.get_refresh_idle() { + return Err("refresh did not reject overlapping load requests".into()); + } + ui.invoke_preview_toast(); + if !ui.get_toast_visible() { + return Err("toast did not open".into()); + } + Ok(()) +} + +fn run_catalog(options: Options) -> Result<()> { + let ui = TempoCatalogWindow::new()?; + ui.set_dark(options.dark); + wire_catalog(&ui); + let size = if options.compact { + LogicalSize::new(390.0, 780.0) + } else if options.wide { + LogicalSize::new(1700.0, 850.0) + } else { + LogicalSize::new(1180.0, 820.0) + }; + ui.window().set_size(size); + if options.lists { + ui.set_tab(3); + } + if options.layout { + ui.set_tab(1); + ui.invoke_push_detail(1, true); + } + if options.motion_smoke { + return run_motion_smoke(&ui, options.screenshot); + } + if options.screenshot.is_none() && !options.smoke { + ui.run()?; + return Ok(()); + } + let result = Rc::new(std::cell::RefCell::new(None)); + let outcome = result.clone(); + let weak = ui.as_weak(); + Timer::single_shot(Duration::from_millis(500), move || { + let initial = (|| -> Result<()> { + let ui = weak.upgrade().ok_or("catalog closed before validation")?; + if let Some(path) = &options.screenshot { + save_screenshot(ui.window(), Path::new(path))?; + } + if options.smoke { + ui.set_tab(0); + catalog_smoke_start(&ui, options.compact, options.dark, options.wide)?; + } + Ok(()) + })(); + if initial.is_err() || !options.smoke { + *outcome.borrow_mut() = Some(initial); + let _ = slint::quit_event_loop(); + return; + } + + Timer::single_shot(Duration::from_millis(440), move || { + let check = (|| -> Result<()> { + let ui = weak + .upgrade() + .ok_or("catalog closed during refresh validation")?; + if ui.get_toast_visible() || !ui.get_refresh_idle() { + return Err("toast or refresh timer did not settle".into()); + } + ui.invoke_request_more(); + if ui.get_load_count() != 1 { + return Err("load callback did not run".into()); + } + Ok(()) + })(); + if check.is_err() { + *outcome.borrow_mut() = Some(check); + let _ = slint::quit_event_loop(); + return; + } + Timer::single_shot(Duration::from_millis(400), move || { + let check = (|| -> Result<()> { + let ui = weak.upgrade().ok_or("catalog closed during pagination")?; + ui.invoke_request_more(); + if !ui.get_refresh_exhausted() || ui.get_load_count() != 1 { + return Err("pagination restarted after no-more result".into()); + } + if !ui.get_refresh_footer_visible() { + return Err("pagination end notice never appeared".into()); + } + Ok(()) + })(); + if check.is_err() { + *outcome.borrow_mut() = Some(check); + let _ = slint::quit_event_loop(); + return; + } + Timer::single_shot(Duration::from_millis(1800), move || { + let check = (|| -> Result<()> { + let ui = weak + .upgrade() + .ok_or("catalog closed while the end notice was visible")?; + ui.invoke_request_more(); + if ui.get_refresh_footer_visible() + || !ui.get_refresh_exhausted() + || ui.get_load_count() != 1 + { + return Err( + "pagination end notice did not hide or pagination resumed".into() + ); + } + ui.set_tab(3); + let grip = ui.get_reorder_origin(); + drag( + ui.window(), + grip.x + ui.get_reorder_width() - 12.0, + grip.y + 24.0, + 122.0, + ); + if ui.get_reorder_count() != 1 || ui.get_first_queue_entry() != "Prelude" { + return Err("queue grip did not reorder the model".into()); + } + ui.invoke_open_actions(); + press(ui.window(), slint::platform::Key::DownArrow); + press(ui.window(), slint::platform::Key::Return); + if ui.get_chosen_menu() != -1 || !ui.get_menu_open() { + return Err("disabled menu action was accepted".into()); + } + press(ui.window(), slint::platform::Key::DownArrow); + press(ui.window(), slint::platform::Key::Return); + if ui.get_chosen_menu() != 2 || ui.get_menu_open() { + return Err("keyboard did not select the enabled menu entry".into()); + } + let initial = ui.get_instantiated_rows(); + ui.invoke_reveal_large_row(); + let after = ui.get_instantiated_rows(); + if initial >= 300 + || after == 0 + || after >= 500 + || ui.get_large_scroll_y() >= -100_000.0 + { + return Err(format!("large list not virtualized or scroll failed: {initial} / {after}, y={}", ui.get_large_scroll_y()).into()); + } + println!( + "Tempo UI catalog smoke check passed (virtual list delegates: {initial} → {after})" + ); + Ok(()) + })(); + *outcome.borrow_mut() = Some(check); + let _ = slint::quit_event_loop(); + }); + }); + }); + }); + ui.run()?; + return result + .borrow_mut() + .take() + .ok_or("catalog closed before results were ready")?; +} + +fn run_motion_smoke(ui: &TempoCatalogWindow, screenshot: Option) -> Result<()> { + use slint::platform::Key; + let outcome = Rc::new(std::cell::RefCell::new(None)); + let result = outcome.clone(); + let weak = ui.as_weak(); + let probe = Timer::default(); + let stage = Cell::new(0); + let started = Cell::new(Instant::now()); + let sampled_dialog = Cell::new(false); + let sampled_toast = Cell::new(false); + let sampled_exit = Cell::new(false); + let sampled_route = Cell::new(false); + probe.start(slint::TimerMode::Repeated, Duration::from_millis(28), move || { + let elapsed = started.get().elapsed(); + let mid = |value: f32| value > 0.02 && value < 0.98; + let Ok(ui) = weak.upgrade().ok_or("motion preview closed") else { return }; + let check: Result = (|| { + match stage.get() { + 0 if elapsed >= Duration::from_millis(320) => { + ui.invoke_preview_toast(); + ui.invoke_show_dialog(); + stage.set(1); started.set(Instant::now()); + } + 1 => { + sampled_dialog.set(sampled_dialog.get() || mid(ui.get_dialog_progress())); + sampled_toast.set(sampled_toast.get() || mid(ui.get_toast_progress())); + if elapsed >= Duration::from_millis(275) { + if !sampled_dialog.get() || !sampled_toast.get() || ui.get_dialog_progress() < 0.98 { + return Err(format!("no intermediate entry frames: dialog {}, toast {}, progress {}", sampled_dialog.get(), sampled_toast.get(), ui.get_dialog_progress()).into()); + } + let window = ui.window(); + let size = window.size().to_logical(window.scale_factor()); + click_in(window, size.width / 2.0, size.height / 2.0); + if !ui.get_dialog_open() { + return Err("window center hit the backdrop instead of the dialog".into()); + } + if let Some(path) = &screenshot { + save_screenshot(window, Path::new(path))?; + } + press(window, Key::Escape); + stage.set(2); started.set(Instant::now()); + } + } + 2 => { + sampled_exit.set(sampled_exit.get() || mid(ui.get_dialog_progress())); + if elapsed >= Duration::from_millis(245) { + if !sampled_exit.get() || ui.get_dialog_presented() { + return Err("dialog did not animate out and release its popup".into()); + } + ui.set_tab(1); + ui.invoke_push_detail(1, true); + stage.set(3); started.set(Instant::now()); + } + } + 3 => { + sampled_route.set(sampled_route.get() || mid(ui.get_detail_progress())); + if elapsed >= Duration::from_millis(300) { + if !sampled_route.get() || ui.get_detail_progress() < 0.98 { + return Err("route transition had no intermediate frames or never settled".into()); + } + ui.set_reduced_motion(true); + ui.invoke_show_dialog(); + if ui.get_dialog_progress() < 0.999 { + return Err("reduced motion did not bypass animation".into()); + } + return Ok(true); + } + } + _ => {} + } + Ok(false) + })(); + match check { + Ok(false) => {} + other => { + *result.borrow_mut() = Some(other.map(|_| ())); + let _ = slint::quit_event_loop(); + } + } + }); + ui.run()?; + outcome + .borrow_mut() + .take() + .ok_or("motion checks did not finish")??; + println!("Tempo UI motion smoke check passed"); + Ok(()) +} + +fn main() -> Result<()> { + let options = options()?; + tempo_ui::fonts::configure_finui_fallbacks()?; + if options.catalog || (!options.music && !options.settings) { + return run_catalog(options); + } + let ui = DemoWindow::new()?; + ui.set_dark(options.dark); + if options.settings { + ui.set_page(3); + } + wire(&ui); + if options.compact { + ui.window().set_size(LogicalSize::new(390.0, 780.0)); + } else { + ui.window().set_size(LogicalSize::new(1180.0, 820.0)); + } + + if options.screenshot.is_some() || options.smoke { + let outcome = Rc::new(std::cell::RefCell::new(None)); + let result = outcome.clone(); + let weak = ui.as_weak(); + Timer::single_shot(Duration::from_millis(450), move || { + let result_value = (|| -> Result<()> { + let ui = weak.upgrade().ok_or("preview disappeared before capture")?; + if let Some(path) = &options.screenshot { + save_screenshot(ui.window(), Path::new(path))?; + } + if options.smoke { + ui.set_page(0); + smoke_check(&ui, options.compact, options.dark)?; + println!("Tempo UI smoke check passed"); + } + Ok(()) + })(); + *result.borrow_mut() = Some(result_value); + let _ = slint::quit_event_loop(); + }); + ui.run()?; + return outcome + .borrow_mut() + .take() + .ok_or("preview closed before checks completed")?; + } + + ui.run()?; + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn filtering_matches_titles_artists_and_albums() { + let track = DemoTrack { + title: "Sea Glass".into(), + artist: "Northbound".into(), + record: "Coastline".into(), + ..Default::default() + }; + let tracks = [track]; + for query in ["", " GLASS ", "north", "coast"] { + assert_eq!(filtered(&tracks, query).len(), 1, "{query}"); + } + assert!(filtered(&tracks, "unknown").is_empty()); + } + + #[test] + fn reorder_keeps_the_moved_entry_and_validates_indexes() { + let mut entries = vec!["one", "two", "three"]; + assert!(move_index(&mut entries, 0, 2)); + assert_eq!(entries, ["two", "three", "one"]); + assert!(!move_index(&mut entries, 7, 0)); + assert_eq!(entries.len(), 3); + } + + #[test] + fn queue_wraps_in_both_directions() { + assert_eq!(queue_index(0, -1, 6), Some(5)); + assert_eq!(queue_index(5, 1, 6), Some(0)); + assert_eq!(queue_index(0, 1, 0), None); + } +} diff --git a/examples/showcase/ui/assets/check.svg b/examples/showcase/ui/assets/check.svg new file mode 100644 index 0000000..a2e77e9 --- /dev/null +++ b/examples/showcase/ui/assets/check.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/chevron.svg b/examples/showcase/ui/assets/chevron.svg new file mode 100644 index 0000000..a9cf90f --- /dev/null +++ b/examples/showcase/ui/assets/chevron.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/cover-0.svg b/examples/showcase/ui/assets/cover-0.svg new file mode 100644 index 0000000..f2eea8d --- /dev/null +++ b/examples/showcase/ui/assets/cover-0.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/cover-1.svg b/examples/showcase/ui/assets/cover-1.svg new file mode 100644 index 0000000..ab53dbc --- /dev/null +++ b/examples/showcase/ui/assets/cover-1.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/cover-2.svg b/examples/showcase/ui/assets/cover-2.svg new file mode 100644 index 0000000..29fb65f --- /dev/null +++ b/examples/showcase/ui/assets/cover-2.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/cover-3.svg b/examples/showcase/ui/assets/cover-3.svg new file mode 100644 index 0000000..63d9732 --- /dev/null +++ b/examples/showcase/ui/assets/cover-3.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/cover-4.svg b/examples/showcase/ui/assets/cover-4.svg new file mode 100644 index 0000000..43609d6 --- /dev/null +++ b/examples/showcase/ui/assets/cover-4.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/cover-5.svg b/examples/showcase/ui/assets/cover-5.svg new file mode 100644 index 0000000..6160a40 --- /dev/null +++ b/examples/showcase/ui/assets/cover-5.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/examples/showcase/ui/assets/device.svg b/examples/showcase/ui/assets/device.svg new file mode 100644 index 0000000..0d11522 --- /dev/null +++ b/examples/showcase/ui/assets/device.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/library-filled.svg b/examples/showcase/ui/assets/library-filled.svg new file mode 100644 index 0000000..a7d0027 --- /dev/null +++ b/examples/showcase/ui/assets/library-filled.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/library.svg b/examples/showcase/ui/assets/library.svg new file mode 100644 index 0000000..3646e45 --- /dev/null +++ b/examples/showcase/ui/assets/library.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/moon.svg b/examples/showcase/ui/assets/moon.svg new file mode 100644 index 0000000..1794c83 --- /dev/null +++ b/examples/showcase/ui/assets/moon.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/next.svg b/examples/showcase/ui/assets/next.svg new file mode 100644 index 0000000..8f5f0cb --- /dev/null +++ b/examples/showcase/ui/assets/next.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/note.svg b/examples/showcase/ui/assets/note.svg new file mode 100644 index 0000000..552748f --- /dev/null +++ b/examples/showcase/ui/assets/note.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/pause.svg b/examples/showcase/ui/assets/pause.svg new file mode 100644 index 0000000..c98f268 --- /dev/null +++ b/examples/showcase/ui/assets/pause.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/play.svg b/examples/showcase/ui/assets/play.svg new file mode 100644 index 0000000..6d9d6af --- /dev/null +++ b/examples/showcase/ui/assets/play.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/prev.svg b/examples/showcase/ui/assets/prev.svg new file mode 100644 index 0000000..934b64e --- /dev/null +++ b/examples/showcase/ui/assets/prev.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/queue.svg b/examples/showcase/ui/assets/queue.svg new file mode 100644 index 0000000..6d72910 --- /dev/null +++ b/examples/showcase/ui/assets/queue.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/search.svg b/examples/showcase/ui/assets/search.svg new file mode 100644 index 0000000..54afa3e --- /dev/null +++ b/examples/showcase/ui/assets/search.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/settings-filled.svg b/examples/showcase/ui/assets/settings-filled.svg new file mode 100644 index 0000000..e3b9c05 --- /dev/null +++ b/examples/showcase/ui/assets/settings-filled.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/settings.svg b/examples/showcase/ui/assets/settings.svg new file mode 100644 index 0000000..cdb8776 --- /dev/null +++ b/examples/showcase/ui/assets/settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/examples/showcase/ui/assets/sun.svg b/examples/showcase/ui/assets/sun.svg new file mode 100644 index 0000000..858b1b0 --- /dev/null +++ b/examples/showcase/ui/assets/sun.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/assets/volume.svg b/examples/showcase/ui/assets/volume.svg new file mode 100644 index 0000000..a10b013 --- /dev/null +++ b/examples/showcase/ui/assets/volume.svg @@ -0,0 +1 @@ + diff --git a/examples/showcase/ui/catalog.slint b/examples/showcase/ui/catalog.slint new file mode 100644 index 0000000..8f12f31 --- /dev/null +++ b/examples/showcase/ui/catalog.slint @@ -0,0 +1,334 @@ +import { + TempoTheme, TempoIcons, TempoInsets, TempoNavigationShell, TempoPage, TempoPageHead, TempoAppBar, + TempoSection, TempoDivider, TempoButton, TempoIconButton, TempoFloatingActionButton, TempoButtonGroupTabBar, + TempoComboBox, TempoDialog, TempoToastHost, TempoTextField, TempoRadioTile, TempoSlider, TempoProgressBar, + TempoRefresh, TempoRefreshText, TempoSurface, TempoClickableSurface, TempoAdaptiveSplit, TempoDetailPresentation, + TempoPresence, TempoRouteMotion, TempoMotionSettings, TempoVirtualList, TempoReorderList, TempoReorderItem, + TempoMenuButton, TempoIndexedStack, TempoStackPage +} from "@tempo-ui"; + +export component TempoCatalogWindow inherits Window { + title: "Tempo UI · FinUI comparison"; + preferred-width: 1180px; + preferred-height: 820px; + min-width: 340px; + min-height: 480px; + background: TempoTheme.background; + in-out property dark <=> TempoTheme.dark; + in-out property tab: 0; + in-out property group-index: 0; + in-out property selected-choice: -1; + in-out property field-value; + in-out property submitted; + in-out property radio-selected; + in-out property stepped: 2; + in-out property detail: -1; + in-out property route-depth: 0; + in-out property route-direction: 1; + in-out property reduced-motion <=> TempoMotionSettings.reduced; + private property last-detail: -1; + changed detail => { if root.detail >= 0 { root.last-detail = root.detail; } } + out property detail-progress: route-motion.progress; + in-out property presentation: page; + in property extra-insets; + private property insets: { + left: root.safe-area-insets.left + root.extra-insets.left, + top: root.safe-area-insets.top + root.extra-insets.top, + right: root.safe-area-insets.right + root.extra-insets.right, + bottom: root.safe-area-insets.bottom + root.extra-insets.bottom, + }; + out property dialog-open: modal.opened; + out property dialog-presented: modal.presented; + out property dialog-progress: modal.motion-progress; + out property toast-progress: toasts.motion-progress; + in property <[TempoReorderItem]> queue-samples; + in-out property reorder-count; + in-out property chosen-menu: -1; + in-out property instantiated-rows; + out property reorder-origin: reorder.absolute-position; + out property reorder-width: reorder.width; + out property first-queue-entry: root.queue-samples.length > 0 ? root.queue-samples[0].label : ""; + out property menu-open: menu.opened; + callback reorder-request(int, int); + public function open-actions() { menu.open(); } + public function reveal-large-row() { scale-test.ensure-row-visible(3800, instant); } + out property large-scroll-y: scale-test.content-y; + out property toast-visible: toasts.showing; + out property refresh-idle: refresh-pane.state == idle; + out property refresh-exhausted: refresh-pane.state == no-more; + out property refresh-footer-visible: refresh-pane.footer-visible; + out property wide-split: split.split; + out property three-pane: split.three-pane; + out property compact: shell.compact; + out property group-marker-width: group.indicator-width; + out property icon-marker-width: icons-only.indicator-width; + out property combo-open: selector.opened; + out property combo-is-sheet: selector.is-bottom-sheet; + out property radio-point: { x: local-radio.absolute-position.x + 22px, y: local-radio.absolute-position.y + local-radio.height / 2 }; + out property radio-focused: local-radio.focused; + out property radio-focus-ring: local-radio.focus-ring-visible; + out property field-center: { x: field.absolute-position.x + 80px, y: field.absolute-position.y + field.height - 22px }; + out property heading-origin: catalog-head.absolute-position; + out property refresh-origin: refresh-pane.absolute-position; + out property group-origin: group.absolute-position; + in-out property refresh-count; + in-out property load-count; + in-out property confirmations; + callback push-detail(int, bool); + callback pop-detail(); + callback close-route(); + public function show-dialog() { modal.show(); } + public function preview-toast() { toasts.show("Tempo UI", "An existing toast is replaced.", success, 230ms); } + public function dismiss-toast() { toasts.dismiss(); } + public function request-refresh() { refresh-pane.request-refresh(); } + public function request-more() { refresh-pane.request-load-more(); } + public function open-combo() { selector.open(); } + public function refresh-language-is-chinese() -> bool { return TempoRefreshText.for-language("zh").pull == "下拉刷新"; } + + shell := TempoNavigationShell { + insets: root.insets; + selected <=> root.tab; + show-bottom-bar: !(root.tab == 1 && root.detail >= 0); + destinations: [ + {label: "Controls", icon: TempoIcons.apps, selected-icon: TempoIcons.apps-filled}, + {label: "Layout", icon: TempoIcons.list}, + {label: "Refresh", icon: TempoIcons.refresh}, + {label: "Lists", icon: TempoIcons.list}, + ]; + retained := TempoIndexedStack { + current-index <=> root.tab; + controls := TempoPage { + visible: root.tab == 0; + spacing: 16px; + catalog-head := TempoPageHead { + title: "Components"; + subtitle: "FinUI comparison · Tempo UI"; + TempoIconButton { + label: "Toggle theme"; tooltip: "Toggle theme"; variant: outline; + icon: root.dark ? TempoIcons.light-mode : TempoIcons.dark-mode; + activated => { root.dark = !root.dark; } + } + } + TempoSection { + title: "Tabs, inputs and selection"; + VerticalLayout { + padding: 14px; spacing: 12px; + group := TempoButtonGroupTabBar { + selected <=> root.group-index; + items: [ + {label: "Songs", icon: TempoIcons.list}, + {label: "Detailed albums", icon: TempoIcons.book}, + {label: "Artists", icon: TempoIcons.person}, + ]; + } + icons-only := TempoButtonGroupTabBar { + selected <=> root.group-index; show-labels: false; + items: [ + {label: "Songs", icon: TempoIcons.list}, + {label: "Albums", icon: TempoIcons.book}, + {label: "Artists", icon: TempoIcons.person}, + ]; + } + field := TempoTextField { + label: "Server"; placeholder: "Type the server name"; icon: TempoIcons.search; + text <=> root.field-value; submitted(value) => { root.submitted = value; } + } + TempoTextField { + label: "Passphrase"; placeholder: "Password"; icon: TempoIcons.lock; + input-type: password; input-hints: { auto-correct: false, auto-complete: false }; + } + TempoTextField { label: "Disabled"; text: "Read only"; enabled: false; } + TempoTextField { label: "Input with validation"; error: "A name is required."; } + selector := TempoComboBox { + sheet-width: root.width; sheet-height: root.height; + use-bottom-sheet: shell.compact; + sheet-origin: root.absolute-position; bottom-inset: root.insets.bottom; + label: "Quality"; placeholder: "Choose a format"; selected <=> root.selected-choice; + items: [{label: "Original", enabled: true}, {label: "FLAC (unavailable)", enabled: false}, {label: "MP3", enabled: true}]; + } + } + TempoDivider {} + local-radio := TempoRadioTile { label: "Local music"; checked: root.radio-selected == 0; activated => { root.radio-selected = 0; } } + TempoRadioTile { label: "Remote music"; checked: root.radio-selected == 1; activated => { root.radio-selected = 1; } } + } + TempoSection { + title: "Actions and feedback"; + VerticalLayout { + padding: 14px; spacing: 12px; + HorizontalLayout { + alignment: start; spacing: 8px; cross-axis-alignment: center; + TempoButton { label: "Dialog"; compact: true; activated => { root.show-dialog(); } } + TempoButton { label: "Toast"; compact: true; variant: secondary; activated => { toasts.show("Tempo UI", "One toast per window.", info, 2s); } } + TempoIconButton { label: "Loading"; icon: TempoIcons.refresh; loading: true; } + } + TempoSlider { label: "Discrete slider"; minimum: 0; maximum: 8; divisions: 4; value <=> root.stepped; } + TempoProgressBar { value: root.stepped / 8; } + TempoProgressBar { indeterminate: true; } + TempoClickableSurface { + label: "Clickable surface"; height: 44px; + Text { text: "Clickable surface · show warning"; horizontal-alignment: center; vertical-alignment: center; color: TempoTheme.text-primary; } + activated => { toasts.show("", "Clicked the surface.", warning, 2s); } + } + } + } + } + layout-tab := FocusScope { + visible: root.tab == 1; + key-pressed(event) => { + if (event.text == Key.Escape || event.text == Key.Back) && split.back() { return accept; } + return reject; + } + VerticalLayout { + TempoAppBar { + title: "Albums"; subtitle: "Adaptive navigation"; + show-back: root.detail >= 0; + back => { root.pop-detail(); } + TempoIconButton { + icon: TempoIcons.palette; label: "Toggle theme"; + activated => { root.dark = !root.dark; } + } + } + split := TempoAdaptiveSplit { + vertical-stretch: 1; + detail-open: root.detail >= 0; + supplementary-enabled: true; + compact-presentation: root.presentation; + dismiss-detail => { root.pop-detail(); } + TempoPage { + x: 0px; y: 0px; width: split.master-width; height: split.height; + visible: split.show-master; + spacing: 10px; + TempoPageHead { title: "Albums"; subtitle: "Page, sheet, or dialog"; } + TempoButton { label: "Open page"; variant: secondary; activated => { root.presentation = page; root.push-detail(1, true); } } + TempoButton { label: "Open sheet"; variant: secondary; activated => { root.presentation = sheet; root.push-detail(2, true); } } + TempoButton { label: "Open dialog"; variant: secondary; activated => { root.presentation = dialog; root.push-detail(3, true); } } + } + if !split.split && reveal.present && root.presentation != page && root.presentation != auto : Rectangle { + background: #000.with-alpha(0.47 * reveal.progress); + TouchArea { clicked => { root.pop-detail(); } } + } + TempoSurface { + visible: split.split || reveal.present; + opacity: split.split || root.presentation == page ? 1 : reveal.progress; + x: split.detail-x + (!split.split && root.presentation == page ? (1 - reveal.progress) * 24px : 0px); + y: split.detail-y + (!split.split && root.presentation == sheet ? (1 - reveal.progress) * split.detail-height : 0px); + width: split.detail-width; height: split.detail-height; + border-radius: split.show-compact-overlay ? 14px : 0px; + TouchArea {} + route-motion := TempoRouteMotion { + route-key: root.detail > 0 ? root.detail : 0; + direction: root.route-direction; + enabled: root.detail >= 0; + TempoPage { + spacing: 12px; + TempoPageHead { + title: root.detail < 0 && split.split ? "Choose an album" : "Detail " + (root.detail >= 0 ? root.detail : root.last-detail); + subtitle: split.split ? "Wide pane" : "Compact destination"; + show-navigation: root.detail >= 0; + close-instead: split.split && root.route-depth == 1; + navigate => { root.pop-detail(); } + } + if root.detail >= 0 : TempoButton { + label: "Push nested detail"; variant: secondary; + activated => { root.push-detail(root.detail + 1, false); } + } + if root.route-depth > 1 : TempoButton { + label: "Close all details"; variant: ghost; activated => { root.close-route(); } + } + } + } + } + if split.three-pane : TempoPage { + x: split.supplementary-x; width: split.supplementary-width; + TempoPageHead { title: "Supplementary"; subtitle: "Third pane"; } + } + } + } + } + refresh-tab := Rectangle { + visible: root.tab == 2; + VerticalLayout { + TempoAppBar { + title: "Refresh"; subtitle: "Pull down or use the buttons"; + TempoIconButton { label: "Refresh"; icon: TempoIcons.refresh; activated => { refresh-pane.request-refresh(); } } + TempoIconButton { label: "Load more"; icon: TempoIcons.add; activated => { refresh-pane.request-load-more(); } } + } + refresh-pane := TempoRefresh { + can-load-more: true; + refresh => { root.refresh-count += 1; refresh-finish.running = true; } + load-more => { root.load-count += 1; refresh-finish.running = true; } + for i in 20 : Rectangle { + height: 42px; + background: mod(i, 2) == 0 ? TempoTheme.surface : TempoTheme.surface-alt; + Text { x: 16px; text: "Sample entry " + (i + 1); color: TempoTheme.text-primary; vertical-alignment: center; } + } + } + } + } + list-tab := TempoStackPage { + index: 3; selected-index: retained.current-index; + VerticalLayout { + TempoAppBar { + title: "Flutter replacements"; subtitle: "Virtual list · reorder · action menu"; + menu := TempoMenuButton { + items: [ + { label: "Play", enabled: true }, + { label: "Unavailable", enabled: false }, + { label: "Add to queue", icon: TempoIcons.add, enabled: true }, + ]; + chosen(index) => { root.chosen-menu = index; } + } + } + VerticalLayout { + padding: 14px; spacing: 6px; + Text { text: "Playback queue — drag the grip or use the arrows"; color: TempoTheme.text-primary; font-size: 13px; } + TempoSurface { + height: 240px; + clip: true; + reorder := TempoReorderList { + items: root.queue-samples; + reordered(from, to) => { root.reorder-count += 1; root.reorder-request(from, to); } + } + } + Text { text: "5,000 tracks with a virtualized delegate"; color: TempoTheme.text-primary; font-size: 13px; } + scale-test := TempoVirtualList { + horizontal-scrollbar-policy: always-off; + vertical-stretch: 1; + for i in 5000 : Rectangle { + height: 32px; + init => { root.instantiated-rows += 1; } + background: mod(i, 2) == 0 ? TempoTheme.surface : TempoTheme.surface-alt; + Text { x: 8px; vertical-alignment: center; text: "Track " + (i + 1); color: TempoTheme.text-secondary; } + } + } + } + } + } + } + } + reveal := TempoPresence { + active: root.tab == 1 && root.detail >= 0; + enter-time: 240ms; + exit-time: 180ms; + } + if root.tab == 0 : TempoFloatingActionButton { + x: parent.width - self.width - 20px - root.insets.right; + y: parent.height - self.height - 20px - root.insets.bottom - (shell.compact ? 58px : 0px); + label: "Add sample"; activated => { root.show-dialog(); } + } + modal := TempoDialog { + title: "Add a music source"; subtitle: "Tempo UI modal with scrollable content"; + icon: TempoIcons.add; + confirmed => { root.confirmations += 1; toasts.show("Confirmed", "The dialog returned a result.", success, 2s); } + Text { text: "This only changes the example."; color: TempoTheme.text-primary; wrap: word-wrap; } + } + toasts := TempoToastHost { bottom-inset: root.insets.bottom; left-inset: root.insets.left; right-inset: root.insets.right; } + refresh-finish := Timer { + interval: 250ms; running: false; + triggered => { + self.running = false; + refresh-pane.finish(refresh-pane.state == loading ? no-more : idle); + } + } + changed tab => { if root.tab == 1 { layout-tab.focus(); } } +} diff --git a/examples/showcase/ui/demo.slint b/examples/showcase/ui/demo.slint new file mode 100644 index 0000000..b1d800a --- /dev/null +++ b/examples/showcase/ui/demo.slint @@ -0,0 +1,457 @@ +import { ScrollView } from "std-widgets.slint"; +import { + TempoTheme, TempoTokens, TempoAction, TempoButton, TempoIcon, TempoIconButton, TempoNav, + TempoSearch, TempoSlider, TempoSurface, TempoTag, TempoDestination, TempoSection, TempoDivider, + TempoSegmentedControl, TempoTile, TempoSelectionTile, TempoProgressBar, TempoEmptyState +} from "@tempo-ui"; + +export struct DemoTrack { + title: string, + artist: string, + record: string, + format: string, + duration: string, + seconds: int, + cover: image, +} + +component Cover inherits Rectangle { + in property artwork; + border-radius: TempoTokens.radius-sm; + clip: true; + background: TempoTheme.background-alt; + Image { source: root.artwork; image-fit: cover; } +} + +component TrackRow inherits TempoAction { + in property track; + in property active; + in property wide; + in property playing; + in property number; + label: "Play " + root.track.title; + min-height: TempoTokens.tile-min-height + 2px; + border-radius: TempoTokens.radius-sm; + background: root.active ? TempoTheme.primary-soft + : root.pressed ? TempoTheme.surface-pressed + : root.hovered ? TempoTheme.surface-alt : transparent; + HorizontalLayout { + padding-left: 10px; + padding-right: 12px; + spacing: 10px; + if root.wide : Text { + width: 24px; + text: root.number; + color: TempoTheme.text-secondary; + font-size: 12px; + horizontal-alignment: center; + vertical-alignment: center; + } + Cover { artwork: root.track.cover; width: 38px; height: 38px; cross-axis-self-alignment: center; border-radius: 7px; } + VerticalLayout { + horizontal-stretch: 1; + alignment: center; + spacing: 3px; + Text { + text: root.track.title; + color: root.active ? TempoTheme.primary : TempoTheme.text-primary; + font-size: 14px; + font-weight: 700; + overflow: elide; + } + Text { text: root.track.artist; color: TempoTheme.text-secondary; font-size: 11px; overflow: elide; } + } + if root.wide : Text { + width: 135px; + text: root.track.record; + color: TempoTheme.text-secondary; + font-size: 12px; + overflow: elide; + vertical-alignment: center; + } + if root.wide : Rectangle { + width: 58px; + TempoTag { label: root.track.format; x: 0px; width: self.preferred-width; } + } + Rectangle { + width: 16px; + if root.active : TempoIcon { + source: root.playing ? @image-url("assets/pause.svg") : @image-url("assets/play.svg"); + tint: TempoTheme.primary; + width: 16px; height: 16px; + } + } + Text { + width: 34px; + text: root.track.duration; + color: root.active ? TempoTheme.primary : TempoTheme.text-secondary; + font-size: 12px; + horizontal-alignment: right; + vertical-alignment: center; + } + } +} + +component PlayerDock inherits Rectangle { + in property track; + in property wide; + in property playing; + in-out property position; + in-out property volume; + out property elapsed: { + let seconds = floor(root.position * root.track.seconds); + let minutes = floor(seconds / 60); + let rest = seconds - minutes * 60; + return minutes + ":" + (rest < 10 ? "0" : "") + rest; + } + callback toggle(); + callback previous(); + callback next(); + callback queue(); + background: TempoTheme.surface; + min-height: root.wide ? 76px : 65px; + Rectangle { height: 1px; y: 0px; background: TempoTheme.border; } + if !root.wide : Rectangle { + height: 2px; y: 0px; x: 0px; + width: root.width * root.position; + background: TempoTheme.primary; + } + HorizontalLayout { + padding-left: root.wide ? 22px : 12px; + padding-right: root.wide ? 22px : 9px; + spacing: root.wide ? 12px : 7px; + Cover { artwork: root.track.cover; width: root.wide ? 48px : 38px; height: self.width; cross-axis-self-alignment: center; } + VerticalLayout { + min-width: root.wide ? 134px : 0px; + max-width: root.wide ? 134px : 10000px; + horizontal-stretch: root.wide ? 0 : 1; + alignment: center; + spacing: 3px; + Text { text: root.track.title; font-size: 13px; font-weight: 700; color: TempoTheme.text-primary; overflow: elide; } + Text { text: root.track.artist; font-size: 11px; color: TempoTheme.text-secondary; overflow: elide; } + } + if root.wide : TempoIconButton { + icon: @image-url("assets/prev.svg"); label: "Previous track"; size: 34px; + width: 34px; height: 34px; cross-axis-self-alignment: center; + activated => { root.previous(); } + } + TempoButton { + icon: root.playing ? @image-url("assets/pause.svg") : @image-url("assets/play.svg"); + label: root.playing ? "Pause preview" : "Play preview"; icon-only: true; + width: 42px; height: 42px; cross-axis-self-alignment: center; + activated => { root.toggle(); } + } + TempoIconButton { + icon: @image-url("assets/next.svg"); label: "Next track"; size: 34px; + width: 34px; height: 34px; cross-axis-self-alignment: center; + activated => { root.next(); } + } + if root.wide : Text { text: root.elapsed; width: 30px; font-size: 11px; color: TempoTheme.text-secondary; vertical-alignment: center; } + if root.wide : TempoSlider { value <=> root.position; horizontal-stretch: 1; label: "Track position"; } + if root.wide : Text { text: root.track.duration; width: 30px; font-size: 11px; color: TempoTheme.text-secondary; vertical-alignment: center; } + if root.wide : TempoIcon { source: @image-url("assets/volume.svg"); width: 18px; height: 18px; cross-axis-self-alignment: center; } + if root.wide : TempoSlider { value <=> root.volume; width: 66px; label: "Preview volume"; } + if root.wide : TempoIconButton { + icon: @image-url("assets/queue.svg"); label: "Open queue"; size: 34px; + width: 34px; height: 34px; cross-axis-self-alignment: center; + activated => { root.queue(); } + } + } +} + +export component DemoWindow inherits Window { + title: "Tempo UI · FMusic Next"; + preferred-width: 1180px; + preferred-height: 820px; + min-width: 340px; + min-height: 480px; + background: TempoTheme.background; + default-font-size: 14px; + + in-out property dark <=> TempoTheme.dark; + out property compact: root.width < TempoTokens.rail-breakpoint; + private property extended: root.width >= TempoTokens.extended-rail-breakpoint; + private property gutter: root.compact ? 16px : 26px; + in-out property page: 0; + in-out property query; + in-out property current: 0; + in-out property playing: false; + in-out property keep-offline: false; + in-out property show-button-states: true; + in-out property position: 0.34; + in-out property volume: 0.72; + in property <[DemoTrack]> shown-tracks; + in property <[DemoTrack]> tracks: [ + { title: "Earthly Light", artist: "FMusic Sessions", record: "After hours", format: "MP3", duration: "3:42", seconds: 222, cover: @image-url("assets/cover-0.svg") }, + { title: "Prelude", artist: "FMusic Sessions", record: "First light", format: "M4A", duration: "4:16", seconds: 256, cover: @image-url("assets/cover-1.svg") }, + { title: "Sea Glass", artist: "Northbound", record: "Coastline", format: "FLAC", duration: "3:28", seconds: 208, cover: @image-url("assets/cover-2.svg") }, + { title: "City Static", artist: "Soft Circuit", record: "Night service", format: "MP3", duration: "3:55", seconds: 235, cover: @image-url("assets/cover-3.svg") }, + { title: "Blue Hour", artist: "Northbound", record: "Coastline", format: "FLAC", duration: "5:02", seconds: 302, cover: @image-url("assets/cover-4.svg") }, + { title: "Paper Planes", artist: "Mono Field", record: "Field notes", format: "M4A", duration: "2:58", seconds: 178, cover: @image-url("assets/cover-5.svg") }, + ]; + private property <[TempoDestination]> nav-items: [ + { label: "Library", icon: @image-url("assets/library.svg"), selected-icon: @image-url("assets/library-filled.svg") }, + { label: "Search", icon: @image-url("assets/search.svg") }, + { label: "Queue", icon: @image-url("assets/queue.svg") }, + { label: "Settings", icon: @image-url("assets/settings.svg"), selected-icon: @image-url("assets/settings-filled.svg") }, + ]; + callback filter(string); + callback choose(string); + callback step(int); + callback playback-changed(bool); + + VerticalLayout { + x: 0px; y: 0px; width: root.width; height: root.height; + HorizontalLayout { + vertical-stretch: 1; + if !root.compact : Rectangle { + width: root.extended ? TempoTokens.desktop-nav-rail-extended-width : TempoTokens.desktop-nav-rail-width; + background: TempoTheme.surface; + Rectangle { width: 1px; x: parent.width - 1px; background: TempoTheme.border; } + VerticalLayout { + padding: root.extended ? 14px : 8px; + spacing: 21px; + HorizontalLayout { + height: 48px; + alignment: root.extended ? start : center; + spacing: 10px; + Rectangle { + width: 34px; height: 34px; cross-axis-self-alignment: center; + border-radius: 10px; background: TempoTheme.primary; + TempoIcon { source: @image-url("assets/note.svg"); tint: TempoTheme.text-inverse; width: 20px; height: 20px; } + } + if root.extended : VerticalLayout { + alignment: center; spacing: 2px; + Text { text: "FMusic Next"; font-size: 15px; font-weight: 800; color: TempoTheme.text-primary; } + Text { text: "Tempo UI"; font-size: 11px; color: TempoTheme.text-secondary; } + } + } + TempoNav { destinations: root.nav-items; selected: root.page; extended: root.extended; selected-index(i) => { root.page = i; } } + Rectangle { vertical-stretch: 1; } + if root.extended : Rectangle { + height: 55px; + border-radius: 10px; + background: TempoTheme.surface-alt; + HorizontalLayout { + padding: 9px; spacing: 9px; + TempoIcon { source: @image-url("assets/device.svg"); width: 18px; height: 18px; cross-axis-self-alignment: center; } + VerticalLayout { + alignment: center; spacing: 2px; + Text { text: "Demo library"; color: TempoTheme.text-primary; font-weight: 600; font-size: 12px; } + Text { text: "Local sample data"; color: TempoTheme.text-secondary; font-size: 10px; } + } + } + } + } + } + + VerticalLayout { + horizontal-stretch: 1; + HorizontalLayout { + padding-left: root.gutter; padding-right: root.gutter; + padding-top: 12px; padding-bottom: 10px; + spacing: 10px; + VerticalLayout { + horizontal-stretch: 1; alignment: center; spacing: 2px; + Text { text: root.compact ? "FMusic Next" : "YOUR MUSIC / TEMPO UI"; color: TempoTheme.text-primary; font-size: root.compact ? 16px : 12px; font-weight: 800; } + if root.compact : Text { text: "Tempo UI preview"; color: TempoTheme.text-secondary; font-size: 10px; } + } + TempoTag { label: "UI PREVIEW"; variant: primary; cross-axis-self-alignment: center; } + TempoIconButton { + size: 42px; variant: outline; + icon: root.dark ? @image-url("assets/sun.svg") : @image-url("assets/moon.svg"); + label: root.dark ? "Switch to light theme" : "Switch to dark theme"; + activated => { root.dark = !root.dark; } + } + } + scroller := ScrollView { + vertical-stretch: 1; + content-width: self.visible-width; + content := VerticalLayout { + padding-left: root.gutter; + padding-right: root.gutter; + padding-top: 6px; + padding-bottom: 18px; + spacing: 16px; + + if root.page == 0 : Rectangle { + clip: true; + height: root.compact ? 153px : 180px; + border-radius: TempoTokens.radius-xl; + Rectangle { + cache-rendering-hint: true; + background: @linear-gradient(110deg, #21284f 0%, #34467b 56%, #525f9c 100%); + Rectangle { + x: parent.width - self.width + (root.compact ? 43px : 19px); + y: root.compact ? -12px : -49px; + width: root.compact ? 178px : 315px; + height: self.width; + clip: true; + border-radius: 999px; + opacity: root.compact ? 0.48 : 0.86; + Image { source: @image-url("assets/cover-0.svg"); image-fit: cover; } + } + } + VerticalLayout { + padding: root.compact ? 15px : 22px; + alignment: center; + spacing: 7px; + Text { text: "THE LOCAL COLLECTION"; color: #bbcafa; font-size: 10px; font-weight: 800; } + Text { text: "Your music library"; color: #ffffff; font-size: root.compact ? 25px : 35px; font-weight: 800; } + Text { text: "A quiet space for your own collection."; color: #e3e9ff; font-size: root.compact ? 11px : 13px; } + HorizontalLayout { + alignment: start; + TempoButton { + min-height: 32px; + compact: true; + label: root.playing ? "Pause preview" : "Play preview"; + icon: root.playing ? @image-url("assets/pause.svg") : @image-url("assets/play.svg"); + activated => { root.playing = !root.playing; } + } + } + } + } + if root.page != 3 : VerticalLayout { + spacing: 10px; + HorizontalLayout { + height: 33px; spacing: 8px; + Text { + text: root.page == 0 ? "Tracks" : root.page == 1 ? "Search library" : "Playback queue"; + font-size: root.compact ? 20px : 23px; font-weight: 800; + color: TempoTheme.text-primary; vertical-alignment: center; + horizontal-stretch: 1; + } + TempoTag { + label: (root.page == 2 ? root.tracks.length : root.shown-tracks.length) + " tracks"; + cross-axis-self-alignment: center; + } + } + if root.page != 2 : TempoSearch { + icon: @image-url("assets/search.svg"); + placeholder: "Filter by song, artist, or album"; + text <=> root.query; + } + TempoSurface { + VerticalLayout { + padding: 5px; + if root.extended : HorizontalLayout { + height: 33px; padding-left: 15px; padding-right: 17px; spacing: 10px; + Text { width: 24px; text: "#"; color: TempoTheme.text-secondary; font-size: 11px; vertical-alignment: center; } + Text { text: "TITLE"; color: TempoTheme.text-secondary; font-size: 11px; font-weight: 700; horizontal-stretch: 1; vertical-alignment: center; } + Text { width: 135px; text: "ALBUM"; color: TempoTheme.text-secondary; font-size: 11px; font-weight: 700; vertical-alignment: center; } + Text { width: 58px; text: "FORMAT"; color: TempoTheme.text-secondary; font-size: 11px; font-weight: 700; vertical-alignment: center; } + Rectangle { width: 16px; } + Text { width: 34px; text: "TIME"; color: TempoTheme.text-secondary; font-size: 11px; font-weight: 700; vertical-alignment: center; horizontal-alignment: right; } + } + for track[index] in (root.page == 2 ? root.tracks : root.shown-tracks) : TrackRow { + track: track; + number: index + 1; + active: track.title == root.tracks[root.current].title; + playing: root.playing; + wide: root.extended; + activated => { root.choose(track.title); } + } + if root.page != 2 && root.shown-tracks.length == 0 : TempoEmptyState { + icon: @image-url("assets/search.svg"); + title: "No matching tracks"; + message: "Try a different song, artist, or album."; + action-label: "Clear search"; + action => { root.query = ""; } + } + } + } + } + if root.page == 3 : VerticalLayout { + spacing: 12px; + Text { text: "Settings"; font-size: 24px; font-weight: 800; color: TempoTheme.text-primary; } + TempoSection { + title: "Appearance"; + VerticalLayout { + padding: 14px; + TempoSegmentedControl { + selected: root.dark ? 1 : 0; + items: [ + { label: "Light", icon: @image-url("assets/sun.svg") }, + { label: "Dark", icon: @image-url("assets/moon.svg") }, + ]; + selected-index(i) => { root.dark = i == 1; } + } + } + TempoDivider {} + TempoTile { + label: "Demo library"; + subtitle: "View the sample tracks"; + icon: @image-url("assets/library.svg"); + trailing-icon: @image-url("assets/chevron.svg"); + activated => { root.page = 0; } + } + } + TempoSection { + title: "Tempo UI component samples"; + TempoSelectionTile { + label: "Keep tracks available offline"; + subtitle: "Checkbox sample only"; + check-icon: @image-url("assets/check.svg"); + checked <=> root.keep-offline; + } + TempoDivider {} + TempoSelectionTile { + label: "Show button variants"; + check-icon: @image-url("assets/check.svg"); + checked <=> root.show-button-states; + } + if root.show-button-states : VerticalLayout { + padding: 12px; spacing: 8px; + HorizontalLayout { + spacing: 6px; + TempoButton { label: "Primary"; compact: true; } + TempoButton { label: "Secondary"; compact: true; variant: secondary; } + } + HorizontalLayout { + spacing: 6px; + TempoButton { label: "Ghost"; compact: true; variant: ghost; } + TempoButton { label: "Danger"; compact: true; variant: danger; } + } + HorizontalLayout { + alignment: start; spacing: 6px; + TempoTag { label: "Neutral"; } + TempoTag { label: "Success"; variant: success; } + TempoTag { label: "Warning"; variant: warning; } + TempoTag { label: "Danger"; variant: danger; } + } + TempoProgressBar { value: root.position; } + } + } + } + } + content-height: content.preferred-height; + } + } + } + PlayerDock { + track: root.tracks[root.current]; + wide: !root.compact; + playing: root.playing; + position <=> root.position; + volume <=> root.volume; + toggle => { root.playing = !root.playing; } + previous => { root.step(-1); } + next => { root.step(1); } + queue => { root.page = 2; } + } + if root.compact : Rectangle { + height: TempoTokens.bottom-tab-height; + background: TempoTheme.surface; + Rectangle { height: 1px; y: 0px; background: TempoTheme.border; } + TempoNav { + destinations: root.nav-items; selected: root.page; bottom: true; + selected-index(i) => { root.page = i; } + } + } + } + changed query => { root.filter(root.query); } + changed page => { scroller.content-y = 0px; } + changed playing => { root.playback-changed(root.playing); } +} + +export { TempoCatalogWindow } from "catalog.slint"; diff --git a/scripts/check.sh b/scripts/check.sh new file mode 100755 index 0000000..6ecad01 --- /dev/null +++ b/scripts/check.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -euo pipefail + +cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." +cargo fmt --all --check +cargo test --workspace --release --locked +cargo build --workspace --release --locked + +target_dir="$(cargo metadata --offline --no-deps --format-version 1 | python3 -c 'import json,sys;print(json.load(sys.stdin)["target_directory"])')" +showcase="$target_dir/release/tempo-ui-showcase" +renderers=("$@") +if (( ${#renderers[@]} == 0 )); then + renderers=(winit-femtovg winit-software) +fi + +for renderer in "${renderers[@]}"; do + export SLINT_BACKEND="$renderer" + "$showcase" --music --smoke + "$showcase" --music --compact --dark --smoke + "$showcase" --catalog --smoke + "$showcase" --catalog --compact --dark --smoke + "$showcase" --layout --wide --smoke + "$showcase" --motion-smoke + "$showcase" --motion-smoke --compact --dark +done diff --git a/src/fonts.rs b/src/fonts.rs new file mode 100644 index 0000000..7ec81df --- /dev/null +++ b/src/fonts.rs @@ -0,0 +1,44 @@ +use slint::fontique_012::{fontique, set_shared_collection}; + +/// Prefer the same installed CJK fallback families as FinUI without bundling platform fonts. +/// Call before constructing a Slint window. +pub fn configure_finui_fallbacks() -> Result<(), slint::PlatformError> { + let mut collection = fontique::Collection::new(fontique::CollectionOptions { + shared: true, + ..Default::default() + }); + for (script, preferences) in [ + ( + *b"Hani", + &["Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC"][..], + ), + ( + *b"Hira", + &["Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP"][..], + ), + ( + *b"Kana", + &["Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP"][..], + ), + ( + *b"Hang", + &["Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR"][..], + ), + ] { + let key = fontique::FallbackKey::new(fontique::Script::from_bytes(script), None); + let mut families: Vec<_> = preferences + .iter() + .filter_map(|name| collection.family_by_name(name).map(|family| family.id())) + .collect(); + if !families.is_empty() { + let existing: Vec<_> = collection.fallback_families(key).collect(); + for id in existing { + if !families.contains(&id) { + families.push(id); + } + } + collection.set_fallbacks(key, families.into_iter()); + } + } + set_shared_collection(collection) +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..516cae2 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,5 @@ +//! Host-side support for the Tempo UI Slint component library. + +#[cfg(feature = "finui-font-fallback")] +pub mod fonts; +pub mod navigation; diff --git a/src/navigation.rs b/src/navigation.rs new file mode 100644 index 0000000..fd2e577 --- /dev/null +++ b/src/navigation.rs @@ -0,0 +1,65 @@ +use std::collections::BTreeMap; + +/// Widgets keep their own view state. This keeps each destination's detail history. +#[derive(Debug, Default)] +pub struct RouteStacks { + stacks: BTreeMap>, +} + +impl RouteStacks { + pub fn top(&self, destination: usize) -> Option<&T> { + self.stacks.get(&destination)?.last() + } + + pub fn depth(&self, destination: usize) -> usize { + self.stacks.get(&destination).map_or(0, Vec::len) + } + + pub fn open(&mut self, destination: usize, route: T, replace: bool) { + let stack = self.stacks.entry(destination).or_default(); + if replace { + stack.pop(); + } + stack.push(route); + } + + pub fn back(&mut self, destination: usize) -> bool { + self.stacks + .get_mut(&destination) + .and_then(Vec::pop) + .is_some() + } + + pub fn close(&mut self, destination: usize) { + self.stacks.remove(&destination); + } +} + +#[cfg(test)] +mod tests { + use super::RouteStacks; + + #[test] + fn independent_destination_stacks_survive_switches() { + let mut routes = RouteStacks::default(); + routes.open(0, "album", false); + routes.open(1, "settings", false); + routes.open(0, "song", false); + assert_eq!(routes.top(0), Some(&"song")); + assert!(routes.back(0)); + assert_eq!(routes.top(0), Some(&"album")); + assert_eq!(routes.top(1), Some(&"settings")); + routes.close(0); + assert!(!routes.back(0)); + assert_eq!(routes.depth(1), 1); + } + + #[test] + fn replace_does_not_add_a_back_entry() { + let mut routes = RouteStacks::default(); + routes.open(0, 1, true); + routes.open(0, 2, true); + assert_eq!(routes.top(0), Some(&2)); + assert_eq!(routes.depth(0), 1); + } +} diff --git a/ui/auxiliary.slint b/ui/auxiliary.slint new file mode 100644 index 0000000..d19b737 --- /dev/null +++ b/ui/auxiliary.slint @@ -0,0 +1,228 @@ +import { TempoMotionSettings, TempoPresence } from "motion.slint"; +import { ScrollView } from "std-widgets.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; +import { TempoAction, TempoIcon } from "controls.slint"; +import { TempoIcons } from "icons.slint"; + +export component TempoFloatingActionButton inherits TempoAction { + in property icon: TempoIcons.add; + in property small; + width: root.small ? 40px : 56px; + height: self.width; + border-radius: TempoTokens.radius-md; + background: !root.enabled ? TempoTheme.border : root.pressed ? TempoTheme.primary-pressed + : root.hovered ? TempoTheme.primary-hover : TempoTheme.primary; + drop-shadow-blur: root.hovered ? 6px : 4px; + drop-shadow-offset-y: 2px; + drop-shadow-color: #0004; + TempoIcon { + source: root.icon; tint: root.enabled ? TempoTheme.text-inverse : TempoTheme.text-disabled; + width: root.small ? TempoTokens.icon-md : TempoTokens.icon-lg; height: self.width; + } + Tooltip { Text { text: root.label; } } +} + +export struct TempoGroupTab { label: string, icon: image, tooltip: string } + +component TempoGroupTabButton inherits TempoAction { + in property item; + in property active; + in property show-label; + out property marker-x: root.x; + out property marker-width: root.width; + callback marker(length, length); + private property ink: root.active ? TempoTheme.text-inverse : TempoTheme.text-secondary; + accessible-role: tab; + accessible-item-selectable: true; + accessible-item-selected: root.active; + label: root.item.label; + height: 36px; + min-width: 42px; + preferred-width: max(42px, inner.preferred-width); + border-radius: TempoTokens.radius-sm; + background: !root.active && root.hovered ? TempoTheme.surface-pressed : transparent; + init => { if root.active { root.marker(root.x, root.width); } } + changed active => { if root.active { root.marker(root.x, root.width); } } + changed marker-x => { if root.active { root.marker(root.x, root.width); } } + changed marker-width => { if root.active { root.marker(root.x, root.width); } } + inner := HorizontalLayout { + alignment: center; cross-axis-alignment: center; + padding-left: root.show-label ? 12px : 0px; padding-right: self.padding-left; + spacing: TempoTokens.gap6; + if root.item.icon.width > 0 : TempoIcon { source: root.item.icon; tint: root.ink; width: 18px; height: 18px; } + if root.show-label : Text { text: root.item.label; color: root.ink; font-size: 12px; font-weight: root.active ? 800 : 700; } + } + Tooltip { Text { text: root.item.tooltip != "" ? root.item.tooltip : root.item.label; } } +} + +export component TempoButtonGroupTabBar inherits Rectangle { + in property <[TempoGroupTab]> items; + in-out property selected: 0; + in property show-labels: true; + in property alignment: start; + out property indicator-x: indicator.x; + out property indicator-width: indicator.width; + callback selected-index(int); + private property target-x; + private property target-width; + height: 46px; + background: TempoTheme.surface-alt; + border-width: 1px; border-color: TempoTheme.border; border-radius: TempoTokens.radius-sm; + accessible-role: tab-list; + Flickable { + x: 5px; y: 5px; width: root.width - 10px; height: 36px; + content-width: max(self.width, tab-row.preferred-width); + content-height: self.height; + Rectangle { + width: parent.width; + height: parent.height; + indicator := Rectangle { + x: root.target-x; + width: root.selected >= 0 && root.selected < root.items.length ? root.target-width : 0px; + height: 36px; + border-radius: TempoTokens.radius-sm; + background: TempoTheme.primary; + animate x, width { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.normal; easing: cubic-bezier(0.215, 0.61, 0.355, 1.0); } + } + tab-row := HorizontalLayout { + spacing: TempoTokens.gap4; + alignment: root.alignment; + for item[i] in root.items : TempoGroupTabButton { + item: item; active: i == root.selected; show-label: root.show-labels; + marker(x, w) => { root.target-x = x; root.target-width = w; } + activated => { root.selected = i; root.selected-index(i); } + } + } + } + } +} + +export enum TempoRefreshState { idle, refreshing, loading, refreshed, loaded, refresh-failed, load-failed, failed, no-more } +export struct TempoRefreshLabels { + pull: string, + release: string, + refreshing: string, + refresh-success: string, + refresh-failed: string, + pull-to-load: string, + release-to-load: string, + loading: string, + load-success: string, + load-failed: string, + no-more: string, +} +export global TempoRefreshText { + public pure function for-language(lang: string) -> TempoRefreshLabels { + return lang == "zh" ? {pull: "下拉刷新", release: "松开刷新", refreshing: "正在刷新", refresh-success: "刷新成功", refresh-failed: "刷新失败", pull-to-load: "上拉加载", release-to-load: "松开加载", loading: "正在加载", load-success: "加载成功", load-failed: "加载失败", no-more: "没有更多内容"} + : lang == "ja" ? {pull: "下に引いて更新", release: "離して更新", refreshing: "更新中", refresh-success: "更新しました", refresh-failed: "更新に失敗しました", pull-to-load: "上に引いて読み込む", release-to-load: "離して読み込む", loading: "読み込み中", load-success: "読み込みました", load-failed: "読み込みに失敗しました", no-more: "これ以上ありません"} + : lang == "ko" ? {pull: "아래로 당겨 새로고침", release: "놓아서 새로고침", refreshing: "새로고침 중", refresh-success: "새로고침 완료", refresh-failed: "새로고침 실패", pull-to-load: "위로 당겨 불러오기", release-to-load: "놓아서 불러오기", loading: "불러오는 중", load-success: "불러오기 완료", load-failed: "불러오기 실패", no-more: "더 이상 항목이 없습니다"} + : lang == "vi" ? {pull: "Kéo xuống để làm mới", release: "Thả để làm mới", refreshing: "Đang làm mới", refresh-success: "Đã làm mới", refresh-failed: "Làm mới thất bại", pull-to-load: "Kéo lên để tải thêm", release-to-load: "Thả để tải thêm", loading: "Đang tải", load-success: "Đã tải", load-failed: "Tải thất bại", no-more: "Không còn nội dung"} + : {pull: "Pull to refresh", release: "Release to refresh", refreshing: "Refreshing", refresh-success: "Refresh complete", refresh-failed: "Refresh failed", pull-to-load: "Pull to load more", release-to-load: "Release to load more", loading: "Loading", load-success: "Load complete", load-failed: "Load failed", no-more: "No more content"}; + } +} + +export component TempoRefresh inherits Rectangle { + in property can-refresh: true; + in property can-load-more: false; + in property refresh-on-start; + in property trigger-distance: 64px; + in property no-more-duration: 1500ms; + in property labels: TempoRefreshText.for-language("en"); + in-out property state: idle; + out property footer-visible: footer-motion.present; + out property at-top: scroller.content-y >= -1px; + out property at-end: -scroller.content-y >= scroller.content-height - scroller.visible-height - 1px; + private property ready: root.state != refreshing && root.state != loading; + private property pull-offset: gesture.current-position.y - gesture.pressed-position.y; + private property pulling: gesture.swiping && root.at-top && root.pull-offset > 0px; + private property no-more-dismissed: false; + private property refresh-result: root.state == refreshed || root.state == refresh-failed; + callback refresh(); + callback load-more(); + public function request-refresh() { + if root.ready && root.can-refresh { root.state = refreshing; root.refresh(); } + } + public function request-load-more() { + if root.ready && root.can-load-more && root.state != no-more { root.state = loading; root.load-more(); } + } + public function finish(result: TempoRefreshState) { + if result != refreshing && result != loading { + root.state = result == failed ? (root.state == refreshing ? refresh-failed : load-failed) : result; + settle.running = root.state == refreshed || root.state == loaded || root.state == refresh-failed || root.state == load-failed; + } + } + changed state => { + no-more-notice.running = root.state == no-more; + root.no-more-dismissed = false; + } + init => { + no-more-notice.running = root.state == no-more; + if root.refresh-on-start { root.request-refresh(); } + } + no-more-notice := Timer { + interval: root.no-more-duration; + running: false; + triggered => { + self.running = false; + root.no-more-dismissed = true; + } + } + settle := Timer { interval: 550ms; running: false; triggered => { self.running = false; if root.ready { root.state = idle; } } } + header-motion := TempoPresence { active: root.state == refreshing || root.refresh-result; } + footer-motion := TempoPresence { + active: root.state == loading || root.state == loaded || root.state == load-failed + || (root.state == no-more && !root.no-more-dismissed); + } + VerticalLayout { + Rectangle { + height: root.pulling ? min(44px, root.pull-offset * 0.55) : 44px * header-motion.progress; + clip: true; + visible: root.pulling || header-motion.present; + HorizontalLayout { + y: parent.height - 44px; height: 44px; + opacity: root.pulling ? min(1.0, root.pull-offset / 35px) : header-motion.progress; + alignment: center; cross-axis-alignment: center; spacing: TempoTokens.gap8; + TempoIcon { + width: 20px; height: 20px; + source: root.state == refreshed ? TempoIcons.check : root.state == refresh-failed ? TempoIcons.error : TempoIcons.refresh; + tint: root.state == refreshed ? TempoTheme.success : root.state == refresh-failed ? TempoTheme.danger : TempoTheme.primary; + } + Text { + text: root.state == refreshing ? root.labels.refreshing : root.state == refreshed ? root.labels.refresh-success + : root.state == refresh-failed ? root.labels.refresh-failed : root.pull-offset >= root.trigger-distance ? root.labels.release : root.labels.pull; + color: TempoTheme.text-secondary; font-size: 14px; + } + } + } + Rectangle { + vertical-stretch: 1; + gesture := SwipeGestureHandler { + enabled: root.ready && ((root.can-refresh && root.at-top) || (root.can-load-more && root.at-end && root.state != no-more)); + handle-swipe-down: root.can-refresh && root.at-top; + handle-swipe-up: root.can-load-more && root.at-end && root.state != no-more; + swiped => { + if gesture.current-position.y - gesture.pressed-position.y >= root.trigger-distance { root.request-refresh(); } + else if gesture.pressed-position.y - gesture.current-position.y >= root.trigger-distance { root.request-load-more(); } + } + scroller := ScrollView { + content-width: self.visible-width; + content-height: body.preferred-height; + body := VerticalLayout { @children } + } + } + } + Rectangle { + height: 42px * footer-motion.progress; + visible: footer-motion.present; + clip: true; + HorizontalLayout { + y: 0px; height: 42px; opacity: footer-motion.progress; + alignment: center; cross-axis-alignment: center; + Text { + text: root.state == loading ? root.labels.loading : root.state == loaded ? root.labels.load-success : root.state == load-failed ? root.labels.load-failed : root.labels.no-more; + color: root.state == load-failed ? TempoTheme.danger : root.state == loaded ? TempoTheme.success : TempoTheme.text-secondary; font-size: 14px; + } + } + } + } +} diff --git a/ui/controls.slint b/ui/controls.slint new file mode 100644 index 0000000..c7d1935 --- /dev/null +++ b/ui/controls.slint @@ -0,0 +1,325 @@ +import { TempoMotionSettings } from "motion.slint"; +import { Spinner } from "std-widgets.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; + +component TempoControlFocus inherits FocusScope { + private property keyboard: false; + out property ring-visible: root.has-focus && root.keyboard; + callback handle-key(KeyEvent) -> EventResult; + + public function focus-from-pointer() { + root.keyboard = false; + root.focus(); + } + + focus-gained(reason) => { root.keyboard = reason == FocusReason.tab-navigation; } + key-pressed(event) => { + root.keyboard = true; + return root.handle-key(event); + } +} + +export component TempoAction inherits Rectangle { + in property label; + in property enabled: true; + in property blocked: false; + private property interactive: root.enabled && !root.blocked; + out property hovered: hit.has-hover; + out property pressed: hit.pressed; + out property focused: keys.has-focus; + out property focus-ring-visible: keys.ring-visible; + callback activated(); + accessible-role: button; + accessible-label: root.label; + accessible-enabled: root.interactive; + accessible-action-default => { if root.interactive { root.activated(); } } + @children + keys := TempoControlFocus { + enabled: root.interactive; + handle-key(e) => { + if (e.text == Key.Return || e.text == Key.Space) { + if (!e.repeat) { root.activated(); } + return accept; + } + return reject; + } + } + hit := TouchArea { + enabled: root.interactive; + mouse-cursor: pointer; + clicked => { keys.focus-from-pointer(); root.activated(); } + } + Rectangle { + visible: root.focus-ring-visible; + border-radius: root.border-radius; + border-width: 2px; + border-color: TempoTheme.primary; + } +} + +export component TempoIcon inherits Image { + in property tint: TempoTheme.text-secondary; + colorize: root.tint; + image-fit: contain; +} + +export enum TempoButtonVariant { primary, secondary, ghost, danger } +export enum TempoIconButtonVariant { ghost, soft, outline, danger } +export enum TempoTagVariant { neutral, primary, success, warning, danger } + +export component TempoButton inherits TempoAction { + in property icon; + in property icon-only: false; + in property compact: false; + in property loading: false; + blocked: root.loading; + in property variant: primary; + private property icon-size: root.compact ? TempoTokens.icon-sm : TempoTokens.icon-md; + private property ink: !root.enabled ? TempoTheme.text-disabled + : root.variant == primary ? TempoTheme.text-inverse + : root.variant == danger ? TempoTheme.danger : TempoTheme.primary; + min-height: root.compact ? TempoTokens.small-button-height : TempoTokens.button-height; + preferred-width: root.icon-only ? self.min-height : inner.preferred-width; + border-radius: TempoTokens.radius-md; + border-width: root.enabled && (root.variant == secondary || root.variant == danger) ? TempoTokens.border-width : 0px; + border-color: root.variant == danger ? TempoTheme.danger.with-alpha(0.35) : TempoTheme.primary.with-alpha(0.25); + background: !root.enabled ? (root.variant == ghost ? transparent : TempoTheme.border) + : root.variant == primary ? (root.pressed ? TempoTheme.primary-pressed : root.hovered ? TempoTheme.primary-hover : TempoTheme.primary) + : root.variant == danger ? TempoTheme.danger-soft + : root.variant == secondary ? TempoTheme.primary-soft + : root.hovered ? TempoTheme.primary-soft : transparent; + animate background { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + inner := HorizontalLayout { + alignment: center; + cross-axis-alignment: center; + padding-left: root.icon-only ? 0px : 18px; + padding-right: self.padding-left; + spacing: TempoTokens.gap6; + if root.loading : Spinner { width: root.icon-size; height: root.icon-size; indeterminate: true; } + if !root.loading && root.icon.width > 0 : TempoIcon { + source: root.icon; + tint: root.ink; + width: root.icon-size; + height: root.icon-size; + } + if !root.icon-only : Text { + text: root.label; + color: root.ink; + font-size: root.compact ? 13px : 15px; + font-weight: 600; + } + } +} + +export component TempoIconButton inherits TempoAction { + in property icon; + in property selected; + in property loading: false; + in property tooltip; + blocked: root.loading; + in property size: 36px; + in property icon-size: TempoTokens.icon-md; + in property variant: ghost; + width: root.size; + height: root.size; + border-radius: TempoTokens.radius-sm; + border-width: root.variant == outline || root.variant == danger ? 1px : 0px; + border-color: root.variant == danger ? TempoTheme.danger.with-alpha(0.28) : TempoTheme.border; + background: root.variant == soft ? TempoTheme.primary-soft + : root.variant == outline ? TempoTheme.surface + : root.variant == danger ? TempoTheme.danger-soft + : root.hovered && root.enabled ? TempoTheme.surface-alt : transparent; + animate background, border-color { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + if root.loading : Spinner { width: root.icon-size; height: root.icon-size; indeterminate: true; } + if !root.loading : TempoIcon { + source: root.icon; + width: root.icon-size; + height: root.icon-size; + tint: !root.enabled ? TempoTheme.text-disabled + : root.variant == danger ? TempoTheme.danger + : root.variant == soft || root.selected ? TempoTheme.primary + : root.variant == outline ? TempoTheme.text-primary : TempoTheme.text-secondary; + } + if root.tooltip != "" : Tooltip { Text { text: root.tooltip; } } +} + +export component TempoSurface inherits Rectangle { + background: TempoTheme.surface; + border-color: TempoTheme.border; + border-width: TempoTokens.border-width; + border-radius: TempoTokens.radius-lg; + @children +} + +export component TempoTag inherits Rectangle { + in property label; + in property icon; + in property variant: neutral; + height: 24px; + preferred-width: inner.preferred-width; + border-radius: TempoTokens.radius-full; + background: root.variant == primary ? TempoTheme.primary-soft + : root.variant == success ? TempoTheme.success-soft + : root.variant == warning ? TempoTheme.warning-soft + : root.variant == danger ? TempoTheme.danger-soft : TempoTheme.surface-alt; + private property foreground: root.variant == primary ? TempoTheme.primary + : root.variant == success ? TempoTheme.success + : root.variant == warning ? TempoTheme.warning + : root.variant == danger ? TempoTheme.danger : TempoTheme.text-secondary; + inner := HorizontalLayout { + alignment: center; + cross-axis-alignment: center; + padding-left: 8px; padding-right: 8px; + spacing: TempoTokens.gap4; + if root.icon.width > 0 : TempoIcon { + source: root.icon; + tint: root.foreground; + width: 12px; height: 12px; + } + Text { text: root.label; color: root.foreground; font-size: 11px; font-weight: 600; } + } +} + +export component TempoTextField inherits VerticalLayout { + in property label; + in property placeholder; + in property error; + in property icon; + in property enabled: true; + in property field-height: 50px; + in property input-type: InputType.text; + in property input-hints: { auto-correct: true, auto-complete: true }; + in-out property text <=> input.text; + callback edited(string); + callback submitted(string); + forward-focus: input; + spacing: TempoTokens.gap6; + if root.label != "" : Text { + text: root.label; color: TempoTheme.text-secondary; font-size: 12px; font-weight: 600; + } + Rectangle { + height: root.field-height; + background: root.enabled ? TempoTheme.surface : TempoTheme.surface-alt; + border-radius: TempoTokens.radius-md; + border-color: root.error != "" ? TempoTheme.danger : input.has-focus ? TempoTheme.primary : TempoTheme.border; + border-width: input.has-focus ? 1.4px : 1px; + HorizontalLayout { + padding-left: 12px; padding-right: 12px; spacing: 8px; + if root.icon.width > 0 : TempoIcon { + source: root.icon; width: 20px; height: 20px; cross-axis-self-alignment: center; + } + Rectangle { + horizontal-stretch: 1; + Text { + visible: input.text == ""; text: root.placeholder; + x: 0px; width: parent.width; height: parent.height; + horizontal-alignment: left; vertical-alignment: center; + color: TempoTheme.text-tertiary; font-size: root.field-height == 44px ? 13px : 16px; + } + input := TextInput { + enabled: root.enabled; + input-type: root.input-type; + input-method-hints: root.input-hints; + single-line: true; font-size: root.field-height == 44px ? 13px : 16px; + color: root.enabled ? TempoTheme.text-primary : TempoTheme.text-disabled; + selection-background-color: TempoTheme.primary; + selection-foreground-color: TempoTheme.text-inverse; + vertical-alignment: center; + accessible-label: root.label != "" ? root.label : root.placeholder; + accessible-description: root.error; + edited => { root.edited(self.text); } + accepted => { root.submitted(self.text); } + } + } + @children + } + } + if root.error != "" : Text { text: root.error; color: TempoTheme.danger; font-size: 12px; wrap: word-wrap; } +} + +export component TempoSearch inherits TempoTextField { + placeholder: "Search"; + field-height: TempoTokens.input-height; + input-type: search; + input-hints: { auto-correct: false, auto-complete: true }; +} + +export component TempoSlider inherits Rectangle { + in-out property value: 0; + in property label: "Progress"; + in property minimum: 0; + in property maximum: 1; + in property divisions: 0; + in property enabled: true; + private property span: max(0, root.maximum - root.minimum); + private property increment: root.divisions > 0 ? root.span / root.divisions : root.span * 0.05; + function set-fraction(fraction: float) { + if root.enabled && root.span > 0 { + let f = clamp(fraction, 0, 1); + root.value = root.minimum + root.span * (root.divisions > 0 ? round(f * root.divisions) / root.divisions : f); + } + } + function nudge(delta: float) { + if root.enabled && root.span > 0 { + root.set-fraction((root.value - root.minimum + delta * root.increment) / root.span); + } + } + private property bounded: root.span > 0 ? clamp((root.value - root.minimum) / root.span, 0, 1) : 0; + min-height: 28px; + accessible-role: slider; + accessible-label: root.label; + accessible-value: round(root.bounded * 100) + "%"; + accessible-enabled: root.enabled; + accessible-action-increment => { root.nudge(1); } + accessible-action-decrement => { root.nudge(-1); } + Rectangle { + x: 5px; + width: max(0px, root.width - 10px); + height: 4px; + border-radius: 2px; + background: TempoTheme.primary-soft; + Rectangle { + x: 0px; + width: parent.width * root.bounded; + height: parent.height; + border-radius: 2px; + background: TempoTheme.primary; + } + } + Rectangle { + x: max(0px, root.width - self.width) * root.bounded; + width: 10px; + height: 10px; + border-radius: 5px; + border-width: keys.ring-visible ? 2px : 0px; + border-color: TempoTheme.text-primary; + background: TempoTheme.primary; + } + keys := TempoControlFocus { + enabled: root.enabled; + handle-key(e) => { + if e.text == Key.LeftArrow { root.nudge(-1); return accept; } + if e.text == Key.RightArrow { root.nudge(1); return accept; } + return reject; + } + } + touch := TouchArea { + enabled: root.enabled; + mouse-cursor: pointer; + moved => { + if self.pressed { root.set-fraction((self.mouse-x - 5px) / max(1px, self.width - 10px)); } + } + clicked => { + keys.focus-from-pointer(); + root.set-fraction((self.mouse-x - 5px) / max(1px, self.width - 10px)); + } + } +} + +export component TempoClickableSurface inherits TempoAction { + background: root.pressed ? TempoTheme.surface-pressed : root.hovered ? TempoTheme.surface-alt : TempoTheme.surface; + border-color: TempoTheme.border; + border-width: TempoTokens.border-width; + border-radius: TempoTokens.radius-lg; + @children +} diff --git a/ui/icons.slint b/ui/icons.slint new file mode 100644 index 0000000..398ea61 --- /dev/null +++ b/ui/icons.slint @@ -0,0 +1,65 @@ +// FinUI aliases mapped to Fluent System Icons 1.1.347. See LICENSES/Fluent-System-Icons-MIT.txt. +export global TempoIcons { + out property home: @image-url("icons/home_24_regular.svg"); + out property home-filled: @image-url("icons/home_24_filled.svg"); + out property calendar: @image-url("icons/calendar_ltr_24_regular.svg"); + out property calendar-filled: @image-url("icons/calendar_ltr_24_filled.svg"); + out property calendar-add: @image-url("icons/calendar_add_24_regular.svg"); + out property today: @image-url("icons/calendar_today_24_regular.svg"); + out property apps: @image-url("icons/apps_24_regular.svg"); + out property apps-filled: @image-url("icons/apps_24_filled.svg"); + out property list: @image-url("icons/list_24_regular.svg"); + out property settings: @image-url("icons/settings_24_regular.svg"); + out property settings-filled: @image-url("icons/settings_24_filled.svg"); + out property search: @image-url("icons/search_24_regular.svg"); + out property refresh: @image-url("icons/arrow_sync_24_regular.svg"); + out property filter: @image-url("icons/filter_24_regular.svg"); + out property save: @image-url("icons/save_24_regular.svg"); + out property add: @image-url("icons/add_24_regular.svg"); + out property chevron-right: @image-url("icons/chevron_right_24_regular.svg"); + out property chevron-down: @image-url("icons/chevron_down_24_regular.svg"); + out property chevron-left: @image-url("icons/chevron_left_24_regular.svg"); + out property person: @image-url("icons/person_24_regular.svg"); + out property badge: @image-url("icons/person_24_regular.svg"); + out property location: @image-url("icons/location_24_regular.svg"); + out property exam: @image-url("icons/document_ribbon_24_regular.svg"); + out property grade: @image-url("icons/document_percent_24_regular.svg"); + out property credit: @image-url("icons/data_pie_24_regular.svg"); + out property progress: @image-url("icons/book_open_24_regular.svg"); + out property schedule: @image-url("icons/clock_24_regular.svg"); + out property info: @image-url("icons/info_24_regular.svg"); + out property checkmark: @image-url("icons/checkmark_24_regular.svg"); + out property checkmark-small: @image-url("icons/checkmark_16_regular.svg"); + out property check: @image-url("icons/checkmark_circle_24_regular.svg"); + out property circle-filled: @image-url("icons/circle_12_filled.svg"); + out property error: @image-url("icons/error_circle_24_regular.svg"); + out property warning: @image-url("icons/warning_24_regular.svg"); + out property logout: @image-url("icons/sign_out_24_regular.svg"); + out property login: @image-url("icons/person_passkey_24_regular.svg"); + out property update: @image-url("icons/arrow_circle_down_24_regular.svg"); + out property bug: @image-url("icons/bug_24_regular.svg"); + out property palette: @image-url("icons/dark_theme_24_regular.svg"); + out property light-mode: @image-url("icons/weather_sunny_24_regular.svg"); + out property dark-mode: @image-url("icons/weather_moon_24_regular.svg"); + out property auto-brightness: @image-url("icons/brightness_high_24_regular.svg"); + out property notification: @image-url("icons/alert_24_regular.svg"); + out property notification-active: @image-url("icons/alert_on_24_regular.svg"); + out property privacy: @image-url("icons/shield_24_regular.svg"); + out property lock: @image-url("icons/lock_closed_24_regular.svg"); + out property password: @image-url("icons/password_24_regular.svg"); + out property visibility: @image-url("icons/eye_24_regular.svg"); + out property visibility-off: @image-url("icons/eye_off_24_regular.svg"); + out property building: @image-url("icons/building_24_regular.svg"); + out property book: @image-url("icons/book_24_regular.svg"); + out property delete: @image-url("icons/delete_24_regular.svg"); + out property chart: @image-url("icons/data_trending_24_regular.svg"); + out property classroom: @image-url("icons/hat_graduation_24_regular.svg"); + out property school: @image-url("icons/hat_graduation_24_regular.svg"); + out property close: @image-url("icons/dismiss_24_regular.svg"); + out property copy: @image-url("icons/copy_24_regular.svg"); + out property more: @image-url("icons/more_horizontal_24_regular.svg"); + out property open: @image-url("icons/open_24_regular.svg"); + out property empty: @image-url("icons/inprivate_account_24_regular.svg"); + // Tempo UI extension for the reorder keyboard action. + out property chevron-up: @image-url("icons/chevron_up_24_regular.svg"); +} diff --git a/ui/icons/add_24_regular.svg b/ui/icons/add_24_regular.svg new file mode 100644 index 0000000..8679236 --- /dev/null +++ b/ui/icons/add_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/alert_24_regular.svg b/ui/icons/alert_24_regular.svg new file mode 100644 index 0000000..e1bedc0 --- /dev/null +++ b/ui/icons/alert_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/alert_on_24_regular.svg b/ui/icons/alert_on_24_regular.svg new file mode 100644 index 0000000..d5359ff --- /dev/null +++ b/ui/icons/alert_on_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/apps_24_filled.svg b/ui/icons/apps_24_filled.svg new file mode 100644 index 0000000..4761777 --- /dev/null +++ b/ui/icons/apps_24_filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/apps_24_regular.svg b/ui/icons/apps_24_regular.svg new file mode 100644 index 0000000..029660c --- /dev/null +++ b/ui/icons/apps_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/arrow_circle_down_24_regular.svg b/ui/icons/arrow_circle_down_24_regular.svg new file mode 100644 index 0000000..c255a25 --- /dev/null +++ b/ui/icons/arrow_circle_down_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/arrow_sync_24_regular.svg b/ui/icons/arrow_sync_24_regular.svg new file mode 100644 index 0000000..5b0aac9 --- /dev/null +++ b/ui/icons/arrow_sync_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/book_24_regular.svg b/ui/icons/book_24_regular.svg new file mode 100644 index 0000000..583c821 --- /dev/null +++ b/ui/icons/book_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/book_open_24_regular.svg b/ui/icons/book_open_24_regular.svg new file mode 100644 index 0000000..86d08af --- /dev/null +++ b/ui/icons/book_open_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/brightness_high_24_regular.svg b/ui/icons/brightness_high_24_regular.svg new file mode 100644 index 0000000..d4d7383 --- /dev/null +++ b/ui/icons/brightness_high_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/bug_24_regular.svg b/ui/icons/bug_24_regular.svg new file mode 100644 index 0000000..db7f159 --- /dev/null +++ b/ui/icons/bug_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/building_24_regular.svg b/ui/icons/building_24_regular.svg new file mode 100644 index 0000000..0edbe6d --- /dev/null +++ b/ui/icons/building_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/calendar_add_24_regular.svg b/ui/icons/calendar_add_24_regular.svg new file mode 100644 index 0000000..2aebbdb --- /dev/null +++ b/ui/icons/calendar_add_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/calendar_ltr_24_filled.svg b/ui/icons/calendar_ltr_24_filled.svg new file mode 100644 index 0000000..4d83593 --- /dev/null +++ b/ui/icons/calendar_ltr_24_filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/calendar_ltr_24_regular.svg b/ui/icons/calendar_ltr_24_regular.svg new file mode 100644 index 0000000..0d261dd --- /dev/null +++ b/ui/icons/calendar_ltr_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/calendar_today_24_regular.svg b/ui/icons/calendar_today_24_regular.svg new file mode 100644 index 0000000..bfec491 --- /dev/null +++ b/ui/icons/calendar_today_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/checkmark_16_regular.svg b/ui/icons/checkmark_16_regular.svg new file mode 100644 index 0000000..e2e0f72 --- /dev/null +++ b/ui/icons/checkmark_16_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/checkmark_24_regular.svg b/ui/icons/checkmark_24_regular.svg new file mode 100644 index 0000000..2ff21a0 --- /dev/null +++ b/ui/icons/checkmark_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/checkmark_circle_24_regular.svg b/ui/icons/checkmark_circle_24_regular.svg new file mode 100644 index 0000000..be2ecfc --- /dev/null +++ b/ui/icons/checkmark_circle_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/chevron_down_24_regular.svg b/ui/icons/chevron_down_24_regular.svg new file mode 100644 index 0000000..ef885e1 --- /dev/null +++ b/ui/icons/chevron_down_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/chevron_left_24_regular.svg b/ui/icons/chevron_left_24_regular.svg new file mode 100644 index 0000000..8b12d66 --- /dev/null +++ b/ui/icons/chevron_left_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/chevron_right_24_regular.svg b/ui/icons/chevron_right_24_regular.svg new file mode 100644 index 0000000..f1e3c14 --- /dev/null +++ b/ui/icons/chevron_right_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/chevron_up_24_regular.svg b/ui/icons/chevron_up_24_regular.svg new file mode 100644 index 0000000..8c089bc --- /dev/null +++ b/ui/icons/chevron_up_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/circle_12_filled.svg b/ui/icons/circle_12_filled.svg new file mode 100644 index 0000000..561ab5d --- /dev/null +++ b/ui/icons/circle_12_filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/clock_24_regular.svg b/ui/icons/clock_24_regular.svg new file mode 100644 index 0000000..fae71b4 --- /dev/null +++ b/ui/icons/clock_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/copy_24_regular.svg b/ui/icons/copy_24_regular.svg new file mode 100644 index 0000000..d668040 --- /dev/null +++ b/ui/icons/copy_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/dark_theme_24_regular.svg b/ui/icons/dark_theme_24_regular.svg new file mode 100644 index 0000000..7a59a34 --- /dev/null +++ b/ui/icons/dark_theme_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/data_pie_24_regular.svg b/ui/icons/data_pie_24_regular.svg new file mode 100644 index 0000000..6e5df19 --- /dev/null +++ b/ui/icons/data_pie_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/data_trending_24_regular.svg b/ui/icons/data_trending_24_regular.svg new file mode 100644 index 0000000..6ae9018 --- /dev/null +++ b/ui/icons/data_trending_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/delete_24_regular.svg b/ui/icons/delete_24_regular.svg new file mode 100644 index 0000000..1f269f0 --- /dev/null +++ b/ui/icons/delete_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/dismiss_24_regular.svg b/ui/icons/dismiss_24_regular.svg new file mode 100644 index 0000000..1f6f80b --- /dev/null +++ b/ui/icons/dismiss_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/document_percent_24_regular.svg b/ui/icons/document_percent_24_regular.svg new file mode 100644 index 0000000..eba58c8 --- /dev/null +++ b/ui/icons/document_percent_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/document_ribbon_24_regular.svg b/ui/icons/document_ribbon_24_regular.svg new file mode 100644 index 0000000..e97a0d1 --- /dev/null +++ b/ui/icons/document_ribbon_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/error_circle_24_regular.svg b/ui/icons/error_circle_24_regular.svg new file mode 100644 index 0000000..66b0dd9 --- /dev/null +++ b/ui/icons/error_circle_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/eye_24_regular.svg b/ui/icons/eye_24_regular.svg new file mode 100644 index 0000000..9186e15 --- /dev/null +++ b/ui/icons/eye_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/eye_off_24_regular.svg b/ui/icons/eye_off_24_regular.svg new file mode 100644 index 0000000..272abde --- /dev/null +++ b/ui/icons/eye_off_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/filter_24_regular.svg b/ui/icons/filter_24_regular.svg new file mode 100644 index 0000000..f06ce91 --- /dev/null +++ b/ui/icons/filter_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/hat_graduation_24_regular.svg b/ui/icons/hat_graduation_24_regular.svg new file mode 100644 index 0000000..3b1f7af --- /dev/null +++ b/ui/icons/hat_graduation_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/home_24_filled.svg b/ui/icons/home_24_filled.svg new file mode 100644 index 0000000..c307961 --- /dev/null +++ b/ui/icons/home_24_filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/home_24_regular.svg b/ui/icons/home_24_regular.svg new file mode 100644 index 0000000..bd4e145 --- /dev/null +++ b/ui/icons/home_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/info_24_regular.svg b/ui/icons/info_24_regular.svg new file mode 100644 index 0000000..cc859da --- /dev/null +++ b/ui/icons/info_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/inprivate_account_24_regular.svg b/ui/icons/inprivate_account_24_regular.svg new file mode 100644 index 0000000..3349c8c --- /dev/null +++ b/ui/icons/inprivate_account_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/list_24_regular.svg b/ui/icons/list_24_regular.svg new file mode 100644 index 0000000..6c573b0 --- /dev/null +++ b/ui/icons/list_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/location_24_regular.svg b/ui/icons/location_24_regular.svg new file mode 100644 index 0000000..15fbcbb --- /dev/null +++ b/ui/icons/location_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/lock_closed_24_regular.svg b/ui/icons/lock_closed_24_regular.svg new file mode 100644 index 0000000..eaa69f4 --- /dev/null +++ b/ui/icons/lock_closed_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/more_horizontal_24_regular.svg b/ui/icons/more_horizontal_24_regular.svg new file mode 100644 index 0000000..9b1f5c6 --- /dev/null +++ b/ui/icons/more_horizontal_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/open_24_regular.svg b/ui/icons/open_24_regular.svg new file mode 100644 index 0000000..e8474ff --- /dev/null +++ b/ui/icons/open_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/password_24_regular.svg b/ui/icons/password_24_regular.svg new file mode 100644 index 0000000..bdc50b6 --- /dev/null +++ b/ui/icons/password_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/person_24_regular.svg b/ui/icons/person_24_regular.svg new file mode 100644 index 0000000..1b9636a --- /dev/null +++ b/ui/icons/person_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/person_passkey_24_regular.svg b/ui/icons/person_passkey_24_regular.svg new file mode 100644 index 0000000..b26e841 --- /dev/null +++ b/ui/icons/person_passkey_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/save_24_regular.svg b/ui/icons/save_24_regular.svg new file mode 100644 index 0000000..f558f1c --- /dev/null +++ b/ui/icons/save_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/search_24_regular.svg b/ui/icons/search_24_regular.svg new file mode 100644 index 0000000..4382789 --- /dev/null +++ b/ui/icons/search_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/settings_24_filled.svg b/ui/icons/settings_24_filled.svg new file mode 100644 index 0000000..2165693 --- /dev/null +++ b/ui/icons/settings_24_filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/settings_24_regular.svg b/ui/icons/settings_24_regular.svg new file mode 100644 index 0000000..4f8e8bf --- /dev/null +++ b/ui/icons/settings_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/shield_24_regular.svg b/ui/icons/shield_24_regular.svg new file mode 100644 index 0000000..9e1d20e --- /dev/null +++ b/ui/icons/shield_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/sign_out_24_regular.svg b/ui/icons/sign_out_24_regular.svg new file mode 100644 index 0000000..406406a --- /dev/null +++ b/ui/icons/sign_out_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/warning_24_regular.svg b/ui/icons/warning_24_regular.svg new file mode 100644 index 0000000..3d36420 --- /dev/null +++ b/ui/icons/warning_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/weather_moon_24_regular.svg b/ui/icons/weather_moon_24_regular.svg new file mode 100644 index 0000000..4afd77d --- /dev/null +++ b/ui/icons/weather_moon_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/icons/weather_sunny_24_regular.svg b/ui/icons/weather_sunny_24_regular.svg new file mode 100644 index 0000000..d4d7383 --- /dev/null +++ b/ui/icons/weather_sunny_24_regular.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/index.slint b/ui/index.slint new file mode 100644 index 0000000..8c7cdfa --- /dev/null +++ b/ui/index.slint @@ -0,0 +1,10 @@ +export { TempoTheme, TempoTokens, TempoAccent } from "theme.slint"; +export { TempoAction, TempoIcon, TempoButton, TempoButtonVariant, TempoIconButton, TempoIconButtonVariant, TempoTagVariant, TempoSurface, TempoClickableSurface, TempoTag, TempoTextField, TempoSearch, TempoSlider } from "controls.slint"; +export { TempoDestination, TempoNav, TempoNavItem } from "navigation.slint"; +export { TempoDivider, TempoSection, TempoTile, TempoSelectionTile, TempoRadioTile, TempoSegment, TempoSegmentedControl, TempoProgressBar, TempoEmptyState } from "patterns.slint"; +export { TempoIcons } from "icons.slint"; +export { TempoChoice, TempoComboBox, TempoDialog, TempoDialogAction, TempoSheet, TempoToastHost, TempoToastType } from "overlays.slint"; +export { TempoFloatingActionButton, TempoGroupTab, TempoButtonGroupTabBar, TempoRefresh, TempoRefreshState, TempoRefreshText, TempoRefreshLabels } from "auxiliary.slint"; +export { TempoInsets, TempoNavigationContent, TempoAppBar, TempoPageHead, TempoPage, TempoNavigationShell, TempoAdaptiveSplit, TempoDetailPresentation } from "layout.slint"; +export { TempoVirtualList, TempoIndexedStack, TempoStackPage, TempoMenuEntry, TempoMenuButton, TempoReorderItem, TempoReorderList } from "primitives.slint"; +export { TempoMotionSettings, TempoPresence, TempoRouteMotion } from "motion.slint"; diff --git a/ui/layout.slint b/ui/layout.slint new file mode 100644 index 0000000..95873dc --- /dev/null +++ b/ui/layout.slint @@ -0,0 +1,189 @@ +import { ScrollView } from "std-widgets.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; +import { TempoIconButton } from "controls.slint"; +import { TempoIcons } from "icons.slint"; +import { TempoNav, TempoDestination } from "navigation.slint"; + +export struct TempoInsets { left: length, top: length, right: length, bottom: length } + +export component TempoNavigationContent inherits Rectangle { + in property insets; + background: TempoTheme.background; + Rectangle { + x: root.insets.left; y: root.insets.top; + width: max(0px, root.width - root.insets.left - root.insets.right); + height: max(0px, root.height - root.insets.top - root.insets.bottom); + @children + } +} + +export component TempoAppBar inherits Rectangle { + in property title; + in property subtitle; + in property show-back; + in property back-label: "Back"; + callback back(); + height: 58px; + background: TempoTheme.surface; + accessible-role: banner; + HorizontalLayout { + padding-left: root.show-back ? 10px : TempoTokens.page-padding; + padding-right: TempoTokens.gap8; + spacing: TempoTokens.gap8; + cross-axis-alignment: center; + if root.show-back : TempoIconButton { + icon: TempoIcons.chevron-left; label: root.back-label; + activated => { root.back(); } + } + VerticalLayout { + horizontal-stretch: 1; spacing: 2px; + Text { text: root.title; color: TempoTheme.text-primary; font-size: 16px; font-weight: 700; overflow: elide; } + if root.subtitle != "" : Text { text: root.subtitle; color: TempoTheme.text-secondary; font-size: 12px; overflow: elide; } + } + @children + } +} + +export component TempoPageHead inherits HorizontalLayout { + in property title; + in property subtitle; + in property show-navigation; + in property close-instead; + callback navigate(); + spacing: TempoTokens.gap8; cross-axis-alignment: center; + if root.show-navigation : TempoIconButton { + icon: root.close-instead ? TempoIcons.close : TempoIcons.chevron-left; + variant: outline; label: root.close-instead ? "Close" : "Back"; + activated => { root.navigate(); } + } + VerticalLayout { + horizontal-stretch: 1; spacing: TempoTokens.gap4; + Text { text: root.title; color: TempoTheme.text-primary; font-size: 22px; font-weight: 800; overflow: elide; } + if root.subtitle != "" : Text { text: root.subtitle; color: TempoTheme.text-secondary; font-size: 12px; font-weight: 500; overflow: elide; } + } + @children +} + +export component TempoPage inherits Rectangle { + in property insets; + in property content-padding-left: TempoTokens.page-padding; + in property content-padding-right: TempoTokens.page-padding; + in property content-padding-top: TempoTokens.gap12; + in property content-padding-bottom: TempoTokens.gap24; + in property bottom-padding: TempoTokens.gap24; + in property spacing; + in-out property scroll-y <=> scroller.content-y; + TempoNavigationContent { + insets: root.insets; + scroller := ScrollView { + content-width: self.visible-width; + content-height: body.preferred-height; + body := VerticalLayout { + padding-left: root.content-padding-left; padding-right: root.content-padding-right; + padding-top: root.content-padding-top; padding-bottom: root.content-padding-bottom + root.bottom-padding; + spacing: root.spacing; + @children + } + } + } +} + +export component TempoNavigationShell inherits Rectangle { + in property <[TempoDestination]> destinations; + in-out property selected; + in property insets; + in property auto-extend: true; + in property show-bottom-bar: true; + out property compact: root.width < TempoTokens.rail-breakpoint; + out property extended: root.auto-extend && root.width >= TempoTokens.extended-rail-breakpoint; + callback selected-index(int); + background: TempoTheme.background; + VerticalLayout { + x: 0px; y: 0px; width: root.width; height: root.height; + HorizontalLayout { + vertical-stretch: 1; + if !root.compact : Rectangle { + width: (root.extended ? TempoTokens.desktop-nav-rail-extended-width : TempoTokens.desktop-nav-rail-width) + root.insets.left; + background: TempoTheme.surface; + Rectangle { x: parent.width - 1px; width: 1px; background: TempoTheme.border; } + VerticalLayout { + padding-left: root.insets.left + 10px; padding-right: 10px; + padding-top: root.insets.top + 16px; padding-bottom: root.insets.bottom + 4px; + TempoNav { + destinations: root.destinations; selected: root.selected; extended: root.extended; + selected-index(i) => { root.selected = i; root.selected-index(i); } + } + Rectangle { vertical-stretch: 1; } + } + } + TempoNavigationContent { + horizontal-stretch: 1; + insets: { + left: root.compact ? root.insets.left : 0px, + right: root.insets.right, + top: root.insets.top, + bottom: root.compact && root.show-bottom-bar ? 0px : root.insets.bottom, + }; + @children + } + } + if root.compact && root.show-bottom-bar : Rectangle { + height: TempoTokens.bottom-tab-height + root.insets.bottom; + background: TempoTheme.surface; + Rectangle { y: 0px; height: 1px; background: TempoTheme.border; } + TempoNav { + x: root.insets.left; y: 0px; + width: parent.width - root.insets.left - root.insets.right; + height: TempoTokens.bottom-tab-height; + destinations: root.destinations; selected: root.selected; bottom: true; + selected-index(i) => { root.selected = i; root.selected-index(i); } + } + } + } +} + +export enum TempoDetailPresentation { auto, page, sheet, dialog } + +export component TempoAdaptiveSplit inherits Rectangle { + in property split-enabled: true; + in property supplementary-enabled; + in property detail-open; + in property compact-presentation: auto; + in property split-width: 900px; + in property split-min-height: 600px; + in property split-min-aspect: 1.2; + in property preferred-master: 420px; + in property minimum-detail: 560px; + in property preferred-supplementary: 420px; + in property minimum-supplementary: 420px; + out property split: root.split-enabled && root.width >= root.split-width + && root.height >= root.split-min-height && root.width >= root.height * root.split-min-aspect; + out property three-pane: root.split && root.supplementary-enabled + && root.width >= root.preferred-master + root.minimum-detail + root.minimum-supplementary + 2px; + out property show-master: root.split || !root.detail-open || root.compact-presentation == sheet || root.compact-presentation == dialog; + out property show-detail: root.split || root.detail-open; + out property show-compact-overlay: !root.split && root.detail-open + && (root.compact-presentation == sheet || root.compact-presentation == dialog); + out property master-width: root.split ? min(root.preferred-master, max(0px, root.width - root.minimum-detail - 1px)) : root.width; + out property detail-width: root.split ? (root.three-pane + ? min(max(root.minimum-detail, root.preferred-supplementary), root.width - root.master-width - root.minimum-supplementary - 2px) + : max(0px, root.width - root.master-width - 1px)) + : root.compact-presentation == dialog ? min(480px, root.width - 32px) : root.width; + out property detail-x: root.split ? root.master-width + 1px : (root.width - root.detail-width) / 2; + out property detail-height: !root.split && root.compact-presentation == sheet ? min(480px, root.height * 0.8) + : !root.split && root.compact-presentation == dialog ? min(420px, root.height - 32px) : root.height; + out property detail-y: !root.split && root.compact-presentation == sheet ? root.height - root.detail-height + : (root.height - root.detail-height) / 2; + out property supplementary-x: root.detail-x + root.detail-width + 1px; + out property supplementary-width: max(0px, root.width - root.supplementary-x); + callback dismiss-detail(); + public function back() -> bool { + if root.detail-open { root.dismiss-detail(); return true; } + return false; + } + background: TempoTheme.background; + clip: true; + if root.split : Rectangle { x: root.master-width; width: 1px; background: TempoTheme.border; } + if root.three-pane : Rectangle { x: root.supplementary-x - 1px; width: 1px; background: TempoTheme.border; } + @children +} diff --git a/ui/motion.slint b/ui/motion.slint new file mode 100644 index 0000000..dab5022 --- /dev/null +++ b/ui/motion.slint @@ -0,0 +1,57 @@ +import { TempoTokens } from "theme.slint"; + +export global TempoMotionSettings { + // Slint also respects the native reduced-motion setting on supported backends. + in-out property reduced: false; +} + +export component TempoPresence inherits Rectangle { + in property active; + in property enter-time: TempoTokens.normal; + in property exit-time: TempoTokens.fast; + out property progress: root.active ? 1.0 : 0.0; + out property present: root.active || root.progress > 0.0; + callback exited(); + animate progress { + enabled: !TempoMotionSettings.reduced; + duration: root.active ? root.enter-time : root.exit-time; + easing: cubic-bezier(0.215, 0.61, 0.355, 1.0); + } + changed present => { if !root.present { root.exited(); } } +} + +// A changed destination gets a fresh, bounded enter transition, without keeping +// an animation tick alive while the page is idle. The host owns the route stack. +export component TempoRouteMotion inherits Rectangle { + in property route-key; + in property direction: 1; + in property enabled: true; + in property travel: 22px; + private property moving: false; + private property enter-direction: 1; + out property progress: root.moving ? 0.0 : 1.0; + animate progress { + enabled: !root.moving && root.enabled && !TempoMotionSettings.reduced; + duration: 240ms; + easing: cubic-bezier(0.2, 0.65, 0.3, 1.0); + } + changed route-key => { + if root.enabled && !TempoMotionSettings.reduced { + root.enter-direction = root.direction; + root.moving = true; + kickoff.running = true; + } + } + kickoff := Timer { + interval: 16ms; + running: false; + triggered => { self.running = false; root.moving = false; } + } + clip: true; + Rectangle { + x: (1.0 - root.progress) * root.travel * root.enter-direction; + width: root.width; height: root.height; + opacity: 0.7 + 0.3 * root.progress; + @children + } +} diff --git a/ui/navigation.slint b/ui/navigation.slint new file mode 100644 index 0000000..730e8c4 --- /dev/null +++ b/ui/navigation.slint @@ -0,0 +1,138 @@ +import { TempoMotionSettings } from "motion.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; +import { TempoAction, TempoIcon } from "controls.slint"; + +export struct TempoDestination { label: string, icon: image, selected-icon: image, tooltip: string, badge: bool } + +component TempoNavIcon inherits Rectangle { + in property icon; + in property ink; + in property badge; + in property size: 22px; + width: 38px; + height: 30px; + TempoIcon { source: root.icon; tint: root.ink; width: root.size; height: root.size; } + if root.badge : Rectangle { + x: (root.width + root.size) / 2 - 7px; + y: (root.height - root.size) / 2; + width: 7px; height: 7px; + border-radius: TempoTokens.radius-full; + background: TempoTheme.danger; + } +} + +export component TempoNavItem inherits TempoAction { + in property icon; + in property selected-icon; + in property tooltip; + in property badge; + in property active; + in property bottom; + in property extended; + private property visible-icon: root.active && root.selected-icon.width > 0 ? root.selected-icon : root.icon; + private property ink: root.active ? TempoTheme.primary : TempoTheme.text-tertiary; + accessible-role: tab; + accessible-item-selectable: true; + accessible-item-selected: root.active; + border-radius: TempoTokens.radius-lg; + height: root.bottom ? TempoTokens.bottom-tab-height : root.extended ? 46px : 62px; + background: root.bottom ? transparent + : root.pressed ? TempoTheme.surface-pressed + : root.active && root.hovered ? TempoTheme.primary-subtle + : root.active ? TempoTheme.primary-soft + : root.hovered ? TempoTheme.surface-alt : transparent; + animate background { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + + if root.bottom : VerticalLayout { + alignment: center; + HorizontalLayout { + alignment: center; + Rectangle { + width: root.active ? 26px : 0px; + height: 3px; + border-radius: TempoTokens.radius-full; + background: TempoTheme.primary; + animate width { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; easing: ease-out; } + } + } + Rectangle { height: 8px; } + HorizontalLayout { + alignment: center; + TempoIcon { source: root.visible-icon; tint: root.ink; width: 22px; height: 22px; } + } + Rectangle { height: 4px; } + Text { + text: root.label; color: root.ink; font-size: 10px; + font-weight: root.active ? 700 : 500; + horizontal-alignment: center; overflow: elide; + } + } + if !root.bottom : HorizontalLayout { + padding-right: root.extended ? 12px : 6px; + cross-axis-alignment: center; + Rectangle { + width: 6px; height: 28px; + Rectangle { + width: 3px; height: root.active ? 28px : 0px; + border-radius: TempoTokens.radius-full; + background: TempoTheme.primary; + animate height { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; easing: ease-out; } + } + } + if root.extended : HorizontalLayout { + horizontal-stretch: 1; + padding-left: 6px; spacing: 10px; + cross-axis-alignment: center; + TempoNavIcon { icon: root.visible-icon; ink: root.ink; badge: root.badge; } + Text { + text: root.label; color: root.ink; font-size: 13px; + font-weight: root.active ? 700 : 600; overflow: elide; + horizontal-stretch: 1; + } + } + if !root.extended : VerticalLayout { + horizontal-stretch: 1; spacing: 2px; + alignment: center; cross-axis-alignment: center; + TempoNavIcon { icon: root.visible-icon; ink: root.ink; badge: root.badge; } + Text { + text: root.label; color: root.ink; font-size: 10px; + font-weight: root.active ? 600 : 500; overflow: elide; + } + } + } + if !root.bottom && !root.extended : Tooltip { Text { text: root.tooltip == "" ? root.label : root.tooltip; } } +} + +export component TempoNav inherits Rectangle { + in property <[TempoDestination]> destinations; + in property selected; + in property bottom; + in property extended; + callback selected-index(int); + accessible-role: navigation; + accessible-label: "Main navigation"; + if root.bottom : HorizontalLayout { + for destination[index] in root.destinations : TempoNavItem { + horizontal-stretch: 1; + label: destination.label; + icon: destination.icon; + selected-icon: destination.selected-icon; + active: index == root.selected; + bottom: true; + activated => { root.selected-index(index); } + } + } + if !root.bottom : VerticalLayout { + spacing: 6px; + for destination[index] in root.destinations : TempoNavItem { + label: destination.label; + icon: destination.icon; + selected-icon: destination.selected-icon; + tooltip: destination.tooltip; + badge: destination.badge; + active: index == root.selected; + extended: root.extended; + activated => { root.selected-index(index); } + } + } +} diff --git a/ui/overlays.slint b/ui/overlays.slint new file mode 100644 index 0000000..f849eee --- /dev/null +++ b/ui/overlays.slint @@ -0,0 +1,331 @@ +import { ScrollView } from "std-widgets.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; +import { TempoAction, TempoButton, TempoButtonVariant, TempoIcon, TempoIconButton, TempoSurface } from "controls.slint"; +import { TempoDivider } from "patterns.slint"; +import { TempoPresence } from "motion.slint"; +import { TempoIcons } from "icons.slint"; + +export struct TempoChoice { label: string, enabled: bool } + +export component TempoComboBox inherits VerticalLayout { + in property label; + in property placeholder: "Select…"; + in property <[TempoChoice]> items; + in-out property selected: -1; + in property enabled: true; + in property sheet-width; + in property sheet-height; + in property sheet-origin; + in property bottom-inset; + callback selected-index(int); + out property opened: popup.is-open; + private property highlighted: -1; + in property use-bottom-sheet: root.sheet-width > 0px && root.sheet-width < TempoTokens.rail-breakpoint; + out property is-bottom-sheet: root.use-bottom-sheet && root.sheet-width > 0px && root.sheet-height > 0px; + private property popup-gap: TempoTokens.gap4; + private property space-above: max(0px, trigger.absolute-position.y - root.sheet-origin.y - root.popup-gap); + private property space-below: max(0px, root.sheet-origin.y + root.sheet-height - root.bottom-inset + - trigger.absolute-position.y - trigger.height - root.popup-gap); + private property dropdown-height: min(264px, root.items.length * 42px + 8px); + out property opens-above: !root.is-bottom-sheet && root.sheet-height > 0px + && root.space-below < root.dropdown-height && root.space-above > root.space-below; + private property panel-height: root.is-bottom-sheet + ? min(root.sheet-height * 0.5, root.items.length * 42px + 28px + root.bottom-inset) + : root.sheet-height > 0px + ? min(root.dropdown-height, max(1px, root.opens-above ? root.space-above : root.space-below)) + : root.dropdown-height; + private property valid: root.selected >= 0 && root.selected < root.items.length; + spacing: TempoTokens.gap6; + public function open() { + if root.enabled && root.items.length > 0 { + root.highlighted = root.valid ? root.selected : 0; + popup.show(); + } + } + public function close() { popup.close(); } + function move(delta: int) { + if root.items.length > 0 { root.highlighted = clamp(root.highlighted + delta, 0, root.items.length - 1); } + } + function choose(index: int) { + if index >= 0 && index < root.items.length && root.items[index].enabled { + root.selected = index; + popup.close(); + root.selected-index(index); + } + } + + if root.label != "" : Text { + text: root.label; color: TempoTheme.text-secondary; font-size: 12px; font-weight: 600; + } + trigger := TempoAction { + label: root.label != "" ? root.label : root.placeholder; + enabled: root.enabled; + accessible-role: combobox; + accessible-expandable: true; + accessible-expanded: popup.is-open; + accessible-action-expand => { root.open(); } + accessible-value: root.valid ? root.items[root.selected].label : ""; + height: TempoTokens.input-height; + background: TempoTheme.surface; + border-radius: TempoTokens.radius-md; + border-width: 1px; + border-color: TempoTheme.border; + activated => { if popup.is-open { root.close(); } else { root.open(); } } + HorizontalLayout { + padding-left: 12px; padding-right: 12px; spacing: 8px; + cross-axis-alignment: center; + Text { + text: root.valid ? root.items[root.selected].label : root.placeholder; + horizontal-stretch: 1; font-size: 14px; overflow: elide; + color: !root.enabled ? TempoTheme.text-disabled : root.valid ? TempoTheme.text-primary : TempoTheme.text-tertiary; + } + TempoIcon { source: TempoIcons.chevron-down; width: 18px; height: 18px; } + } + } + entry-motion := TempoPresence { active: popup.is-open; enter-time: root.is-bottom-sheet ? 240ms : 120ms; } + popup := PopupWindow { + x: root.is-bottom-sheet ? root.sheet-origin.x - root.absolute-position.x : 0px; + y: root.is-bottom-sheet ? root.sheet-origin.y - root.absolute-position.y + : trigger.y + (root.opens-above ? -root.panel-height - root.popup-gap : trigger.height + root.popup-gap); + width: root.is-bottom-sheet ? root.sheet-width : root.width; + height: root.is-bottom-sheet ? root.sheet-height : root.panel-height; + close-policy: close-on-click-outside; + forward-focus: popup-keys; + popup-keys := FocusScope { + key-pressed(event) => { + if event.text == Key.DownArrow { root.move(1); return accept; } + if event.text == Key.UpArrow { root.move(-1); return accept; } + if event.text == Key.Return || event.text == Key.Space { root.choose(root.highlighted); return accept; } + if event.text == Key.Escape { root.close(); return accept; } + return reject; + } + if root.is-bottom-sheet : Rectangle { + background: #000.with-alpha(0.47 * entry-motion.progress); + TouchArea { clicked => { root.close(); } } + } + TempoSurface { + width: parent.width; + height: root.panel-height; + x: 0px; + y: parent.height - root.panel-height + (root.is-bottom-sheet ? (1 - entry-motion.progress) * root.panel-height : 0px); + opacity: root.is-bottom-sheet ? 1 : entry-motion.progress; + border-radius: root.is-bottom-sheet ? TempoTokens.radius-xl : TempoTokens.radius-lg; + clip: true; + TouchArea {} + if root.is-bottom-sheet : Rectangle { + y: 8px; + width: 36px; height: 4px; + border-radius: 2px; background: TempoTheme.border-strong; + } + ScrollView { + x: 4px; y: root.is-bottom-sheet ? 24px : 4px; + width: parent.width - 8px; + height: parent.height - self.y - 4px - (root.is-bottom-sheet ? root.bottom-inset : 0px); + content-width: self.visible-width; + content-height: list.preferred-height; + list := VerticalLayout { + for item[i] in root.items : TempoAction { + private property highlighted: i == root.highlighted; + changed highlighted => { if self.highlighted { self.ensure-visible(instant); } } + label: item.label; enabled: item.enabled; + height: 42px; border-radius: TempoTokens.radius-sm; + background: i == root.selected || i == root.highlighted ? TempoTheme.primary-soft + : self.hovered && item.enabled ? TempoTheme.surface-alt : transparent; + Text { + x: 12px; width: parent.width - 24px; height: parent.height; + vertical-alignment: center; overflow: elide; text: item.label; font-size: 14px; + color: !item.enabled ? TempoTheme.text-disabled : i == root.selected ? TempoTheme.primary : TempoTheme.text-primary; + } + activated => { root.choose(i); } + } + } + } + } + } + } +} + +export struct TempoDialogAction { label: string, icon: image, variant: TempoButtonVariant, enabled: bool, close-on-click: bool } +export component TempoDialog inherits Rectangle { + in property title; + in property subtitle; + in property icon; + in property confirm-label: "Confirm"; + in property cancel-label: "Cancel"; + in property destructive; + in property dismiss-on-backdrop: true; + in property panel-width: 520px; + in property bottom-sheet; + in property bottom-inset; + in property <[TempoDialogAction]> actions; + private property has-actions: root.actions.length > 0 || root.confirm-label != "" || root.cancel-label != ""; + out property opened: false; + out property presented: modal.is-open; + out property motion-progress: presence.progress; + callback action-selected(int); + callback confirmed(); + callback cancelled(); + callback dismissed(); + public function show() { + if !modal.is-open { modal.show(); } + root.opened = true; + } + public function close() { + if root.opened { + root.opened = false; + if !presence.present { modal.close(); } + } + } + changed presented => { + if !root.presented { + root.opened = false; + root.dismissed(); + } + } + presence := TempoPresence { + active: root.opened; + enter-time: root.bottom-sheet ? 240ms : 180ms; + exit-time: root.bottom-sheet ? 180ms : 120ms; + exited => { if !root.opened { modal.close(); } } + } + + modal := PopupWindow { + x: 0px; y: 0px; width: root.width; height: root.height; + close-policy: no-auto-close; + forward-focus: keys; + keys := FocusScope { + key-pressed(e) => { + if e.text == Key.Escape || e.text == Key.Back { + root.close(); return accept; + } + return reject; + } + Rectangle { background: #0007.with-alpha(0.47 * presence.progress); } + TouchArea { clicked => { if root.dismiss-on-backdrop { root.close(); } } } + TempoSurface { + opacity: root.bottom-sheet ? 1 : presence.progress; + width: min(root.panel-width, max(0px, root.width - 32px)); + x: (root.width - self.width) / 2; + height: min(root.height - 32px, panel.preferred-height); + y: root.bottom-sheet + ? root.height - (self.height + 12px + root.bottom-inset) * presence.progress + : (root.height - self.height) / 2 + 18px * (1.0 - presence.progress); + clip: true; + accessible-role: groupbox; accessible-label: root.title; + // Intercept backdrop presses below the panel without blocking its controls. + TouchArea {} + panel := VerticalLayout { + HorizontalLayout { + padding: 16px; spacing: 10px; cross-axis-alignment: center; + if root.icon.width > 0 : Rectangle { + width: 36px; height: 36px; background: TempoTheme.primary-soft; + border-radius: TempoTokens.radius-sm; + TempoIcon { source: root.icon; tint: TempoTheme.primary; width: 20px; height: 20px; } + } + VerticalLayout { + horizontal-stretch: 1; spacing: 4px; + Text { text: root.title; color: TempoTheme.text-primary; font-size: 16px; font-weight: 700; wrap: word-wrap; } + if root.subtitle != "" : Text { text: root.subtitle; color: TempoTheme.text-secondary; font-size: 12px; wrap: word-wrap; } + } + } + TempoDivider {} + ScrollView { + vertical-stretch: 1; + preferred-height: min(240px, inner.preferred-height); + content-width: self.visible-width; + content-height: inner.preferred-height; + inner := VerticalLayout { padding: 16px; @children } + } + if root.has-actions : TempoDivider {} + if root.has-actions : FlexboxLayout { + alignment: end; padding: 12px; spacing: 8px; + for action[i] in root.actions : TempoButton { + label: action.label; icon: action.icon; variant: action.variant; compact: true; + enabled: root.opened && action.enabled; + activated => { if action.close-on-click { root.close(); } root.action-selected(i); } + } + if root.actions.length == 0 && root.cancel-label != "" : TempoButton { + enabled: root.opened; label: root.cancel-label; variant: ghost; compact: true; + activated => { root.close(); root.cancelled(); } + } + if root.actions.length == 0 && root.confirm-label != "" : TempoButton { + enabled: root.opened; label: root.confirm-label; variant: root.destructive ? danger : primary; compact: true; + activated => { root.close(); root.confirmed(); } + } + } + } + } + } + } +} + +export component TempoSheet inherits TempoDialog { + bottom-sheet: true; + confirm-label: ""; + cancel-label: ""; +} + +export enum TempoToastType { info, success, warning, error } + +export component TempoToastHost inherits Rectangle { + in property bottom-inset: 0px; + in property left-inset: 0px; + in property right-inset: 0px; + out property presented: presence.present; + out property motion-progress: presence.progress; + out property showing: false; + private property headline; + private property message; + private property kind: info; + private property ink: root.kind == error ? TempoTheme.danger : root.kind == warning ? TempoTheme.warning + : root.kind == success ? TempoTheme.success : TempoTheme.info; + private property soft: root.kind == error ? TempoTheme.danger-soft : root.kind == warning ? TempoTheme.warning-soft + : root.kind == success ? TempoTheme.success-soft : TempoTheme.info-soft; + public function show(title: string, message: string, kind: TempoToastType, timeout: duration) { + expiry.running = false; + root.headline = title; + root.message = message; + root.kind = kind; + root.showing = true; + expiry.interval = max(1ms, timeout); + expiry.running = true; + } + public function dismiss() { + expiry.running = false; + root.showing = false; + } + expiry := Timer { running: false; interval: 2s; triggered => { root.dismiss(); } } + presence := TempoPresence { active: root.showing; } + if presence.present : TempoSurface { + width: max(0px, min(520px, body.preferred-width, root.width - 32px - root.left-inset - root.right-inset)); + x: root.left-inset + (parent.width - self.width - root.left-inset - root.right-inset) / 2; + y: root.height - root.bottom-inset - self.height - 76px + (1.0 - presence.progress) * 26px; + height: 44px; + border-radius: TempoTokens.radius-full; + drop-shadow-blur: 18px; drop-shadow-offset-y: 8px; + drop-shadow-color: TempoTheme.dark ? #0005 : #0002; + opacity: presence.progress; + accessible-role: region; accessible-live-region: polite; + accessible-label: root.headline + " " + root.message; + body := HorizontalLayout { + padding-left: 10px; padding-right: 8px; spacing: 8px; cross-axis-alignment: center; + Rectangle { + width: 28px; height: 28px; border-radius: TempoTokens.radius-full; background: root.soft; + TempoIcon { + source: root.kind == error ? TempoIcons.error : root.kind == warning ? TempoIcons.warning + : root.kind == success ? TempoIcons.check : TempoIcons.info; + tint: root.ink; width: 17px; height: 17px; + } + } + Text { + horizontal-stretch: 1; + text: root.headline != "" ? root.headline + " " + root.message : root.message; + color: TempoTheme.text-primary; font-size: 12px; font-weight: 700; overflow: elide; + } + TempoIconButton { + enabled: root.showing; size: 24px; icon-size: 16px; label: "Dismiss toast"; icon: TempoIcons.close; + activated => { root.dismiss(); } + } + } + } +} diff --git a/ui/patterns.slint b/ui/patterns.slint new file mode 100644 index 0000000..3b9e326 --- /dev/null +++ b/ui/patterns.slint @@ -0,0 +1,181 @@ +import { TempoMotionSettings } from "motion.slint"; +import { ProgressIndicator } from "std-widgets.slint"; +import { TempoIcons } from "icons.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; +import { TempoAction, TempoButton, TempoIcon, TempoSurface } from "controls.slint"; + +export component TempoDivider inherits Rectangle { + height: TempoTokens.border-width; + background: TempoTheme.border; +} + +export component TempoSection inherits VerticalLayout { + in property title; + spacing: TempoTokens.gap8; + if root.title != "" : Text { + text: root.title; + color: TempoTheme.text-secondary; + font-size: 13px; + font-weight: 700; + } + TempoSurface { + clip: true; + VerticalLayout { @children } + } +} + +export component TempoTile inherits TempoAction { + in property subtitle; + in property icon; + in property trailing-icon; + min-height: TempoTokens.tile-min-height; + // The enclosing section clips row highlights to its own corners. + background: root.enabled && root.hovered ? TempoTheme.surface-alt : transparent; + HorizontalLayout { + padding-top: 10px; padding-bottom: 10px; + padding-left: 14px; padding-right: 14px; + cross-axis-alignment: center; + spacing: 12px; + if root.icon.width > 0 : Rectangle { + width: 36px; height: 36px; + border-radius: TempoTokens.radius-sm; + background: TempoTheme.primary-soft; + TempoIcon { source: root.icon; tint: TempoTheme.primary; width: 20px; height: 20px; } + } + VerticalLayout { + horizontal-stretch: 1; + spacing: 2px; + Text { text: root.label; font-size: 14px; font-weight: 600; color: root.enabled ? TempoTheme.text-primary : TempoTheme.text-disabled; overflow: elide; } + if root.subtitle != "" : Text { + text: root.subtitle; color: root.enabled ? TempoTheme.text-tertiary : TempoTheme.text-disabled; + font-size: 12px; overflow: elide; + } + } + if root.trailing-icon.width > 0 : TempoIcon { + source: root.trailing-icon; tint: TempoTheme.text-tertiary; + width: 20px; height: 20px; + } + @children + } +} + +export component TempoSelectionTile inherits TempoAction { + in-out property checked; + in property subtitle; + in property check-icon: TempoIcons.checkmark-small; + in property radio-style: false; + accessible-role: checkbox; + accessible-checked: root.checked; + min-height: TempoTokens.tile-min-height; + // The enclosing section clips row highlights to its own corners. + background: root.enabled && root.hovered ? TempoTheme.surface-alt : transparent; + activated => { root.checked = !root.checked; } + HorizontalLayout { + padding-top: 10px; padding-bottom: 10px; + padding-left: 14px; padding-right: 14px; + cross-axis-alignment: center; + spacing: TempoTokens.gap10; + Rectangle { + width: 20px; height: 20px; + border-radius: root.radio-style ? TempoTokens.radius-full : TempoTokens.radius-xs; + border-width: TempoTokens.border-width; + border-color: root.checked ? TempoTheme.primary : TempoTheme.border-strong; + background: root.checked ? TempoTheme.primary : TempoTheme.surface; + animate background { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + if root.checked : TempoIcon { + source: root.radio-style ? TempoIcons.circle-filled : root.check-icon; tint: TempoTheme.text-inverse; + width: root.radio-style ? 8px : 15px; height: self.width; + } + } + VerticalLayout { + horizontal-stretch: 1; + spacing: 2px; + Text { text: root.label; font-size: 14px; font-weight: 600; color: root.enabled ? TempoTheme.text-primary : TempoTheme.text-disabled; overflow: elide; } + if root.subtitle != "" : Text { + text: root.subtitle; font-size: 12px; color: TempoTheme.text-secondary; overflow: elide; + } + } + } +} + +export component TempoRadioTile inherits TempoSelectionTile { + radio-style: true; + accessible-role: radio-button; + activated => { root.checked = true; } +} + +export struct TempoSegment { label: string, icon: image } + +export component TempoSegmentedControl inherits HorizontalLayout { + in property <[TempoSegment]> items; + in property selected; + callback selected-index(int); + spacing: TempoTokens.gap6; + for item[index] in root.items : segment := TempoAction { + private property active: index == root.selected; + private property ink: active ? TempoTheme.primary : TempoTheme.text-secondary; + horizontal-stretch: 1; + label: item.label; + border-radius: TempoTokens.radius-sm; + border-width: TempoTokens.border-width; + border-color: active ? TempoTheme.primary.with-alpha(0.45) : TempoTheme.border; + background: active ? TempoTheme.primary-soft : TempoTheme.surface; + animate background, border-color { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + activated => { root.selected-index(index); } + VerticalLayout { + padding-top: 8px; padding-bottom: 8px; + spacing: TempoTokens.gap4; + if item.icon.width > 0 : HorizontalLayout { + alignment: center; + TempoIcon { source: item.icon; tint: segment.ink; width: 18px; height: 18px; } + } + Text { + text: item.label; color: segment.ink; + font-size: item.icon.width > 0 ? 11px : 13px; + font-weight: segment.active ? 600 : 400; + horizontal-alignment: center; + } + } + } +} + +export component TempoProgressBar inherits Rectangle { + in property value; + in property indeterminate; + height: 6px; + border-radius: TempoTokens.radius-full; + background: TempoTheme.surface-alt; + accessible-role: progress-indicator; + accessible-value: root.indeterminate ? "" : round(clamp(root.value, 0, 1) * 100) + "%"; + if root.indeterminate : ProgressIndicator { indeterminate: true; height: root.height; } + if !root.indeterminate : Rectangle { + x: 0px; + width: parent.width * clamp(root.value, 0, 1); + border-radius: TempoTokens.radius-full; + background: TempoTheme.primary; + } +} + +export component TempoEmptyState inherits VerticalLayout { + in property icon: TempoIcons.empty; + in property title; + in property message; + in property action-label; + callback action(); + padding-left: 32px; padding-right: 32px; + padding-top: 24px; padding-bottom: 24px; + spacing: TempoTokens.gap6; + if root.icon.width > 0 : HorizontalLayout { + alignment: center; + TempoIcon { source: root.icon; tint: TempoTheme.text-tertiary; width: 48px; height: 48px; } + } + Text { text: root.title; color: TempoTheme.text-primary; font-size: 16px; font-weight: 600; horizontal-alignment: center; } + if root.message != "" : Text { + text: root.message; color: TempoTheme.text-secondary; font-size: 13px; wrap: word-wrap; horizontal-alignment: center; + } + if root.action-label != "" : HorizontalLayout { + alignment: center; + padding-top: 10px; + TempoButton { label: root.action-label; variant: secondary; activated => { root.action(); } } + } +} diff --git a/ui/primitives.slint b/ui/primitives.slint new file mode 100644 index 0000000..bdcc895 --- /dev/null +++ b/ui/primitives.slint @@ -0,0 +1,200 @@ +import { TempoMotionSettings, TempoPresence } from "motion.slint"; +import { ListView, ScrollView } from "std-widgets.slint"; +import { TempoAction, TempoIcon, TempoIconButton, TempoSurface } from "controls.slint"; +import { TempoIcons } from "icons.slint"; +import { TempoTheme, TempoTokens } from "theme.slint"; + +// Use the native ListView type directly. Inheriting it in another component +// hides the model repeater from Slint's virtualization pass. +export { ListView as TempoVirtualList } from "std-widgets.slint"; + +export component TempoStackPage inherits FocusScope { + in property index; + in property selected-index; + in property active: root.index == root.selected-index; + visible: root.active; + enabled: root.active; + @children +} + +export component TempoIndexedStack inherits Rectangle { + in-out property current-index; + clip: true; + @children +} + +export struct TempoMenuEntry { label: string, icon: image, enabled: bool } +export component TempoMenuButton inherits TempoAction { + in property <[TempoMenuEntry]> items; + in property icon: TempoIcons.more; + in property menu-width: 208px; + out property opened: popup.is-open; + callback chosen(int); + private property highlighted; + width: 36px; + height: 36px; + label: "Actions"; + border-radius: TempoTokens.radius-sm; + background: root.opened || root.hovered ? TempoTheme.surface-pressed : transparent; + animate background { enabled: !TempoMotionSettings.reduced; duration: TempoTokens.fast; } + accessible-expandable: true; + accessible-expanded: root.opened; + accessible-action-expand => { root.open(); } + activated => { if root.opened { popup.close(); } else { root.open(); } } + public function open() { if root.enabled && root.items.length > 0 { root.highlighted = 0; popup.show(); } } + function choose(i: int) { + if i >= 0 && i < root.items.length && root.items[i].enabled { + popup.close(); root.chosen(i); + } + } + TempoIcon { source: root.icon; width: 20px; height: 20px; } + appearance := TempoPresence { active: popup.is-open; enter-time: TempoTokens.fast; } + popup := PopupWindow { + x: root.width - root.menu-width; + y: root.height + 4px; + width: root.menu-width; + height: min(260px, root.items.length * 36px + 8px); + close-policy: close-on-click-outside; + forward-focus: hotkeys; + hotkeys := FocusScope { + key-pressed(e) => { + if e.text == Key.DownArrow { root.highlighted = min(root.items.length - 1, root.highlighted + 1); return accept; } + if e.text == Key.UpArrow { root.highlighted = max(0, root.highlighted - 1); return accept; } + if e.text == Key.Return || e.text == Key.Space { root.choose(root.highlighted); return accept; } + if e.text == Key.Escape { popup.close(); return accept; } + return reject; + } + TempoSurface { + clip: true; + opacity: appearance.progress; + ScrollView { + x: 4px; y: 4px; width: parent.width - 8px; height: parent.height - 8px; + content-width: self.visible-width; + content-height: root.items.length * 36px; + VerticalLayout { + for item[i] in root.items : TempoAction { + in property active: i == root.highlighted; + changed active => { if self.active { self.ensure-visible(instant); } } + height: 36px; + label: item.label; + enabled: item.enabled; + border-radius: TempoTokens.radius-lg - TempoTokens.gap4; + background: item.enabled && (self.active || self.hovered) ? TempoTheme.primary-soft : transparent; + activated => { root.choose(i); } + HorizontalLayout { + padding-left: 10px; padding-right: 10px; + spacing: 8px; cross-axis-alignment: center; + if item.icon.width > 0 : TempoIcon { source: item.icon; width: 18px; height: 18px; } + Text { + text: item.label; + color: item.enabled ? TempoTheme.text-primary : TempoTheme.text-disabled; + font-size: 13px; horizontal-stretch: 1; overflow: elide; + } + } + } + } + } + } + } + } +} + +export struct TempoReorderItem { label: string, subtitle: string } +export component TempoReorderList inherits Rectangle { + in property <[TempoReorderItem]> items; + in property enabled: true; + in property row-height: 52px; + out property dragging-from: -1; + out property drag-target: -1; + callback reordered(int, int); + callback activated(int); + private property grip-width: 30px; + private property edge: min(30px, root.height / 4); + private property max-scroll: max(0px, root.items.length * root.row-height - root.height); + public function move-row(from: int, to: int) { + if root.enabled && from != to && from >= 0 && to >= 0 && from < root.items.length && to < root.items.length { + root.reordered(from, to); + } + } + public function reveal(row: int) { rows.ensure-row-visible(row, instant); } + function row-at(y: length) -> int { + return root.items.length == 0 ? -1 + : clamp(floor((y - rows.content-y) / max(root.row-height, 1px)), 0, root.items.length - 1); + } + function finish() { + let from = root.dragging-from; + let target = root.drag-target; + root.dragging-from = -1; + root.drag-target = -1; + root.move-row(from, target); + } + clip: true; + rows := ListView { + horizontal-scrollbar-policy: always-off; + x: 0px; y: 0px; width: root.width; height: root.height; + vertical-scrollbar-policy: always-off; + for item[i] in root.items : Rectangle { + height: root.row-height; + background: i == root.drag-target ? TempoTheme.primary-soft : TempoTheme.surface; + HorizontalLayout { + cross-axis-alignment: center; + padding-left: 12px; padding-right: root.grip-width; spacing: 4px; + TempoAction { + height: root.row-height; + label: item.label; + horizontal-stretch: 1; + activated => { root.activated(i); } + VerticalLayout { + alignment: center; spacing: 3px; + Text { text: item.label; color: TempoTheme.text-primary; font-size: 14px; overflow: elide; } + if item.subtitle != "" : Text { text: item.subtitle; color: TempoTheme.text-secondary; font-size: 11px; overflow: elide; } + } + } + TempoIconButton { + size: 29px; icon-size: 16px; icon: TempoIcons.chevron-down; + label: "Move " + item.label + " down"; + enabled: root.enabled && i + 1 < root.items.length; + activated => { root.move-row(i, i + 1); } + } + TempoIconButton { + size: 29px; icon-size: 16px; icon: TempoIcons.chevron-up; + label: "Move " + item.label + " up"; + enabled: root.enabled && i > 0; + activated => { root.move-row(i, i - 1); } + } + } + TempoIcon { + source: TempoIcons.list; + x: parent.width - 23px; width: 16px; height: 16px; + } + Rectangle { y: parent.height - 1px; height: 1px; background: TempoTheme.border; } + } + } + grip := TouchArea { + x: root.width - root.grip-width; width: root.grip-width; + height: root.height; + enabled: root.enabled; + mouse-cursor: root.dragging-from >= 0 ? grabbing : grab; + pointer-event(event) => { + if event.kind == down && event.button == left && self.mouse-y - rows.content-y < root.items.length * root.row-height { + root.dragging-from = root.row-at(self.mouse-y); + root.drag-target = root.dragging-from; + } else if event.kind == up && root.dragging-from >= 0 { + root.finish(); + } else if event.kind == cancel { + root.dragging-from = -1; root.drag-target = -1; + } + } + moved => { + if root.dragging-from >= 0 { root.drag-target = root.row-at(self.mouse-y); } + } + } + Timer { + interval: 32ms; + running: root.dragging-from >= 0 && (grip.mouse-y < root.edge || grip.mouse-y >= root.height - root.edge); + triggered => { + rows.content-y = clamp(rows.content-y + (grip.mouse-y < root.edge ? 12px : -12px), -root.max-scroll, 0px); + root.drag-target = root.row-at(grip.mouse-y); + } + } +} diff --git a/ui/theme.slint b/ui/theme.slint new file mode 100644 index 0000000..fe8ed4f --- /dev/null +++ b/ui/theme.slint @@ -0,0 +1,76 @@ +import { Palette } from "std-widgets.slint"; + +// FinUI palette and measurements adapted under MIT. See LICENSES/FinUI-MIT.txt. +export struct TempoAccent { primary: color, hover: color, pressed: color, soft: color, subtle: color } + +export global TempoTheme { + in-out property dark: Palette.color-scheme == ColorScheme.dark; + in property override-accent; + in property follow-platform-accent; + in property accent; + private property platform-accent: Palette.accent-background; + out property primary: self.override-accent ? self.accent.primary : self.follow-platform-accent ? self.platform-accent : self.dark ? #8EA8FF : #3F63D8; + out property primary-hover: self.override-accent ? self.accent.hover : self.follow-platform-accent ? self.platform-accent.brighter(0.12) : self.dark ? #A3BAFF : #3451C0; + out property primary-pressed: self.override-accent ? self.accent.pressed : self.follow-platform-accent ? self.platform-accent.darker(0.14) : self.dark ? #7A97F0 : #2A41A0; + out property primary-soft: self.override-accent ? self.accent.soft : self.follow-platform-accent ? self.platform-accent.with-alpha(0.14) : self.dark ? #1A2240 : #EEF2FF; + out property primary-subtle: self.override-accent ? self.accent.subtle : self.follow-platform-accent ? self.platform-accent.with-alpha(0.22) : self.dark ? #1E2D5C : #DCE3FF; + out property background: self.dark ? #0F1115 : #F6F7F9; + out property background-alt: self.dark ? #141720 : #F0F3F8; + out property surface: self.dark ? #171A20 : #FFFFFF; + out property surface-alt: self.dark ? #1D2029 : #F8FAFC; + out property surface-pressed: self.dark ? #242833 : #F1F5F9; + out property border: self.dark ? #2A303A : #E1E4EA; + out property border-strong: self.dark ? #37404D : #CCD2DC; + out property text-primary: self.dark ? #EEF0F4 : #171A1F; + out property text-secondary: self.dark ? #A6ACB8 : #68707D; + out property text-tertiary: self.dark ? #8A909D : #8A93A3; + out property text-disabled: self.dark ? #58606D : #A8B1BF; + out property text-inverse: self.dark ? #141720 : #FFFFFF; + out property success: self.dark ? #34D399 : #168A5B; + out property success-soft: self.dark ? #0C2E22 : #ECFDF5; + out property warning: self.dark ? #FBBF24 : #D68D00; + out property warning-soft: self.dark ? #2E2306 : #FFFBEB; + out property danger: self.dark ? #F97066 : #D92D20; + out property danger-hover: self.dark ? #EF4444 : #B42318; + out property danger-soft: self.dark ? #2E1414 : #FEF3F2; + out property info: self.dark ? #38BDF8 : #2E90FA; + out property info-soft: self.dark ? #0A2330 : #EFF8FF; +} + +export global TempoTokens { + out property radius-xs: 6px; + out property radius-sm: 10px; + out property radius-md: 12px; + out property radius-lg: 14px; + out property radius-xl: 18px; + out property radius-full: 999px; + out property gap2: 2px; + out property gap4: 4px; + out property gap6: 6px; + out property gap8: 8px; + out property gap10: 10px; + out property gap12: 12px; + out property gap14: 14px; + out property gap16: 16px; + out property gap20: 20px; + out property gap24: 24px; + out property gap32: 32px; + out property page-padding: 16px; + out property section-gap: 16px; + out property tile-gap: 8px; + out property input-height: 44px; + out property button-height: 42px; + out property small-button-height: 34px; + out property tile-min-height: 52px; + out property bottom-tab-height: 58px; + out property desktop-nav-rail-width: 78px; + out property desktop-nav-rail-extended-width: 220px; + out property icon-sm: 16px; + out property icon-md: 20px; + out property icon-lg: 24px; + out property border-width: 1px; + out property fast: 120ms; + out property normal: 180ms; + out property rail-breakpoint: 720px; + out property extended-rail-breakpoint: 1100px; +}