WIP components (as built)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 15:51:57 -04:00
1 parent a22527cceb
commit ade219840e
70 files changed
+2610 -235

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ import (
"mujicaui/theme"
)
// PastedImage is an image pasted or dropped into a prompt; the caller decodes it.
// PastedImage contains a caller-decoded clipboard or dropped image.
type PastedImage struct {
// ID is the image's stable identity; required.
ID string
@@ -22,7 +22,7 @@ type PastedImage struct {
// pasteImageSize is the thumbnail's edge in DIPs.
const pasteImageSize float32 = 72
// PasteImagePreview shows pasted or dropped images as thumbnails, each with a remove button.
// PasteImagePreview displays removable image thumbnails.
func PasteImagePreview(c *ui.Context, images []PastedImage) RemoveResult {
k := Tokens(c)
u := Density(c).Unit()