Skip to content

HuxerUI v0.5.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 04:56
· 15 commits to main since this release

HuxerUI v0.5.0

HuxerUI v0.5.0 adds watch mode, customizable docking across desktop windows, and multi-window support on iOS and iPadOS. It also introduces system tasks, multi-format clipboard items, and bitmap editing and export.

Developer tools

  • Watch mode. Run huxerui run <platform> --watch to rebuild on save and relaunch the app or refresh the browser. Failed builds leave the current session running. Successful reloads start a fresh session. Compatible Android Debug builds can update the application library and resources after the first install without reinstalling the APK. CLI guide
  • Toolchain setup. Use huxerui doctor to find missing prerequisites and huxerui setup to install supported dependencies. Checks can be scoped to building, running, packaging, or device discovery. Installation guide
  • Profiling and layout guides. Use --profile with a source checkout to record per-window traces with component instance and source information, then export them to Perfetto. The DEBUG panel can also show layout bounds, spacing, and clipping. Profiling is off by default and excluded from prebuilt SDKs. Development guide
  • Linux packages. Build DEB or RPM packages with huxerui package linux -f deb or -f rpm. AppImage remains the default. Packaging guide

UI and windows

  • Layout and docking. Use LayoutPriority to control how Row and Column children share limited space. Custom layouts can read the same priority. DockLayout supports custom tab bars and panel transfers between open windows on Windows, macOS, and Linux. On Windows, dropping a tab outside the application can request a new window. Layout guide
  • Window integration. iOS and iPadOS apps can opt into multiple UIKit scenes and open windows with OpenWindowAsync(). Applications can retrieve platform window objects for integrations such as parenting system dialogs. Desktop floating windows support transparency, pointer pass-through, always-on-top placement, and non-activating behavior where available. Linux can now embed GTK widgets through PlatformView. Window guide · Platform guide

Application APIs

  • Clipboard and editors. A single ClipboardItem can carry plain text, HTML, an encoded image, and custom MIME data where supported. Custom editors can handle copy, cut, and paste through the same callbacks for keyboard shortcuts and touch selection menus. Clipboard guide
  • Files, streams, and resources. Remember and restore access to selected files and directories on supported Android, Apple, and Web providers. Create synchronous or asynchronous streams from callbacks with FromReader() and FromWriter(). Open independent resource packages with Resources::OpenPackage(). File guide · Resources
  • Bitmaps. Decode images to RGBA8, crop and resize them, draw them directly, or encode them as PNG or JPEG. ExternalTexture::SnapshotAsync() captures the latest frame for processing or export. Bitmap example
  • System tasks. Declare BackgroundTask, ContinuedTask, or OngoingTask for scheduled maintenance, finite user-initiated work, and ongoing activity. Applications can observe progress and request cancellation. Background execution and process launch depend on platform capabilities. System Tasks guide

Fixes

  • Windows draws color emoji in fully opaque text and resolves automatic paragraph direction more accurately. Positioned text runs reject Unicode mandatory line breaks.
  • Pager settles on the controlled page when dragging is disabled. macOS avoids a deadlock during application quit. Packaging avoids false conflicts when collecting runtime libraries.
  • Fixed delayed delivery of short streaming HTTP responses on Windows and a WebAssembly type error when sending HTTP request bodies.

Upgrading from v0.4.0

  • Replace --profile debug|release with --config debug|release for build, run, and package. --profile now enables profiling for source builds.
  • Replace ClipboardContent and WriteContent[Async]() with ClipboardItem and WriteItem[Async](), or use WriteFiles() for file lists. Replace ReadRichTextAsync() with ReadItemAsync() and ToAttributedText(). Replace IsAvailable() with SupportsSynchronousText().
  • Pass a File to ImageAsset::FromFile().
  • Add UIApplicationSceneManifest to existing iOS app shells, including single-window apps. Set UIApplicationSupportsMultipleScenes to true to opt into multiple windows. iOS migration guidance

Full changelog from v0.4.0 to v0.5.0