Pad/internal/ui/icons/icons.go
Greg Pomerantz 93a7a0a0b2 fix: remove duplicate scale storage, read from State via ScaleProvider interface
- Remove Renderer.scale field and SetScale method
- Add ScaleProvider interface to avoid editor/ui import cycle
- Add Scale() method to State, rename Scale field to scale
- Renderer reads scale through r.scale.Scale()
- Fix icons.go blank import preventing embed.FS usage
- Update main.go to pass State as ScaleProvider to Renderer
2026-05-17 10:59:29 -04:00

41 lines
1.6 KiB
Go

// Code generated by gen_icons.go; DO NOT EDIT.
package icons
import (
"embed"
)
//go:embed copy.svg cut.svg paste.svg
var svgFS embed.FS
// copySVG contains the copy icon SVG source.
var copySVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<rect x="7" y="7" width="12" height="14" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/>
<rect x="4" y="4" width="12" height="14" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/>
</svg>
`
// cutSVG contains the cut icon SVG source.
var cutSVG = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<!-- Left blade -->
<circle cx="7" cy="7" r="4" />
<line x1="9.5" y1="9.5" x2="14" y2="14" />
<!-- Right blade -->
<circle cx="17" cy="7" r="4" />
<line x1="14.5" y1="9.5" x2="10" y2="14" />
<!-- Handles -->
<line x1="7" y1="3" x2="7" y2="11" />
<line x1="17" y1="3" x2="17" y2="11" />
</svg>
`
// pasteSVG contains the paste icon SVG source.
var pasteSVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
<rect x="5" y="6" width="14" height="15" rx="1" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M8 6V4.5C8 3.67 8.67 3 9.5 3h5C15.33 3 16 3.67 16 4.5V6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<line x1="8" y1="10" x2="16" y2="10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<line x1="8" y1="14" x2="16" y2="14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
`