Documentation
¶
Overview ¶
Package lysui is a pure-Go (no cgo) widget toolkit for Wayland and a counterpart of relm4: a component framework with typed messages, a retained widget tree with GTK4/libadwaita-class widgets, xdg-shell windows and layer-shell surfaces, a CSS engine over a typed palette, the desktop's portals and protocols, and one event loop that idles at 0% CPU.
Applications import the public packages:
component the component framework: components, controllers,
factories, workers, commands (headless tests in
component/componenttest)
ui typed view builders, one per widget
app the session, windows and layer surfaces, the loop,
dialogs, popovers, desktop services
widget the widget tree, theme, CSS, actions, bindings
(libadwaita style classes in widget/css)
anim tweens, easing, springs and timelines
appearance the desktop's color scheme, accent and contrast
i18n gettext catalogs
highlight syntax highlighters for the code view
media video and sound playback
pdf PDF writing
transfer clipboard and drag-and-drop content
The canvas widgets paint on (render), the GPU renderer, screen capture, virtual input, the Wayland protocol bindings, media muxing and the Opus encoder live in github.com/stubbedev/lys-lib.
Everything under internal/ is implementation. The docs/ directory holds the reference: architecture, components, the application, input and threading models, CSS, appearance, icons, accessibility, the inspector, and the capability map in docs/completeness.md.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package anim declares time-based animations: tweens with easing curves, combined into timelines with Sequence, Parallel and Delay, and launched with Play; and physics springs (Spring), which run until they settle and keep their velocity when retargeted.
|
Package anim declares time-based animations: tweens with easing curves, combined into timelines with Sequence, Parallel and Delay, and launched with Play; and physics springs (Spring), which run until they settle and keep their velocity when retargeted. |
|
Package app owns the shared event loop: buffer pooling, input routing into the widget tree, frame-callback pacing, and idle dispatch.
|
Package app owns the shared event loop: buffer pooling, input routing into the widget tree, frame-callback pacing, and idle dispatch. |
|
Package appearance holds the desktop's presentation preferences as xdg-desktop-portal publishes them: the color scheme, the accent color and the contrast level.
|
Package appearance holds the desktop's presentation preferences as xdg-desktop-portal publishes them: the color scheme, the accent color and the contrast level. |
|
cmd
|
|
|
lys-ui-a11y
command
Command lys-ui-a11y is the accessibility demo target: a small form whose every control carries a semantic role and label, served to screen readers through the in-process AT-SPI bridge.
|
Command lys-ui-a11y is the accessibility demo target: a small form whose every control carries a semantic role and label, served to screen readers through the in-process AT-SPI bridge. |
|
lys-ui-bar
command
Command lys-ui-bar is a layer-shell top bar component: a logo pill, the clock, and a seconds gauge, ticked once a second by Application.Every.
|
Command lys-ui-bar is a layer-shell top bar component: a logo pill, the clock, and a seconds gauge, ticked once a second by Application.Every. |
|
lys-ui-capture
command
Command lys-ui-capture is the capture package's consumer: it lists the compositor's outputs and toplevels, screenshots any of them to a PNG (whole outputs through wlr-screencopy or ext-image-copy-capture, single windows through the foreign toplevel capture), and follows one output continuously with the damage-driven Stream, writing a numbered PNG per changed frame.
|
Command lys-ui-capture is the capture package's consumer: it lists the compositor's outputs and toplevels, screenshots any of them to a PNG (whole outputs through wlr-screencopy or ext-image-copy-capture, single windows through the foreign toplevel capture), and follows one output continuously with the damage-driven Stream, writing a numbered PNG per changed frame. |
|
lys-ui-columns
command
Command lys-ui-columns is the tabular/tree view demo (#90): ten thousand rows sorted and filtered through the header and the search entry (both instant - the view is virtualized), a tree tab with the expander column and indent guides, and a drag-to-reorder tab.
|
Command lys-ui-columns is the tabular/tree view demo (#90): ten thousand rows sorted and filtered through the header and the search entry (both instant - the view is virtualized), a tree tab with the expander column and indent guides, and a drag-to-reorder tab. |
|
lys-ui-dialogs
command
Command lys-ui-dialogs is the dialogs showcase: one window of buttons opening every preset dialog constructor - MessageBox, PromptDialog, ColorChooserDialog, FontChooserDialog, CalendarDialog - plus the file dialogs, the adaptive dialog, and the about dialog, all parented to the window so modality and Escape behavior can be compared side by side.
|
Command lys-ui-dialogs is the dialogs showcase: one window of buttons opening every preset dialog constructor - MessageBox, PromptDialog, ColorChooserDialog, FontChooserDialog, CalendarDialog - plus the file dialogs, the adaptive dialog, and the about dialog, all parented to the window so modality and Escape behavior can be compared side by side. |
|
lys-ui-dnd
command
Command lys-ui-dnd is the cross-window drag-and-drop demo: two toplevel windows, each holding color swatches that are both drag sources and drop targets.
|
Command lys-ui-dnd is the cross-window drag-and-drop demo: two toplevel windows, each holding color swatches that are both drag sources and drop targets. |
|
lys-ui-draw
command
Command lys-ui-draw is the custom-drawing demo, the relm4 drawing example's analog: a widget.DrawingArea whose OnDraw paints straight onto the Canvas - a polar rose sampled per point, a sweep hand, and axis lines - with QueueDraw on a timer animating it, damage tracking repainting only the area.
|
Command lys-ui-draw is the custom-drawing demo, the relm4 drawing example's analog: a widget.DrawingArea whose OnDraw paints straight onto the Canvas - a polar rose sampled per point, a sweep hand, and axis lines - with QueueDraw on a timer animating it, damage tracking repainting only the area. |
|
lys-ui-gallery
command
Command lys-ui-gallery is the component gallery: every component lys-ui implements, one titled section each, declared with the typed ui builders in the dark and light palettes.
|
Command lys-ui-gallery is the component gallery: every component lys-ui implements, one titled section each, declared with the typed ui builders in the dark and light palettes. |
|
lys-ui-glass
command
Command lys-ui-glass shows the theme's glass surfaces over busy, moving content: a frosted sidebar, a clear-glass card and bottom bar and a liquid-glass pill over a striped backdrop whose bands keep sliding, so the backdrop blur re-samples every frame.
|
Command lys-ui-glass shows the theme's glass surfaces over busy, moving content: a frosted sidebar, a clear-glass card and bottom bar and a liquid-glass pill over a striped backdrop whose bands keep sliding, so the backdrop blur re-samples every frame. |
|
lys-ui-gpu
command
Command lys-ui-gpu shows a GPUArea: the area's surface sits below the window and the application paces its own frames through OnFrame.
|
Command lys-ui-gpu shows a GPUArea: the area's surface sits below the window and the application paces its own frames through OnFrame. |
|
lys-ui-hello
command
Command lys-ui-hello is the showcase demo, built the way an app outside this module builds one: a component whose view is declared with the typed ui builders, hosted in one toplevel window.
|
Command lys-ui-hello is the showcase demo, built the way an app outside this module builds one: a component whose view is declared with the typed ui builders, hosted in one toplevel window. |
|
lys-ui-i18n
command
Command lys-ui-i18n localizes one app with a real gettext catalog: the Norwegian .po embedded under locale/ is loaded through package i18n, and every string - lys-ui's built-in chrome (dialog buttons, the file picker's places) and the demo's own, a plural included - flows through widget.Tr and TrN. It starts in the environment's language when a catalog exists for it; the button toggles.
|
Command lys-ui-i18n localizes one app with a real gettext catalog: the Norwegian .po embedded under locale/ is loaded through package i18n, and every string - lys-ui's built-in chrome (dialog buttons, the file picker's places) and the demo's own, a plural included - flows through widget.Tr and TrN. It starts in the environment's language when a catalog exists for it; the button toggles. |
|
lys-ui-ime
command
Command lys-ui-ime is the IME composition demo: an entry and a text area driven by whatever input method the desktop runs, with a status line mirroring each field's composing state and contents - the preedit an IME shows at the caret, and the commit that lands when composition finishes.
|
Command lys-ui-ime is the IME composition demo: an entry and a text area driven by whatever input method the desktop runs, with a status line mirroring each field's composing state and contents - the preedit an IME shows at the caret, and the commit that lands when composition finishes. |
|
lys-ui-invoke
command
Command lys-ui-invoke demonstrates the threading model.
|
Command lys-ui-invoke demonstrates the threading model. |
|
lys-ui-launcher
command
Command lys-ui-launcher is the M5 launcher app: a keyboard-exclusive layer-shell overlay holding a search entry that filters a grid of apps, and live thumbnails of the compositor's open toplevels captured through the capture package on a private connection.
|
Command lys-ui-launcher is the M5 launcher app: a keyboard-exclusive layer-shell overlay holding a search entry that filters a grid of apps, and live thumbnails of the compositor's open toplevels captured through the capture package on a private connection. |
|
lys-ui-lock
command
Command lys-ui-lock is the M5 lock screen: one ext-session-lock-v1 surface per output with a centered auth entry, built through app.LockSession.
|
Command lys-ui-lock is the M5 lock screen: one ext-session-lock-v1 surface per output with a centered auth entry, built through app.LockSession. |
|
lys-ui-messages
command
Command lys-ui-messages demonstrates the typed messaging layer (app/message.go) and single-instance activation (app/instance.go): one SharedState counter shared across two windows - either window's buttons move both labels - and one Stream broker that any depth of code can reach without threading senders: both windows subscribe, a button publishes, every window toasts.
|
Command lys-ui-messages demonstrates the typed messaging layer (app/message.go) and single-instance activation (app/instance.go): one SharedState counter shared across two windows - either window's buttons move both labels - and one Stream broker that any depth of code can reach without threading senders: both windows subscribe, a button publishes, every window toasts. |
|
lys-ui-multi
command
Command lys-ui-multi exercises the application model: one process running a declarative layer-shell bar on every output plus toplevel windows created on demand, with a close-request veto.
|
Command lys-ui-multi exercises the application model: one process running a declarative layer-shell bar on every output plus toplevel windows created on demand, with a close-request veto. |
|
lys-ui-multilist
command
Command lys-ui-multilist is the multi-select list client the headless input suite (internal/headlesstest) drives: one window holding a multiple-selection widget.List whose selection and activation land in the trace log, so synthetic keyboard and pointer gestures can be asserted end to end through the compositor.
|
Command lys-ui-multilist is the multi-select list client the headless input suite (internal/headlesstest) drives: one window holding a multiple-selection widget.List whose selection and activation land in the trace log, so synthetic keyboard and pointer gestures can be asserted end to end through the compositor. |
|
lys-ui-osd
command
Command lys-ui-osd is the M5 OSD app: a transient layer-shell popup anchored top-center over the overlay layer - the volume or brightness notification media keys produce.
|
Command lys-ui-osd is the M5 OSD app: a transient layer-shell popup anchored top-center over the overlay layer - the volume or brightness notification media keys produce. |
|
lys-ui-panel
command
Command lys-ui-panel is the layer-shell demo: a right-anchored panel component with a slider, progress bar, switch, checkbox, text entry, notes area and a scrollable list, live through the pointer and keyboard input stack.
|
Command lys-ui-panel is the layer-shell demo: a right-anchored panel component with a slider, progress bar, switch, checkbox, text entry, notes area and a scrollable list, live through the pointer and keyboard input stack. |
|
lys-ui-popover
command
Command lys-ui-popover is the popover client the headless input suite (internal/headlesstest) drives: one window whose button opens a popover holding a focused Entry and a label a timer keeps changing, so typing through the popup grab and loop-driven repaints of an open popover can be asserted end to end through the compositor.
|
Command lys-ui-popover is the popover client the headless input suite (internal/headlesstest) drives: one window whose button opens a popover holding a focused Entry and a label a timer keeps changing, so typing through the popup grab and loop-driven repaints of an open popover can be asserted end to end through the compositor. |
|
lys-ui-settings
command
Command lys-ui-settings is the M5 settings app: typed persisted keys (app/settings.go) behind PreferencesView rows - the adaptive shell of pages, view switcher, and built-in search - so every edit writes through to <config>/dev.stubbe.lys.ui.settings/settings.json and every restart comes back exactly where it left off.
|
Command lys-ui-settings is the M5 settings app: typed persisted keys (app/settings.go) behind PreferencesView rows - the adaptive shell of pages, view switcher, and built-in search - so every edit writes through to <config>/dev.stubbe.lys.ui.settings/settings.json and every restart comes back exactly where it left off. |
|
lys-ui-states
command
Command lys-ui-states is the window-state client the headless state suite (internal/headlesstest) drives: one toplevel whose keyboard chords issue the xdg_toplevel state requests - m maximize, n unmaximize, f fullscreen, g unfullscreen, i minimize, p poll the reported state, Escape close - while a status label mirrors only what the compositor CONFIRMS.
|
Command lys-ui-states is the window-state client the headless state suite (internal/headlesstest) drives: one toplevel whose keyboard chords issue the xdg_toplevel state requests - m maximize, n unmaximize, f fullscreen, g unfullscreen, i minimize, p poll the reported state, Escape close - while a status label mirrors only what the compositor CONFIRMS. |
|
lys-ui-video
command
Command lys-ui-video plays a video: a file through ffmpeg (picture and sound) when one is named, otherwise a generated YUV4MPEG2 clip of moving bars decoded in pure Go.
|
Command lys-ui-video plays a video: a file through ffmpeg (picture and sound) when one is named, otherwise a generated YUV4MPEG2 clip of moving bars decoded in pure Go. |
|
wlpointer
command
Command wlpointer drives a zwlr_virtual_pointer_v1 device against a Wayland compositor: synthetic pointer input for interactive testing.
|
Command wlpointer drives a zwlr_virtual_pointer_v1 device against a Wayland compositor: synthetic pointer input for interactive testing. |
|
zz-vpclick
command
The harness clicker: pointer clicks, wheel, keys, and text on $WAYLAND_DISPLAY through the headless suite's virtual pointer — the manual companion to internal/headlesstest's in-process driving, used to walk a live surface (the settings app on a nested sway) while its trace log runs.
|
The harness clicker: pointer clicks, wheel, keys, and text on $WAYLAND_DISPLAY through the headless suite's virtual pointer — the manual companion to internal/headlesstest's in-process driving, used to walk a live surface (the settings app on a nested sway) while its trace log runs. |
|
Package component is lys-ui's component framework, the counterpart of relm4's Component: a model with typed input and output messages, an Init that builds its view, an Update that runs on the loop goroutine for every input, and controllers that own a component's lifetime and forward its outputs.
|
Package component is lys-ui's component framework, the counterpart of relm4's Component: a model with typed input and output messages, an Init that builds its view, an Update that runs on the loop goroutine for every input, and controllers that own a component's lifetime and forward its outputs. |
|
componenttest
Package componenttest runs components without a compositor: a Loop that queues invoked work until the test drives it.
|
Package componenttest runs components without a compositor: a Loop that queues invoked work until the test drives it. |
|
Package gtksettings reads GTK 4's settings.ini: the Settings group GTK falls back to for every setting the desktop does not publish through its portal.
|
Package gtksettings reads GTK 4's settings.ini: the Settings group GTK falls back to for every setting the desktop does not publish through its portal. |
|
Package highlight holds syntax highlighters for widget.TextArea (GtkSourceView's language definitions).
|
Package highlight holds syntax highlighters for widget.TextArea (GtkSourceView's language definitions). |
|
Package i18n is gettext in pure Go: GNU .mo and .po catalogs with plural forms and message contexts, locale resolution from the environment, and catalog lookup in a file system.
|
Package i18n is gettext in pure Go: GNU .mo and .po catalogs with plural forms and message contexts, locale resolution from the environment, and catalog lookup in a file system. |
|
Package icontheme resolves freedesktop icon theme names into rasters for programs that draw icons without widgets, such as a compositor drawing the icon a window names.
|
Package icontheme resolves freedesktop icon theme names into rasters for programs that draw icons without widgets, such as a compositor drawing the icon a window names. |
|
internal
|
|
|
animclock
Package animclock is the animation scheduler the application loop drives: launched pieces, the frame deadlines the loop wakes on, and the tick that advances them.
|
Package animclock is the animation scheduler the application loop drives: launched pieces, the frame deadlines the loop wakes on, and the tick that advances them. |
|
assetfile
Package assetfile opens the files assets load from: icons, images, stylesheets and fonts.
|
Package assetfile opens the files assets load from: icons, images, stylesheets and fonts. |
|
atspi
Package atspi is the in-process AT-SPI bridge (#65): it serves the widget tree's accessibility semantics (widget.Describe and the semantic roles, the plain-Go model of widget/a11y.go) over D-Bus in the AT-SPI2 shape, so screen readers and tools like accerciser can walk a lys-ui application.
|
Package atspi is the in-process AT-SPI bridge (#65): it serves the widget tree's accessibility semantics (widget.Describe and the semantic roles, the plain-Go model of widget/a11y.go) over D-Bus in the AT-SPI2 shape, so screen readers and tools like accerciser can walk a lys-ui application. |
|
blursync
Package blursync keeps a surface's compositor blur in step with what its widget tree asks for: the blur region on the wire when the compositor offers blur, css.BlurUnavailable on the root when it does not.
|
Package blursync keeps a surface's compositor blur in step with what its widget tree asks for: the blur region on the wire when the compositor offers blur, css.BlurUnavailable on the root when it does not. |
|
buffer
Arena: one wl_shm pool per session.
|
Arena: one wl_shm pool per session. |
|
clipboard
Package clipboard implements text copy and paste over the core wl_data_device protocol and, when the compositor offers it, the zwp_primary_selection_unstable_v1 protocol: the offer pipeline for reading a selection, and data sources for claiming either.
|
Package clipboard implements text copy and paste over the core wl_data_device protocol and, when the compositor offers it, the zwp_primary_selection_unstable_v1 protocol: the offer pipeline for reading a selection, and data sources for claiming either. |
|
cmd/uigen
command
Command uigen writes package ui's generated builders: go generate in ui runs it.
|
Command uigen writes package ui's generated builders: go generate in ui runs it. |
|
compose
Package compose turns keysym sequences into text: pressing ' then e on a us-intl/deadkeys layout commits "é".
|
Package compose turns keysym sequences into text: pressing ' then e on a us-intl/deadkeys layout commits "é". |
|
datacontrol
Package datacontrol is the clipboard-manager side of the seat's selections, over ext_data_control_v1 or, on compositors that predate it, zwlr_data_control_unstable_v1.
|
Package datacontrol is the clipboard-manager side of the seat's selections, over ext_data_control_v1 or, on compositors that predate it, zwlr_data_control_unstable_v1. |
|
dragdrop
Package dragdrop implements drag and drop over the wl_data_device protocol: the source side (data source + start_drag with an icon), the destination side (offer bookkeeping, accept/reject, payload transfer), and the routing of enter/motion/leave/drop to the target registered for the surface under the drag.
|
Package dragdrop implements drag and drop over the wl_data_device protocol: the source side (data source + start_drag with an icon), the destination side (offer bookkeeping, accept/reject, payload transfer), and the routing of enter/motion/leave/drop to the target registered for the surface under the drag. |
|
emoji
Package emoji is lys-ui's emoji chooser data (#92): a curated table of common Unicode emoji grouped by category with search keywords, parsed once from a compact literal.
|
Package emoji is lys-ui's emoji chooser data (#92): a curated table of common Unicode emoji grouped by category with search keywords, parsed once from a compact literal. |
|
headlesstest
Compositor drivers for the harness: the suite itself is compositor-agnostic; the pieces that differ - how to close a client window through the compositor's own control channel, where the boot recipe records the pid, what it named the config and log - live behind this interface.
|
Compositor drivers for the harness: the suite itself is compositor-agnostic; the pieces that differ - how to close a client window through the compositor's own control channel, where the boot recipe records the pid, what it named the config and log - live behind this interface. |
|
headlesstest/inproc
Package inproc runs lys-ui applications inside a test process against the headless compositor and inspects the output through screencopy: the in-process half of the compositor-in-the-loop suite, for tests that drive the app API directly instead of a demo client.
|
Package inproc runs lys-ui applications inside a test process against the headless compositor and inspects the output through screencopy: the in-process half of the compositor-in-the-loop suite, for tests that drive the app API directly instead of a demo client. |
|
icons
Icon-theme following (#64): the cache applies live icon-theme switches delivered by the portal monitor (portalsettings), which the application wires in.
|
Icon-theme following (#64): the cache applies live icon-theme switches delivered by the portal monitor (portalsettings), which the application wires in. |
|
imgcache
Package imgcache caches decoded raster images and the resampled rasters widget.Image paints from, under one shared LRU budget.
|
Package imgcache caches decoded raster images and the resampled rasters widget.Image paints from, under one shared LRU budget. |
|
inspect
The doctor diagnostics block: one line block a bug report carries verbatim ("here is my lys-ui doctor output"), covering the session's bound globals and their versions, outputs and scales, the resolved cursor theme, the fonts sysfont selected, and the shm buffer format.
|
The doctor diagnostics block: one line block a bug report carries verbatim ("here is my lys-ui doctor output"), covering the session's bound globals and their versions, outputs and scales, the resolved cursor theme, the fonts sysfont selected, and the shm buffer format. |
|
layersurface
Package layersurface maps the wlr-layer-shell role onto a wl_surface: anchor, layer, keyboard mode, the configure handshake, and the closed signal.
|
Package layersurface maps the wlr-layer-shell role onto a wl_surface: anchor, layer, keyboard mode, the configure handshake, and the closed signal. |
|
logutil
Package logutil holds lys-ui's single injectable logger.
|
Package logutil holds lys-ui's single injectable logger. |
|
mailbox
Package mailbox is the coalesced-wake queue every loop messenger shares: items appended from any goroutine, drained in order on the loop by one closure the first append schedules.
|
Package mailbox is the coalesced-wake queue every loop messenger shares: items appended from any goroutine, drained in order on the loop by one closure the first append schedules. |
|
notify
Package notify sends desktop notifications: the xdg-desktop-portal Notification interface when a portal owns the desktop, org.freedesktop.Notifications (the GNOME spec every daemon implements) as the fallback, and nothing at all without a session bus - the appearance.md failure model, inert and logged at Debug.
|
Package notify sends desktop notifications: the xdg-desktop-portal Notification interface when a portal owns the desktop, org.freedesktop.Notifications (the GNOME spec every daemon implements) as the fallback, and nothing at all without a session bus - the appearance.md failure model, inert and logged at Debug. |
|
popup
The enter/exit visual half of a popup: a widget.Morph the coordinator drives.
|
The enter/exit visual half of a popup: a widget.Morph the coordinator drives. |
|
recentfiles
Package recentfiles tracks recently used files in the XDG recently-used.xbel format (TOML-free, XML as the spec says), so lys-ui apps share the recents list with the desktop's other citizens.
|
Package recentfiles tracks recently used files in the XDG recently-used.xbel format (TOML-free, XML as the spec says), so lys-ui apps share the recents list with the desktop's other citizens. |
|
repaint
Package repaint keeps one surface's repaint bookkeeping between frames: the logical rects its widget tree owes, and, at paint time, the device rects a buffer from the surface's rotating pool must repaint, the buffer's own staleness included.
|
Package repaint keeps one surface's repaint bookkeeping between frames: the logical rects its widget tree owes, and, at paint time, the device rects a buffer from the surface's rotating pool must repaint, the buffer's own staleness included. |
|
scale
Package scale owns one surface's buffer scaling: the integer wl_surface fallback, the optional wp_viewporter and wp_fractional_scale_v1 objects, and the output transform.
|
Package scale owns one surface's buffer scaling: the integer wl_surface fallback, the optional wp_viewporter and wp_fractional_scale_v1 objects, and the output transform. |
|
sessionlock
Package sessionlock maps ext-session-lock-v1 onto lys-ui: the lock object's locked/finished lifecycle and the per-output lock surface role with its configure handshake.
|
Package sessionlock maps ext-session-lock-v1 onto lys-ui: the lock object's locked/finished lifecycle and the per-output lock surface role with its configure handshake. |
|
style
Package style is lys-ui's CSS engine: a tokenizer and parser for the GTK-flavored subset docs/css.md scopes, the rule index, and the matcher/cascader that computes one widget's style — custom properties with var() substitution, calc(), color-mix(), and per-longhand cascade across prioritized stylesheets and per-widget inline declarations.
|
Package style is lys-ui's CSS engine: a tokenizer and parser for the GTK-flavored subset docs/css.md scopes, the rule index, and the matcher/cascader that computes one widget's style — custom properties with var() substitution, calc(), color-mix(), and per-longhand cascade across prioritized stylesheets and per-widget inline declarations. |
|
surfx
Package surfx is the surface-animation coordinator: one state machine every transient surface (menus, tooltips, toasts, dropdown lists, dialogs, layer overlays) drives its enter and exit tweens through, instead of one ad-hoc implementation per surface kind.
|
Package surfx is the surface-animation coordinator: one state machine every transient surface (menus, tooltips, toasts, dropdown lists, dialogs, layer overlays) drives its enter and exit tweens through, instead of one ad-hoc implementation per surface kind. |
|
sysfont
Package sysfont resolves system fonts through fontscan's CSS font selection rules, replacing per-app guesswork.
|
Package sysfont resolves system fonts through fontscan's CSS font selection rules, replacing per-app guesswork. |
|
testbuild
Package testbuild reports how the test binary was built.
|
Package testbuild reports how the test binary was built. |
|
touchinput
Package touchinput is the session-to-widget bridge for the non-pointer devices every input surface embeds (app windows, popups): it implements wlsession.SurfaceTouchHandler, SurfaceGestureHandler and SurfaceTabletHandler over a widget.TouchTracker, the router's gestures, and its stylus samples.
|
Package touchinput is the session-to-widget bridge for the non-pointer devices every input surface embeds (app windows, popups): it implements wlsession.SurfaceTouchHandler, SurfaceGestureHandler and SurfaceTabletHandler over a widget.TouchTracker, the router's gestures, and its stylus samples. |
|
uifont
Package uifont embeds the faces lys-ui's default look is drawn in: Geist and Geist Mono, as variable fonts so every weight is one file.
|
Package uifont embeds the faces lys-ui's default look is drawn in: Geist and Geist Mono, as variable fonts so every weight is one file. |
|
uigen
Package uigen generates package ui's typed builders from package widget's source: one builder per widget type, a constructor per New* function, a chainable method per setter, adder, binder and exported field, and the props every widget shares through its embedded node.
|
Package uigen generates package ui's typed builders from package widget's source: one builder per widget type, a constructor per New* function, a chainable method per setter, adder, binder and exported field, and the props every widget shares through its embedded node. |
|
window
Package window maps the xdg-shell role onto a wl_surface: real toplevel windows with titles, the configure handshake, the compositor-confirmed state set, ping/pong liveness, and the close signal.
|
Package window maps the xdg-shell role onto a wl_surface: real toplevel windows with titles, the configure handshake, the compositor-confirmed state set, ping/pong liveness, and the close signal. |
|
wlsession
XDG activation: optional xdg_activation_v1 support — the compositor-consented focus request.
|
XDG activation: optional xdg_activation_v1 support — the compositor-consented focus request. |
|
worker
Package worker runs blocking work off the loop goroutine: one goroutine at a time, in posting order, over a bounded queue.
|
Package worker runs blocking work off the loop goroutine: one goroutine at a time, in posting order, over a bounded queue. |
|
xfer
Package xfer moves selection and drag-and-drop payloads through the pipes Wayland hands the two ends of a transfer.
|
Package xfer moves selection and drag-and-drop payloads through the pipes Wayland hands the two ends of a transfer. |
|
Package media is lys-ui's playback framework, GTK's GtkMediaStream in pure Go: a Source decodes frames (and, when Audible, sound), and a Stream plays one on the loop with play, pause, seek, loop, volume and a clock that follows the audio when there is any.
|
Package media is lys-ui's playback framework, GTK's GtkMediaStream in pure Go: a Source decodes frames (and, when Audible, sound), and a Stream plays one on the loop with play, pause, seek, loop, volume and a clock that follows the audio when there is any. |
|
Package pdf writes PDF documents in pure Go: pages of RGB raster images, Flate-compressed and streamed to an io.Writer as they are added.
|
Package pdf writes PDF documents in pure Go: pages of RGB raster images, Flate-compressed and streamed to an io.Writer as they are added. |
|
Package portalsettings follows the desktop settings xdg-desktop-portal publishes (color scheme, accent color, contrast, icon theme, the interface font and its text scaling) over the session bus.
|
Package portalsettings follows the desktop settings xdg-desktop-portal publishes (color scheme, accent color, contrast, icon theme, the interface font and its text scaling) over the session bus. |
|
Package transfer is the content shape every data transfer shares: clipboard claims, the primary selection, and drag and drop all offer a payload as mime types, best first, with a writer for each, and all read one back by mime preference.
|
Package transfer is the content shape every data transfer shares: clipboard claims, the primary selection, and drag and drop all offer a payload as mime types, best first, with a writer for each, and all read one back by mime preference. |
|
Package ui declares widget trees with typed builders, the counterpart of relm4's view! macro.
|
Package ui declares widget trees with typed builders, the counterpart of relm4's view! macro. |
|
Accessibility semantics for the widget tree: semantic roles plus a state snapshot that assistive technology can consume.
|
Accessibility semantics for the widget tree: semantic roles plus a state snapshot that assistive technology can consume. |
|
css
Package css names libadwaita's style classes and named colors - the relm4-css analog (#95) - so application code spells them as constants and stylesheets written for GTK port over verbatim:
|
Package css names libadwaita's style classes and named colors - the relm4-css analog (#95) - so application code spells them as constants and stylesheets written for GTK port over verbatim: |