Skip to content

Completeness ​

What lys-ui supports, mapped to relm4, GTK4 and libadwaita. Gaps are listed at the end; Non-goals are out of scope.

Framework ​

Details: Application model, Components, Threading, Inspector.

relm4 / GTKlys-ui
relm4::Application, ApplicationWindowapp.Application (one loop for every window), app.Window, app.LayerWindow
main-thread contract, glib::timeout_addone loop goroutine; Application.Invoke, Every; the off-loop mutation guard
Component, Controller, RelmApp::run, dialog componentscomponent.Component[In, Out], Context, Controller (Forward, ForwardTo, Detach, State()), component.Run/Window/Layer/Dialog/Popover; headless tests with componenttest.Loop
view!, #[name], #[watch] setters, #[relm4::widget_template]ui: a generated typed builder per widget (setters, Watch*, hooks, Bind*, adders), Ref, Column/Row, If, Match, Each, Use; templates are functions; ui.Mount/ui.Build
Command, oneshot_command, spawn_command, AsyncComponentContext.Oneshot, Spawn, Context() (cancelled at shutdown); Loader (loading view, Load off the loop, held input); Context.Await/Busy for awaiting updates
FactoryVecDeque, FactoryHashMap, FactoryComponent, AsyncFactoryComponent, DynamicIndex, FactoryView, FixedPositioncomponent.Factory[C, In, Out] of item components with in-place edits (async items through Loader), KeyedFactory[K, ...], Index, BoxView/FlowBoxView/StackView/NotebookView/GridView/FixedView/ListBoxView
Worker, detach_workercomponent.Worker[In, Out] on its own goroutine, LaunchWorker (top-level or owned by a component), WorkerController
tracker::track, #[watch], #[track]Context.Tracked (*Tracked[T], cleared after each refresh), Context.Watch, Context.Track
MessageBroker, SharedState, Reducerapp.Stream[Msg], app.SharedState[T], app.Reducer[S, M]
relm4 binding modulewidget.Binding[T] + the widget Bind* connectors
GApplication single instance, command-line, openapp.ClaimInstance + InstanceConfig hooks
GSettingsapp.NewSettings + typed Key[T], persisted atomically
gettext (gettext, ngettext, pgettext, catalogs, locales)i18n: pure-Go .mo/.po parsing, Plural-Forms, contexts, Locales(), Load/LoadSystem; widget.SetMessageCatalog, Tr, TrN, TrCtx for built-in and app strings
RelmAction, RelmActionGroup, menu!, set_accels_for_actiontyped widget.Action, ParamAction[P] and StateAction[S] (Toggle, Target); ActionItem/CheckItem/RadioItem menu rows; BindAction on buttons and toggles; AddAccel (chords) and subtree-scoped AddScopedAccel
library logginginjectable *slog.Logger (app.SetLogger), silent by default
GTK inspectorLYS_UI_INSPECT=1, Application.SetInspect, widget.DumpTree

Widgets ​

Screenshots: Widgets.

relm4 / GTK / adwlys-ui
Label, styled textLabel (UAX #14 wrap, start/middle/end ellipsize), RichLabel (markup, links)
Button, ToggleButton, CheckButton, Switch, radio groupsButton (any child), ToggleButton, CheckButton, Switch; toggles and checks join radio groups
Scale, ProgressBar, LevelBar, SpinButtonSlider, ProgressBar, ProgressRing (circular, with a centred child), LevelBar, SpinButton
Entry, PasswordEntry, SearchEntry, EditableLabelEntry (selection, clipboard, IME, EchoPassword/EchoNone), SearchEntry, SearchBar, ComboEntry + completion, EditableLabel
undo/redobounded coalescing stack shared by Entry and TextArea
TextView, SourceViewTextArea (soft wrap, Tab trap), code view (line numbers, highlighters, auto-indent); highlight: TOML, Go, JSON, YAML, Markdown, Adwaita schemes
DropDown, ComboBoxDropdown, DropdownOf[T], NewDropdownRows (icons, headers); type-ahead
widget layout properties (hexpand, vexpand, halign, valign, margin-*, set_size_request, max-width/max-height)SetHExpand/SetVExpand (propagated like GTK's computed expand), SetHAlign/SetVAlign, SetMargin, SetSizeRequest and SetMaximumSize (clipping what overflows) on every widget, honored by the containers
Box, CenterBox, Stack, Overlay, ScrolledWindowBox, CenterBox, Stack (transitions), Overlay, Scroll (kinetic, RevealRect, smooth scrolling, snap, overscroll chaining), Scrollbar
Grid, FlowBox, adw WrapBox, FixedGrid (spans, squeeze to the children's minimums), FlowBox, NewWrapBox, Fixed (children at explicit (x, y) logical pixels, natural size, union measurement)
Paned, Frame, AspectFrame, Revealer, Expander, SizeGroupthe same names
NotebookNotebook: close hook, reorder by drag, overflow scrolling
adw ToolbarViewToolbarView: top and bottom bar stacks, sliding reveal, flat/raised/raised-border styles, content extending under the bars
adw TabView, TabBar, TabOverviewTabView (pages with title, icon, loading, indicator, attention, pinned; close veto; transfer between views), TabBar (select, close, drag to reorder or move to another window's bar), TabOverview (thumbnail grid); Application.AttachTabView binds ctrl+Tab, ctrl+PageUp/Down, alt+1..9
ListView, GridView, ColumnView, TreeExpander, TypedListView/TypedGridView, ListBoxvirtualized List (none/single/browse/multiple selection, rubber band), virtualized GridView (min/max columns, 2D keyboard motion, gridview > child), ColumnView[T] (sort, filter stack), FlatTree[T]; typed TypedList[T]/TypedGrid[T] over TypedItems[T] (widget recycling: Setup once, Bind per item, Unbind; InsertSorted; filter stack; typed selection), non-virtual ListBox (selection modes, activation, keyboard navigation, filter/sort/header functions, placeholder)
PopoverMenu, PopoverMenuBarMenu (check/radio, submenus, mnemonics, accels), MenuBar
adw WindowTitle, adaptive AdwDialogWindowTitle (title and subtitle pair); Application.AdaptiveDialog: a parented dialog over a wide parent, a bottom sheet inside a narrow one (or forced either way), with the dialog card, responses and cancel-on-dismiss
HeaderBar, WindowControls, ActionBarthe same names; Application.AttachHeader
Popoverapp.Popover, anchored to any widget, on toplevels and layer surfaces; resizable by its free edge (PopoverConfig.Resize)
Dialog, MessageDialog, AlertDialogapp.Dialog, MessageBox, PromptDialog, ProgressDialog; modality through xdg-dialog-v1
FileDialogApplication.OpenFileDialog, OpenFilesDialog, OpenFolderDialog, SaveFileDialog (pure-Go picker, XDG recents); relm4-components' OpenButton is Application.NewOpenButton (label, filters, folder mode, recent-files dropdown over the shared store)
ColorDialogButton, FontDialogButton, InscriptionColorButton (opens a SwatchPicker popover of ColorSwatch presets, a custom row and the full ColorChooser in place) and FontButton (Application.AttachFontButton opens the chooser); BindColor/BindFont; Inscription (sized by character and line counts)
ColorDialog, FontDialog, Calendar, EmojiChooserColorChooserDialog, FontChooserDialog, CalendarDialog, EmojiChooser
adw AboutDialogApplication.AboutDialog
ShortcutsWindowShortcutsView + Application.ShortcutsDialog from the accelerator registry
ShortcutRecorder (GNOME Settings "Set Shortcut", KKeySequenceWidget)ShortcutRecorder: keycaps at rest, records through KeyRecorder ahead of key capture and accelerators, live modifier preview, Validate
adw ToastToast + Application.ShowToast (stacking, action, hover pause)
TooltipSetTooltip and SetTooltipMarkup on any widget; Application.SetTooltipOptions for every window
GLAreawidget.GPUArea: application-rendered dmabufs (zero copy, async import checked against the advertised formats) or CPU images, on a subsurface below the window, paced by OnFrame
Video, MediaControls, MediaStream, MediaFilewidget.Video (fit policies, controls on hover or pause, autoplay, YUV frames on a subsurface of their own where the compositor imports YUV dmabufs), widget.MediaControls, media.Stream (play, pause, seek, loop, volume, mute, audio-clocked sync); sources: animated images, YUV4MPEG2 in pure Go, MP4, Matroska/WebM, Ogg and FLAC files demuxed in process, H.264, H.265, AV1 and VP9 decoded through Vulkan Video on the GPU the windows draw with and drawn on a subsurface (no CPU fallback: a device without a decoder for the codec fails the stream with an error naming the codec and why), AAC-LC, Opus, Vorbis, FLAC and MP3 decoded in pure Go; files of sound alone play under their embedded cover art (MP4, FLAC, Ogg, MP3 and Matroska attachments) or a neutral placeholder; sound through the PulseAudio protocol. Not yet: AC-3, Ogg Theora and MPEG-TS
Spinner, Separator, Image, IconSpinner, NewSeparator, Image (fit/cover, async decode, PNG/JPEG/GIF/WebP, animated GIF/APNG), Icon (theme, file, SVG, symbolic tint, bundled Lucide fallback)
DrawingArea, GestureStylusDrawingArea (OnDraw, OnStylus); relm4 DrawHandler as DrawSurface: a retained backing canvas (incremental Draw, damage limited to the touched rect, resize keeps content, rescale reallocates and calls OnResize)
adw PreferencesDialogwidget.PreferencesView (page switcher, search over every searchable row's title and subtitle with jump-to-row results, subpages) in Application.PreferencesDialog with AddToast
adw PreferencesPage/Group, ActionRow familyPreferencesPage, PreferencesGroup, ActionRow, SwitchRow, SpinRow, ComboRow, EntryRow, ButtonRow, ExpanderRow
adw NavigationView, NavigationSplitView, OverlaySplitView, Carousel, ViewSwitcher, StackSwitcher, Clamp, BreakpointBinthe same names; one breakpoint engine
adw Banner, BottomSheet, StatusPage, Avatar, SplitButton, ButtonContent, ToggleGroupthe same names
drag and dropDragSource/DragEnterer per widget, action negotiation, cross-window
GestureClick, EventControllerScrollSetOnPointer (any button, click count, modifiers) and SetOnScroll (steps, modifiers) on every widget; List.OnPointer/OnScroll with the row
modern components (no GTK counterpart)Accordion, Alert, Badge, Breadcrumb, Chart, Combobox, DataTable, DatePicker, Form, HoverCard, InputOTP, Pagination, Sidebar
shell parts (no GTK counterpart)Bar (start, center and end zones along an edge, turning with SetEdge), BarButton, BarSeparator, SegmentIndicator, app.NewBar; FloatingPanel (drag, resize, confinement, input-region pass-through via InputRegioner); Card; Chip and the drag-reorderable ChipBox
RTL/bidiUAX #9 in every text path; Direction on text widgets, menus, dropdowns and Box

Text, rendering and theming ​

Details: Architecture, CSS, Appearance, Icons, Accessibility.

Arealys-ui
renderingpremultiplied ARGB8888, signed-distance AA, damage-clipped repaint, gradients (linear, radial, conic, repeating)
GPU renderinga Vulkan renderer into dmabufs through lys-lib's gpu, chosen by LYS_UI_RENDERER (auto, gpu, cpu), on the CPU where it cannot open
fontssystem lookup (app.Font, FontWeighted, FontFamilies), per-rune fallback chains, color emoji (CBDT/sbix, COLRv0/v1, OT-SVG), variable fonts
themingtyped Theme palette with copying With*, dark/light/high-contrast presets, WCAG guard
CSSGTK-flavoured stylesheets above the palette: selectors, @define-color, transitions, @keyframes, flexbox, grid, effects; files at chosen priorities (AddStylesheetFile), hot-reloaded through inotify
glass surfacesthe css.Glass, css.LiquidGlass and css.Frosted style classes; behind-window and behind-popover blur through ext_background_effect_v1 (WindowConfig, LayerConfig and PopoverConfig.BackgroundBlur)
GTK settingsgtksettings: GTK 4's settings.ini
desktop settingslys-lib's portalsettings: the appearance, icon theme and font xdg-desktop-portal publishes, followed live, for programs that draw without an app.Application
icon themesfreedesktop spec in pure Go, live icon-theme following; lys-lib's icontheme for programs that draw icons without widgets
accessibilitysemantic roles, keyboard-first guarantee, in-process AT-SPI bridge
animation (adw::TimedAnimation, SpringAnimation)anim: tweens, easing curves, springs, Sequence/Parallel/Delay timelines, reduced motion

Protocols and platform ​

Details: Application model, Input model.

Arealys-ui
windowsxdg-shell toplevels (close veto, resize edges, min/max, maximize, fullscreen per output, transient parents, move/resize grabs), wlr-layer-shell surfaces
decorationsxdg-decoration when the compositor decorates; HeaderBar is the explicit client-side opt-in
window iconsxdg-toplevel-icon-v1
surface hintscontent type, live opacity (alpha-modifier), error bell, wm_capabilities
keyboardthe compositor's xkb keymap, synthesized repeat
IMEzwp_text_input_v3 into Entry and TextArea, popovers included
pointer, cursorscursor-shape-v1 with xcursor fallback, pointer constraints, relative motion
touch, gestures, tabletswl_touch with pointer emulation, pointer-gestures, tablet-v2 stylus samples
fractional scalewp_viewporter + wp_fractional_scale_v1, live rescale; integer fallback
clipboardwl_data_device + primary selection; text, images, URIs, HTML
clipboard managersext-data-control-v1, wlr-data-control fallback
taskbars, launcherswlr-foreign-toplevel-management, xdg-activation, OpenURL/OpenPath (the OpenURI portal); xdg-foreign v2 exports every toplevel so portal dialogs parent to it
idleidle inhibit, ext-idle-notify-v1 (OnIdle)
shortcutskeyboard-shortcuts-inhibit, GlobalShortcuts portal, xx_hotkey_v1 client-chosen hotkeys
printing (GtkPrintDialog, GtkPrintOperation)Application.Print through the Print portal, ExportPDF; pages painted as rasters into a PDF by pdf
session, backgroundInhibit portal (Inhibit, OnSessionStateChange with query-end), Background portal (RequestBackground, SetBackgroundStatus)
lock screensext-session-lock-v1 (LockSession, every output, hotplug)
notificationsApplication.Notify with actions
screen capturecapture: wlr-screencopy, ext-image-copy-capture, Hyprland toplevel export, dmabuf import
file and fd watchingWatchFiles, WatchFD on the loop
compositor restartstyped disconnect, clean exit code 75, optional reconnect with rebuild
system appearance (adw::StyleManager)Application.ColorScheme, Accent, Contrast with loop-delivered On*Change hooks; types in appearance

Known gaps ​

  • The AT-SPI bridge has no Selection or Table interfaces and reports no text attributes (Accessibility).
  • Tablet pads are not bound.
  • CSS limits are listed per section in CSS.

Tested compositors ​

lys-ui is tested on Sway and Hyprland. Sway runs the full compositor-in-the-loop suite (internal/headlesstest). Hyprland runs the same suite except the reconnect test, which needs a compositor restart; the compositor-kill test runs last, on its own.

Released under the MIT License.