1
0
Fork 0

Revert "[plugin-theme] fix: Better support for dark mode in SVG styles"

This reverts commit a01f300445.
See #335
This commit is contained in:
joostdecock 2025-05-04 11:15:22 +02:00
parent e9e551bd46
commit 8295409eee

View file

@ -42,7 +42,7 @@ ${!stripped ? 'svg.freesewing ' : ''}path.sample-focus {
const round = (value) => Math.round(value * 1e2) / 1e2 const round = (value) => Math.round(value * 1e2) / 1e2
const colors = { const colors = {
fabric: 'currentColor', fabric: '#212121',
lining: '#10b981', lining: '#10b981',
interfacing: '#a3a3a3', interfacing: '#a3a3a3',
canvas: '#d97706', canvas: '#d97706',
@ -69,7 +69,7 @@ export const buildStylesheet = (scale = 1, stripped) => `
${!stripped ? '/* Defaults */' : ''} ${!stripped ? '/* Defaults */' : ''}
${!stripped ? 'svg.freesewing ' : ''}path, ${!stripped ? 'svg.freesewing ' : ''}path,
${!stripped ? 'svg.freesewing ' : ''}circle { ${!stripped ? 'svg.freesewing ' : ''}circle {
stroke: currentColor; stroke: #000;
stroke-opacity: 1; stroke-opacity: 1;
stroke-width: ${round(0.3 * scale)}; stroke-width: ${round(0.3 * scale)};
stroke-linecap: round; stroke-linecap: round;
@ -191,7 +191,7 @@ export const buildStylesheet = (scale = 1, stripped) => `
font-size: ${round(5 * scale)}px; font-size: ${round(5 * scale)}px;
font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
Arial, sans-serif; Arial, sans-serif;
fill: currentColor; fill: #000;
text-anchor: start; text-anchor: start;
font-weight: 200; font-weight: 200;
dominant-baseline: ideographic; dominant-baseline: ideographic;