fix(icons): generate non-transparent PNGs\n\n- prefer rsvg-convert/inkscape with fallback to ImageMagick\n- inject explicit stroke/fill on <path> to avoid inheritance issues\n- document rasterizer behavior in icons/README
This commit is contained in:
		
					parent
					
						
							
								16b422fc66
							
						
					
				
			
			
				commit
				
					
						6ba833769c
					
				
			
		
					 2 changed files with 51 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ Run `npm run build` (or `npm run build:icons`) to regenerate. The manifest is wi
 | 
			
		|||
Notes
 | 
			
		||||
-----
 | 
			
		||||
- Source: `icons/file-search.svg` uses `stroke="currentColor"`.
 | 
			
		||||
- The build script replaces `currentColor` with configured colors and rasterizes with a transparent background.
 | 
			
		||||
- The build script replaces `currentColor` with configured colors and rasterizes with a transparent background. It also injects explicit `stroke`/`fill` on each path for better compatibility across renderers.
 | 
			
		||||
- Default stroke colors use the project emphasis palette:
 | 
			
		||||
  - Add‑on icons (48/96/128): Primary 2 (deep) `#223544`.
 | 
			
		||||
  - Toolbar icons (16/32): Primary 1 (light) `#5AC3D6`.
 | 
			
		||||
| 
						 | 
				
			
			@ -24,3 +24,4 @@ Notes
 | 
			
		|||
  - `ICON_COLOR_TOOLBAR` (16/32); default `#5AC3D6`.
 | 
			
		||||
- Firefox does not require .ico; PNG is recommended.
 | 
			
		||||
- Theme variants can be added later via `browser_action.theme_icons`.
 | 
			
		||||
 - Rasterizer: the script will use `rsvg-convert` if available, then `inkscape`, and falls back to ImageMagick (`magick`/`convert`). Install one of these locally.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue