Documentation
¶
Overview ¶
Package icons parses the Remix Icon icons Godwit uses (web.RemixIcons, embedded from the remixicon package, v4.8.0, the last Apache-2.0 release), the line style, and the fill style of those a selected rail button or sidebar row shows. Each is named for its use, as "trash-2". ui.Icon tints them with the text color.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Bird = ui.MustParseSVG([]byte(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M46.6 145.4c-2.7 1.9-.4 14.8 5 27.6q8.7 20.8 24.2 38.5l4 4.6a243 243 0 0 0 25.3 24.7c9.6 8.6 24.7 18.8 49.4 33.5 18.1 10.7 26.5 17.5 30.9 24.9 4.7 7.8.4 12.8-11 12.8-9.8 0-25 4.2-39.1 10.7a263 263 0 0 0-20.7 11c-5 2.7-4.3 3.7 2.5 4.2 11.4.8 38.3 3.1 42.7 3.7l4.6.5 6.6.8 8.1 1a822 822 0 0 1 32 4.7c5.4 1.7 19.8 2.5 29.6 1.7a111 111 0 0 0 70.2-36.9c3.2-3.8 4-5 7.9-10.8 14.2-21.2 25.8-28.7 47-30.5l5.8-.6 5.9-.7 5.9-.6 5-.5 5.2-.5 3.5-.5 3.5-.4c1-.1 2.5-.2 3.2-.4l3.9-.5 4.2-.5 4.8-.6a233 233 0 0 0 16.3-2.5l5.8-1 7.2-1.5c5.1-1 7.3-1.6 12.4-2.9l5.9-1.5c6.2-1.5 20.3-6.9 21.6-8.3q2.1-2.4-3.7-.6l-3.6 1.1-5 1.5a284 284 0 0 1-34.9 8.2c-8.2 1.2-14.6 2.2-16.8 2.4l-8.7 1c-4.6.6-12.2.9-24.6.9-24 0-28.6-.8-34.8-6a23 23 0 0 0-26-2.7c-5.3 2.6-8.7 5.7-17.5 16a99 99 0 0 1-16.2 15.6 36 36 0 0 1-44.5-2.5l-2.7-2.3a73 73 0 0 1-7.7-9c-2.1-3.2-5.9-9.2-7.4-11.8-17.7-31.8-31.7-44.9-60.6-57a282 282 0 0 0-27.7-9.1l-5.4-1.5-9.6-2.9-5-1.5c-7-2.1-14.8-4.7-21.4-7.2a150 150 0 0 1-48-30.1c-6.5-6.3-6.5-6.3-7.7-5.5zM91.2 194l4.4 3.1a148 148 0 0 0 33.5 19c10.2 4.2 12.8 5.1 31.2 10.8l8.4 2.7 5.4 1.9a81 81 0 0 1 43.4 31.3c5.4 8.2 5.1 10.7-.6 4.6a104 104 0 0 0-35.9-24.8c-6.5-2.8-13.2-5-29.4-9.6-8.8-2.5-10.7-3.1-15.1-4.6-21.7-7.4-34.6-16.2-45-30.4q-5.1-7.1-.3-4"/></svg>`))
Bird is the Godwit bird, the empty reader pane's watermark (the mark of the design, a 512 unit box); it is no Remix icon.
Functions ¶
func Brand ¶
Brand returns the mark of a provider ID, as "qq" (see brands/README.md), or nil for a provider without one.
func BrandIcon ¶ added in v1.1.0
BrandIcon returns the glyph of a model provider ID, as "chatgpt" (from web.BrandIcons; ui.Icon tints it), or nil for a provider without one.
func Brands ¶ added in v1.9.0
func Brands() []string
Brands are the IDs of the marks Brand has, sorted: every provider's and more.
func Fill ¶
Fill returns the fill style of a name's icon, as "mail"; one without a fill style panics.
Types ¶
This section is empty.