Repository navigation
Goldberry adds a rich-text editor, optional spell checking, SVG rendering, and
camera and microphone capture. This release also expands CSS and replaces
the bundled media engine.
Breaking changes
Dependencies and native libraries
- Replace each
goldberry-media::ffmpeg-<target>dependency with
goldberry-media::natives-<target>. Removeffmpeg-sources. The new
classifiers carrylibgoldberry-mediaand its layout stamp. If you supplied
a library throughgoldberry.media.libdir, rebuild it from this version's
sources and point the property at the new install directory. Use
:media:nativesBuildin build scripts that called:media:ffmpegBuild.
Rebuild native images with matching classifiers. libgoldberrynow requires ABI 30 (ABI 18 in 2026.2). Update the
goldberry-nativesclassifier jars alongside the BOM. Rebuild any custom
library loaded withgoldberry.native.library.- The bundled engine reads Matroska/WebM, MP4, Ogg, FLAC, WAV and MP3. Convert AVI files
to a supported container before opening them.PlayerStatusreports the
selected decoder's name where it used to reportffmpeg. Update code that
matches decoder names or assumes the old capability lists. - Remove uses of
SampleFormat.ffmpegSuffix()and
goldberry.media.ffmpegLog. To use an installed FFmpeg executable as a
fallback, setgoldberry.media.ffmpegto its path. Media Foundation is
enabled by default on Windows and can be disabled with
goldberry.media.mediaFoundation=false.
Java API
Goldberry.run()closes remaining windows and releases the backend when it
returns. Open fresh windows for a later run.Easingis a sealed interface withCubicBezier,Stepsand
PiecewiseLinear. Migrate enum-specific code toEasing.BUILT_IN,
cssName()or a type switch. The built-in curve constants remain.Trays.showreturnsOptional<ShownTray>. Update declarations that hold
the result. ImplementBackendTray.rows(List<TrayItem>)in custom backends.
Implement the twoHost.shortcutoverloads acceptingRepeatin custom
hosts.Repeat.FIREpreserves the existing repeat policy.State.context()is now a protected final method. Rename any method of
the same signature in a subclass and use the inherited context while
mounted.- Replace
Paragraph.isBidiApproximate()withisBidirectional(). Where
the direction is needed, usedirectionAt(offset)ordirectionality().
Use the rendered leaf for the semantics thatRichTextexposed directly. Boxnow takesOverflowfollowed byPresencewhere its long
constructors tookboolean elevatedfollowed byOverflow. Use
Presence.NORMALor set its z-index. The fluentelevated(true)form
still works.ComputedStylestoresoverflowXandoverflowY. Construct
it with its factories and withers.textDecoration()returns
TextDecorations; usetextDecoration().lines()for the old set.Background.layers()andBackgroundParser.images(…)return
List<CssImage>. MatchGradientLayerwhere you need gradients only.
The containing-block helpers take theBorderinstead of padding
Insets.StyleResolver.positionMatterstakes twoSiblingPosition
values in place of four integers.- Use
EditHistory<TextEdit>for a plain editor. An exhaustive
EditHistory.Kindswitch must handleFORMATTING. - Recompile record patterns against the current shapes. This affects
Attributes(dragOutandspelling),Dragging(platform),
RichTextandRun,SpanPaintandMarkStyle,Slider(marks),
ListView(sections),WebViewSpec(userAgent) andHtmlView
(styles). Check patterns overCanvas,Compositing,Typography,
TextFlow,Transform,Corners,Decoration,Box.Text,
HitTest.Region, the CSS selector, stylesheet and animation records,
and the background and gradient records. Previous constructor overloads
remain where documented. - Update exhaustive switches that use changed enums or sealed types,
includingCursor,TextAlign,Selector.PseudoClass,
Selector.Combinator,PseudoElement,Overflow,
Transitions.Animatable,Role,Length,MediaCondition,
Structural,Gradient,GradientLayer,ImageSourceand
ToolkitLabel. - For custom media providers,
DecoderRequestaddshardware.
HonoursoftwareOnly()when opening a provider that can use hardware.
MediaInfoaddschapters; a QuickTime chapter track is reported there
instead of as a subtitle. Adapt patterns overTrack,TrackParams.Video
andVideoFrameto their current components. Usewith…methods for
PlayerStatus, whose canonical constructor now also takeslooping.
A wrapper aroundMediaIOshould forward the newreadAhead(long)
method. Check switches overPixelFormatandTransport.Glyph. Iconuses value equality. If distinct instances must remain separate
keys, choose identity-based storage explicitly.
GPU
RenderPass.target()andPipelineSpec.targetFormat()return
Optionalbecause a pass can draw depth alone. Pass anOptional
format to the constructor or usePipelineSpec.builder.- Update record patterns over
PipelineSpec,DepthTargetand
Canvas3dforstencilTest,clearStencilandrenderScale. Check
exhaustive switches overTextureFormat,TextureUsage,
BufferUsage,BlendMode,RenderTargetandGpuResource.
Sampled textures cannot simultaneously useGRAPHICS_STORAGE_READ.
When render scale differs from 1, use the actual target dimensions. RayTracer.device()returnsRayTracing.Available. Match
RayTracing.HardwareorRayTracing.Softwarewhen the tier matters.
HandleRayTracingMode.SOFTWAREin exhaustive switches and pass a
GpuDeviceto open that tier.MAILBOXandIMMEDIATEcan present beyond the display rate. Set
Window.frameCapif you usedgoldberry.backend.vsync=falsewhile
relying on the display limit. Account forPACINGin exhaustive switches
over the HUD's readings.
Markup
- The inflater rejects unread properties, such as
row gap=8,
radio selected=orstep current=. Move CSS values to the stylesheet
and remove unread attributes. Set.unread(UnreadPolicy.WARN)temporarily
if migrating several documents. rich-text,runandrich-inputare built-in names. The optional
vector and capture modules also registersvg-view,camera-view,
level-meter,waveform-viewandspectrum-view. Rename conflicting
custom factories or deliberately shadow the built-in withreplace.
Icons
- The bundled icons are Lucide 1.54.0 (2026.2 had 0.469.0).
Icon.bundledand
Icons.bindthrowNoSuchElementExceptionfor a removed or renamed name, and
Icon.findanswers empty. Removed: the brand markschrome,codepen,
codesandbox,dribbble,facebook,figma,framer,github,gitlab,
instagram,linkedin,pocket,slack,trello,twitch,twitter,
youtube, andrail-symbol; ship them as the application's own icons.
Renamed, old name first:album→square-bookmark,align-center→
text-align-center,align-justify→text-align-justify,align-left→
text-align-start,align-right→text-align-end,angry→face-angry,
annoyed→face-expressionless,badge-help→badge-question-mark,
book-marked→book-bookmark,building-2→building-complex,
circle-help→circle-question-mark,file-audioandfile-audio-2→
file-headphone,file-badge-2→file-badge,file-check-2→
file-check-corner,file-code-2→file-code-corner,file-json→
file-braces,file-json-2→file-braces-corner,file-key-2→
file-key,file-lock-2→file-lock,file-minus-2→file-minus-corner,
file-plus-2→file-plus-corner,file-question→file-question-mark,
file-search-2→file-search-corner,file-type-2→file-type-corner,
file-video→file-play,file-video-2→file-video-camera,
file-volume-2→file-signal,file-warning→file-exclamation-point,
file-x-2→file-x-corner,filter→funnel,filter-x→funnel-x,
fingerprint→fingerprint-pattern,flip-horizontal→
square-centerline-dashed-horizontal,flip-horizontal-2→
triangles-centerline-dashed-horizontal,flip-vertical→
square-centerline-dashed-vertical,flip-vertical-2→
triangles-centerline-dashed-vertical,frown→face-slightly-frowning,
grab→hand-grab,history→rotate-ccw-clock,indent-decrease→
list-indent-decrease,indent-increase→list-indent-increase,laugh→
face-grinning,letter-text→text-initial,mail-question→
mail-question-mark,meh→face-neutral,message-circle-question→
message-circle-question-mark,podcast→mic-signal,shield-question→
shield-question-mark,smile→face-slightly-smiling,smile-plus→
face-slightly-smiling-plus,text→text-align-start,text-select→
square-dashed-text,trash-2→trash,waves→waves-horizontal,
wrap-text→text-wrap.
Added
rich-inputsupports marks, formatting, mentions and rich clipboard
content.rich-textrenders interactive or selectable styled runs.- Editable fields can check spelling through
goldberry-spell. Load an
application-supplied Hunspell dictionary and opt in withspellcheck. goldberry-vectorrenders SVG in images and document views.svg-view
uses its CSS colour forcurrentColor. Lottie and transparent WebM
animations can useAnimationView.goldberry-cameraandgoldberry-micadd capture, preview and audio
analysis. Microphone widgets show level, waveform and spectrum.- The CSS subset adds modern selectors and nesting, cascade layers,
container queries, math functions, richer colours and gradients, filters,
per-corner radii, and OpenType controls. Paragraphs support bidirectional
layout and justification. Markdown and HTML can hyphenate English prose. - Media adds chapters, HDR-to-SDR tone mapping, Theora and optional Vulkan
Video decoding. A video view can also show pictures pushed by the app. - The GPU API adds texture types, compute, indirect draws, stencil tests,
adjustable 3D render scale and hardware or software ray tracing. A
RasterTexturecan upload only damaged pixels, with mapped uploads on
supported devices. - Desktop integration adds native drag-out, global shortcuts where the
platform grants them, a system credential store, and single-instance
activation. Lists can measure variable-height rows and pin section headers. - The published
dev.goldberry.weaveGradle plugin prepares models for
native image. Frame listeners, percentiles and captures support diagnostics.
Changed
- The documentation uses a wider pane on desktop screens to give tables and
code examples more room. - The body type scale is now 15 px over a 20 px line. Borders take layout
room, and CSS dimensions useborder-boxby default. Review tightly sized
controls and custom styles against the new metrics. html-viewapplies its supported author styles by default. Set
author-styles="ignored"orHtmlView.authorStyles(AuthorStyles.IGNORED)
to restore theme-only rendering.- A field that checks spelling moves an unselected caret to the word under
a secondary click. The menu fills suggestions when the checker answers. - Occluded or hidden windows pause animation-driven frames. Desktop
power-saving mode caps animation at 30 fps. Many damaged regions can be
merged into a shorter list instead of requesting a full repaint.
Fixed
- Native Showcase images package the codecs and SVG renderer. Startup
presents a frame before registering the tray. Asset downloads retry
when a read stalls. - Embedded pages remain visible over Metal on macOS. Popup placement and
focus keep text-field context menus usable on Wayland. - Text uses the appropriate fallback face, composes bidirectional runs in
visual order and draws document emphasis with italic faces. Copying
automatically hyphenated prose preserves the original string. - Reused decoder samples, media buffering and planar uploads now use the
correct output lengths and staging data.
Install
Goldberry 2026.3 is on Maven Central under the group dev.goldberry, and needs JDK 25.
dependencies {
implementation platform('dev.goldberry:goldberry-bom:2026.3')
implementation 'dev.goldberry:goldberry'
// The native library: one classifier per platform you run on.
runtimeOnly 'dev.goldberry:goldberry-natives::linux-x64'
runtimeOnly 'dev.goldberry:goldberry-natives::linux-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::macos-aarch64'
runtimeOnly 'dev.goldberry:goldberry-natives::windows-x64'
}Installing
lists the Maven coordinates and optional modules with their classifiers.
Downloads
The showcase, every widget in one application, as a GraalVM native image: one file
per platform, attached below. Unpack the tarballs; the .exe runs as it is.
Changelog: CHANGELOG.md