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
Environment: GLUTTER_BACKEND=x11|wayland, 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), and GLUTTER_GALLERY_ANIMATE=1 starts its progress indicators animating. In debug builds: GLUTTER_DEV_PAGE=<slug> does the same, GLUTTER_DEV_THEME=dark starts in dark mode, 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.