gallery

command
v1.17.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gallery shows the Material components of Glutter, one page for each group of them, with a side list to choose the page and a toggle between the light and the dark theme. It uses only package material, imported as m.

The first page is the home page, with an index of the components and the choice of the seed color and of the light, dark or system mode.

Run it with: go run ./examples/gallery

On Windows: go run ./cmd/glutter-windows run ./examples/gallery (under Wine on Linux, headless with -headless; GLUTTER_BACKEND is win32 there). What Windows lacks here: a precision touchpad's inertia (see examples/scrolling). The gallery has the native title bar, so Windows 11's snap layouts work; an app that draws its own (WindowDecoration, GLUTTER_DECORATIONS=app) does not get them (SPEC §25.4).

Environment: GLUTTER_BACKEND=x11|wayland (Linux) or win32 (Windows), GLUTTER_SCREENSHOT=<file.png>, GLUTTER_SCREENSHOT_AFTER=<duration>, GLUTTER_GALLERY_PAGE=<slug> opens the page with that slug (in every build; scripts/perf.sh uses it), GLUTTER_GALLERY_ANIMATE=1 starts its progress indicators animating, and GLUTTER_GALLERY_REBUILD=1 builds the whole app again in every frame (scripts/perf-web.sh measures the frames of a full rebuild with it). On the web they are query parameters (?GLUTTER_GALLERY_PAGE=data). Serve it with: go run ./cmd/glutter-web serve ./examples/gallery. In debug builds: GLUTTER_DEV_PAGE=<slug> does the same, GLUTTER_DEV_THEME=dark starts in dark mode (system: it follows the system's appearance), and GLUTTER_DEV_SNACKBAR=1 shows a snack bar when the first page opens, and GLUTTER_DEV_OPEN_MENU=file/recent opens those menus of the Menus page, and GLUTTER_DEV_TEXT_FIELDS=focus,validate focuses a field and validates the form of the Text fields page, and GLUTTER_DEV_QUERY=gr opens the search view of the Search page with that text, and GLUTTER_DEV_PERFORMANCE_OVERLAY=1 shows the performance overlay at the top of the window, and GLUTTER_DEV_GAMEPADS=1 shows a panel with the gamepads that are connected and what they report (the aid of the manual check of a pad, SPEC §28.8).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL