Make sure correct dark mode colours get used in exports (#2492)
Also tweaks the colours of menus in dark mode to have a little higher contrast. Fixed #2493 ### Change Type - [x] `patch` — Bug fix [^1]: publishes a `patch` release, for devDependencies use `internal` [^2]: will not publish a new version --------- Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 5 KiB After Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -144,7 +144,7 @@
|
||||||
--color-brush-fill: hsl(0, 0%, 71%, 5.1%);
|
--color-brush-fill: hsl(0, 0%, 71%, 5.1%);
|
||||||
--color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
|
--color-brush-stroke: hsl(0, 0%, 71%, 25.1%);
|
||||||
--color-grid: hsl(0, 0%, 56%);
|
--color-grid: hsl(0, 0%, 56%);
|
||||||
--color-low: hsl(260, 5%, 5%);
|
--color-low: hsl(260, 5%, 12.5%);
|
||||||
--color-low-border: hsl(207, 10%, 10%);
|
--color-low-border: hsl(207, 10%, 10%);
|
||||||
--color-culled: hsl(210, 11%, 19%);
|
--color-culled: hsl(210, 11%, 19%);
|
||||||
--color-muted-none: hsl(0, 0%, 100%, 0%);
|
--color-muted-none: hsl(0, 0%, 100%, 0%);
|
||||||
|
|
|
@ -475,7 +475,10 @@ const DebugSvgCopy = track(function DupSvg({ id }: { id: TLShapeId }) {
|
||||||
const renderId = Math.random()
|
const renderId = Math.random()
|
||||||
latest = renderId
|
latest = renderId
|
||||||
const bb = editor.getShapePageBounds(id)
|
const bb = editor.getShapePageBounds(id)
|
||||||
const el = await editor.getSvg([id], { padding: 0 })
|
const el = await editor.getSvg([id], {
|
||||||
|
padding: 0,
|
||||||
|
background: editor.getInstanceState().exportBackground,
|
||||||
|
})
|
||||||
if (el && bb && latest === renderId) {
|
if (el && bb && latest === renderId) {
|
||||||
el.style.setProperty('overflow', 'visible')
|
el.style.setProperty('overflow', 'visible')
|
||||||
el.setAttribute('preserveAspectRatio', 'xMidYMin slice')
|
el.setAttribute('preserveAspectRatio', 'xMidYMin slice')
|
||||||
|
|
|
@ -160,9 +160,9 @@ export const DefaultColorThemePalette: {
|
||||||
},
|
},
|
||||||
darkMode: {
|
darkMode: {
|
||||||
id: 'dark',
|
id: 'dark',
|
||||||
text: '#f8f9fa',
|
text: 'hsl(210, 17%, 98%)',
|
||||||
background: '#212529',
|
background: 'hsl(240, 5%, 8%)',
|
||||||
solid: '#28292e',
|
solid: '#010403',
|
||||||
|
|
||||||
black: {
|
black: {
|
||||||
solid: '#e1e1e1',
|
solid: '#e1e1e1',
|
||||||
|
|