forked from Blendman974/faceclaw
Fix missing EvenHub app icons; ungate Assistant section of settings
This commit is contained in:
1 parent
7e58c7c05f
commit
d1df4bf046
4 files changed
+16
-15
No files matched your search
@@ -2,7 +2,9 @@ import { rasterizeSvg as render } from './ios-graphics'
|
||||
export function rasterizeSvg(svg: string, size: number, strokeWidth: number) {
|
||||
// Shared icon sources rely on the Android renderer's white, rounded
|
||||
// stroke defaults. Supply those explicitly for a standards SVG renderer.
|
||||
const source = svg.replace(/<svg\b([^>]*)>/, (_tag, attributes: string) => {
|
||||
// Store icons use currentColor without a surrounding document/theme.
|
||||
// Resolve it explicitly; SVGKit does not inherit a host CSS color here.
|
||||
const source = svg.replace(/\bcurrentColor\b/gi, '#ffffff').replace(/<svg\b([^>]*)>/, (_tag, attributes: string) => {
|
||||
const defaults = { xmlns: 'http://www.w3.org/2000/svg', width: '24', height: '24',
|
||||
stroke: svg.includes('fill="none"') ? '#ffffff' : 'none', fill: '#ffffff', 'stroke-width': String(strokeWidth),
|
||||
'stroke-linecap': 'round', 'stroke-linejoin': 'round' }
|
||||
|
||||
Reference in new issue
Block a user