Releases: zng-ui/zng
v0.21.13
-
Fix
AnyVar::try_set_from_mappanic when the other variable is const. -
Fix
IMAGESandAUDIOSextensions not always applying. -
Fix
IMAGES.limitsandAUDIOS.limitsnot filtering paths and uris. -
Image widget now does not render large images when a better reduced alternate is loading.
- Deprecated
ImageEntry::with_best_reduce. - Added
ImageEntry::best_reduce. - Image widget now tracks loading state of the best sized entry and only presents that entry.
- Deprecated
-
Change impl
Mul<i32>andMul<f32>forPxto be saturating to match other operations. -
Better cleanup of leftover memmap files after crash.
- Now crash-handler-process runs the cleanup after spawning the app-process.
- Now app-process runs cleanup on view-process respawn.
- Add
zng_task::channel::cleanup_memmap_storagefor manual cleanup in advanced scenarios where the crash-handler is not used.
-
Fix
is_mouse_activestops updating. -
Change
IpcBytesto not block on IO when deserializing named memmap.- Memmap reconnection now runs in parallel, only blocks on first read if not ready yet.
- Reconnection errors are now panic on first read.
-
Fix view-process not responding when handling memory pressure event.
-
Add
Image::on_load_size_layout. -
Fix panic on raw image and audio events without handle.
Crates will be available on crates.io once Publish completes.
v0.21.12
- Fix Malay and Uzbek languages defaulting to RTL when no script tag is given.
- Fix non-spacing marks rendering disconnected in text width ligatures disabled.
- Non-spacing marks now are merged with previous segment, always uses segment level ligatures.
TextSegmentKind::NonSpacingMarkcan now only appear at the start of texts and may be removed in future releases.
- Add
"system-ui"font names for: hi, bn, te, as, gu, kn, mr, ta, ne, or, pa, si, ta.- In macOS and Ubuntu also adds font names for: ar, fa, he, hy, ka, ps, ur.
- All supported desktop platforms now cover the full range of languages that have a defined
Lang::autonym.
- Fix panic in
Text!when an incorrectrender_updatehappens before firstrenderafter view-process respawn.
Crates will be available on crates.io once Publish completes.
v0.21.11
-
Implement
Window::movable.- Disabling now works in all windowed platforms except Wayland.
-
Add
cargo zng l10n --translateto generate machine translations.- Added
docs/machine-translation.mdguide. - Added machine translated l10n resources for many languages.
- Added
-
Fix http task response parsing.
-
Fix http post task hanging.
-
Fix panic when http task response is missing code.
-
Surface http task API
CacheModeinzng::task::http.
Crates will be available on crates.io once Publish completes.
v0.21.10
-
Define autonym for pseudo (test) locales.
-
Fix
cargo zng l10n --pseudoissues.- Now handles terms correctly.
- Now also replaces literal strings.
- Fixes function call arguments.
-
Upgrade
cargo zng l10n --pseudoto current directory format.- Generates pseudo localization for dependencies too.
-
Fix
Text!widget not refreshing onLANG_VARchanges. -
Add
FontName::system_uiwith value"system-ui.- Deprecated
FontNames::system_uiand related methods. - Add
GenericFonts::system_uiand related methods. - Fixes Chinese, Japanese and Korean UI fonts not loading.
- Deprecated
Crates will be available on crates.io once Publish completes.
v0.21.9
- Force update
tardependency to avoid vulnerability. - Add machine translated l10n resources for German, Spanish, French, Italian, Japanese, Korean and Simplified Chinese.
- Add
ImageEntry::format_name. - Change
Image::on_load_layoutto await window load. - Fix scoped command state variables disconnecting.
- Fix
can_<command>properties holding command handle after deinit.
Crates will be available on crates.io once Publish completes.
v0.21.8
v0.21.7
- Add
ImageSource::Entriesfor generating multi entry images.- SVG renderer now uses this to generate downscaled samples if requested.
- Add
ImageEntry::icc_profilethat provides a copy of the ICC Profile metadata used for decoding.- Adds
"image_meta_icc"feature, not enabled by default.
- Adds
- Add
ImageEntry::exifthat provides a copy of the EXIF metadata used for decoding.- Adds
"image_meta_exif"feature, not enabled by default.
- Adds
- Add support for CUR cursor images.
- Adds
ImageEntry::cur_hotspot. - Adds
"image_cur"feature. - Integrated with
cursorpropertyWindowVars::cursor.
- Adds
- Add support for extensions metadata in audio and image APIs.
- Add
ImageFormat::magic_numbers. - Add
HeadlessApp::doc_test_deadlineso spawn a timeout task in doctests.
Crates will be available on crates.io once Publish completes.
v0.21.6
v0.21.5
- Fix images decoded from RGBf32 crashing the view-process.
- Implement image encoding for GIF, PNM, TGA, HDR, OpenEXR and Farbfeld.
- Optimize image encoding, now is faster and uses less memory.
- Add
IpcBytesMut::from_bytesandfrom_bytes_blocking. - Add
IpcBytesMut::from_slice_blocking. - Fix Inspector screenshot save dialog suggesting formats that do not implement encoding.
Crates will be available on crates.io once Publish completes.
v0.21.4
-
Fix build with
"image_tiff"and"view"features. -
Add
Lang::autonym, name of language and region in own language.- Adds
"lang_autonym"Cargo feature, not enabled by default.
- Adds
-
Add
Lang::is_machine_translation.- Adds support for
machinevariant, as inen-machineto indicate a resource that was machine translated. LangMapgives priority for human translations of different regions over machine translations.
- Adds support for
-
Improve
cargo zng l10n --check.- Check the Fluent syntax of localization files.
- Check if localized messages match the template.
- Add
--check-strictto also check for missing messages.
Crates will be available on crates.io once Publish completes.