{
}
document
.querySelector(".excalidraw")
- ?.classList.toggle("Appearance_dark", this.state.appearance === "dark");
+ ?.classList.toggle("theme--dark", this.state.theme === "dark");
if (
this.state.editingLinearElement &&
diff --git a/src/components/BackgroundPickerAndDarkModeToggle.tsx b/src/components/BackgroundPickerAndDarkModeToggle.tsx
index f2eba131..3fb03a70 100644
--- a/src/components/BackgroundPickerAndDarkModeToggle.tsx
+++ b/src/components/BackgroundPickerAndDarkModeToggle.tsx
@@ -16,9 +16,9 @@ export const BackgroundPickerAndDarkModeToggle = ({
{actionManager.renderAction("changeViewBackgroundColor")}
{
- setAppState({ appearance });
+ value={appState.theme}
+ onChange={(theme) => {
+ setAppState({ theme });
}}
/>
diff --git a/src/components/ColorPicker.scss b/src/components/ColorPicker.scss
index cc65592e..fb960c9f 100644
--- a/src/components/ColorPicker.scss
+++ b/src/components/ColorPicker.scss
@@ -73,7 +73,7 @@
box-sizing: border-box;
border: 1px solid #ddd;
background-color: currentColor !important;
- filter: var(--appearance-filter);
+ filter: var(--theme-filter);
&:focus {
/* TODO: only show the border when the color is too light to see as a shadow */
@@ -192,7 +192,7 @@
position: relative;
overflow: hidden;
background-color: transparent !important;
- filter: var(--appearance-filter);
+ filter: var(--theme-filter);
&:after {
content: "";
@@ -239,7 +239,7 @@
color: #d4d4d4;
}
- &.Appearance_dark {
+ &.theme--dark {
.color-picker-type-elementBackground .color-picker-keybinding {
color: $oc-black;
}
diff --git a/src/components/ContextMenu.tsx b/src/components/ContextMenu.tsx
index 2a2c9b96..508502d1 100644
--- a/src/components/ContextMenu.tsx
+++ b/src/components/ContextMenu.tsx
@@ -34,11 +34,11 @@ const ContextMenu = ({
}: ContextMenuProps) => {
const isDarkTheme = !!document
.querySelector(".excalidraw")
- ?.classList.contains("Appearance_dark");
+ ?.classList.contains("theme--dark");
return (
(
+ ({ theme }: { theme: "light" | "dark" }) => (
diff --git a/src/components/IconPicker.scss b/src/components/IconPicker.scss
index c79f3569..b83fb7e8 100644
--- a/src/components/IconPicker.scss
+++ b/src/components/IconPicker.scss
@@ -132,7 +132,7 @@
color: #d4d4d4;
}
- &.Appearance_dark {
+ &.theme--dark {
.picker-type-elementBackground .picker-keybinding {
color: $oc-black;
}
diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx
index 848f6b9e..368fb421 100644
--- a/src/components/LayerUI.tsx
+++ b/src/components/LayerUI.tsx
@@ -603,7 +603,7 @@ const LayerUI = ({
},
)}
>
-
+
);
};
diff --git a/src/components/LibraryUnit.scss b/src/components/LibraryUnit.scss
index 26404cec..4b9b5208 100644
--- a/src/components/LibraryUnit.scss
+++ b/src/components/LibraryUnit.scss
@@ -16,7 +16,7 @@
}
.library-unit__dragger > svg {
- filter: var(--appearance-filter);
+ filter: var(--theme-filter);
flex-grow: 1;
max-height: 100%;
max-width: 100%;
diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx
index 9dcff1ad..03421b3b 100644
--- a/src/components/Modal.tsx
+++ b/src/components/Modal.tsx
@@ -51,14 +51,14 @@ const useBodyRoot = () => {
useLayoutEffect(() => {
const isDarkTheme = !!document
.querySelector(".excalidraw")
- ?.classList.contains("Appearance_dark");
+ ?.classList.contains("theme--dark");
const div = document.createElement("div");
div.classList.add("excalidraw", "excalidraw-modal-container");
if (isDarkTheme) {
- div.classList.add("Appearance_dark");
- div.classList.add("Appearance_dark-background-none");
+ div.classList.add("theme--dark");
+ div.classList.add("theme--dark-background-none");
}
document.body.appendChild(div);
diff --git a/src/components/icons.tsx b/src/components/icons.tsx
index d9d2798f..df2dffcc 100644
--- a/src/components/icons.tsx
+++ b/src/components/icons.tsx
@@ -11,12 +11,12 @@ import React from "react";
import oc from "open-color";
import clsx from "clsx";
-const activeElementColor = (appearance: "light" | "dark") =>
- appearance === "light" ? oc.orange[4] : oc.orange[9];
-const iconFillColor = (appearance: "light" | "dark") =>
- appearance === "light" ? oc.black : oc.gray[4];
-const handlerColor = (appearance: "light" | "dark") =>
- appearance === "light" ? oc.white : "#1e1e1e";
+const activeElementColor = (theme: "light" | "dark") =>
+ theme === "light" ? oc.orange[4] : oc.orange[9];
+const iconFillColor = (theme: "light" | "dark") =>
+ theme === "light" ? oc.black : oc.gray[4];
+const handlerColor = (theme: "light" | "dark") =>
+ theme === "light" ? oc.white : "#1e1e1e";
type Opts = {
width?: number;
@@ -136,19 +136,19 @@ export const resetZoom = createIcon(
);
export const BringForwardIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -157,19 +157,19 @@ export const BringForwardIcon = React.memo(
);
export const SendBackwardIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -178,19 +178,19 @@ export const SendBackwardIcon = React.memo(
);
export const BringToFrontIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -199,20 +199,20 @@ export const BringToFrontIcon = React.memo(
);
export const SendToBackIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
@@ -228,20 +228,20 @@ export const SendToBackIcon = React.memo(
// that would make them lie about their function.
//
export const AlignTopIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -250,20 +250,20 @@ export const AlignTopIcon = React.memo(
);
export const AlignBottomIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -272,20 +272,20 @@ export const AlignBottomIcon = React.memo(
);
export const AlignLeftIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -294,20 +294,20 @@ export const AlignLeftIcon = React.memo(
);
export const AlignRightIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -316,20 +316,20 @@ export const AlignRightIcon = React.memo(
);
export const DistributeHorizontallyIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -346,20 +346,20 @@ export const DistributeHorizontallyIcon = React.memo(
>;
export const DistributeVerticallyIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
>,
@@ -368,19 +368,19 @@ export const DistributeVerticallyIcon = React.memo(
);
export const CenterVerticallyIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
- createIcon(
- <>
-
-
-
-
-
-
-
-
- >,
- { width: 182, height: 182, mirror: true },
- ),
+export const GroupIcon = React.memo(({ theme }: { theme: "light" | "dark" }) =>
+ createIcon(
+ <>
+
+
+
+
+
+
+
+
+ >,
+ { width: 182, height: 182, mirror: true },
+ ),
);
export const UngroupIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
<>
-
+
-
+
>,
@@ -581,22 +580,22 @@ export const UngroupIcon = React.memo(
);
export const FillHachureIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
{ width: 40, height: 20 },
),
);
export const FillCrossHatchIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
-
+
,
@@ -605,25 +604,19 @@ export const FillCrossHatchIcon = React.memo(
);
export const FillSolidIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
- createIcon(, {
+ ({ theme }: { theme: "light" | "dark" }) =>
+ createIcon(, {
width: 40,
height: 20,
}),
);
export const StrokeWidthIcon = React.memo(
- ({
- appearance,
- strokeWidth,
- }: {
- appearance: "light" | "dark";
- strokeWidth: number;
- }) =>
+ ({ theme, strokeWidth }: { theme: "light" | "dark"; strokeWidth: number }) =>
createIcon(
,
@@ -632,11 +625,11 @@ export const StrokeWidthIcon = React.memo(
);
export const StrokeStyleSolidIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -648,11 +641,11 @@ export const StrokeStyleSolidIcon = React.memo(
);
export const StrokeStyleDashedIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -689,11 +682,11 @@ export const SloppinessArchitectIcon = React.memo(
);
export const SloppinessArtistIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -702,11 +695,11 @@ export const SloppinessArtistIcon = React.memo(
);
export const SloppinessCartoonistIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -715,11 +708,11 @@ export const SloppinessCartoonistIcon = React.memo(
);
export const EdgeSharpIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -728,11 +721,11 @@ export const EdgeSharpIcon = React.memo(
);
export const EdgeRoundIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -741,11 +734,11 @@ export const EdgeRoundIcon = React.memo(
);
export const ArrowheadNoneIcon = React.memo(
- ({ appearance }: { appearance: "light" | "dark" }) =>
+ ({ theme }: { theme: "light" | "dark" }) =>
createIcon(
,
@@ -757,17 +750,11 @@ export const ArrowheadNoneIcon = React.memo(
);
export const ArrowheadArrowIcon = React.memo(
- ({
- appearance,
- flip = false,
- }: {
- appearance: "light" | "dark";
- flip?: boolean;
- }) =>
+ ({ theme, flip = false }: { theme: "light" | "dark"; flip?: boolean }) =>
createIcon(
@@ -779,17 +766,11 @@ export const ArrowheadArrowIcon = React.memo(
);
export const ArrowheadDotIcon = React.memo(
- ({
- appearance,
- flip = false,
- }: {
- appearance: "light" | "dark";
- flip?: boolean;
- }) =>
+ ({ theme, flip = false }: { theme: "light" | "dark"; flip?: boolean }) =>
createIcon(
@@ -800,18 +781,12 @@ export const ArrowheadDotIcon = React.memo(
);
export const ArrowheadBarIcon = React.memo(
- ({
- appearance,
- flip = false,
- }: {
- appearance: "light" | "dark";
- flip?: boolean;
- }) =>
+ ({ theme, flip = false }: { theme: "light" | "dark"; flip?: boolean }) =>
createIcon(
diff --git a/src/constants.ts b/src/constants.ts
index 94711354..aff57e30 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -109,4 +109,4 @@ export const MODES = {
GRID: "gridMode",
};
-export const APPEARANCE_FILTER = cssVariables.appearanceFilter;
+export const THEME_FILTER = cssVariables.themeFilter;
diff --git a/src/css/styles.scss b/src/css/styles.scss
index 164230e2..dbe9ae82 100644
--- a/src/css/styles.scss
+++ b/src/css/styles.scss
@@ -41,13 +41,13 @@
z-index: var(--zIndex-canvas);
}
- &.Appearance_dark {
+ &.theme--dark {
// The percentage is inspired by
// https://material.io/design/color/dark-theme.html#properties, which
// recommends surface color of #121212, 93% yields #111111 for #FFF
canvas {
- filter: var(--appearance-filter);
+ filter: var(--theme-filter);
}
}
diff --git a/src/css/theme.scss b/src/css/theme.scss
index beabe1bb..2cd6a6c3 100644
--- a/src/css/theme.scss
+++ b/src/css/theme.scss
@@ -2,7 +2,7 @@
@import "./variables.module.scss";
.excalidraw {
- --appearance-filter: none;
+ --theme-filter: none;
--button-destructive-bg-color: #{$oc-red-1};
--button-destructive-color: #{$oc-red-9};
--button-gray-1: #{$oc-gray-2};
@@ -35,16 +35,16 @@
--space-factor: 0.25rem;
--text-primary-color: #{$oc-gray-8};
- &.Appearance_dark {
+ &.theme--dark {
background: $oc-black;
- &.Appearance_dark-background-none {
+ &.theme--dark-background-none {
background: none;
}
}
- &.Appearance_dark {
- --appearance-filter: #{$appearance-filter};
+ &.theme--dark {
+ --theme-filter: #{$theme-filter};
--button-destructive-bg-color: #5a0000;
--button-destructive-color: #{$oc-red-3};
--button-gray-1: #363636;
diff --git a/src/css/variables.module.scss b/src/css/variables.module.scss
index a35aa651..f60b0d9d 100644
--- a/src/css/variables.module.scss
+++ b/src/css/variables.module.scss
@@ -2,9 +2,9 @@
// keep up to date with is-mobile.tsx
$is-mobile-query: "(max-width: 600px), (max-height: 500px) and (max-width: 1000px)";
-$appearance-filter: "invert(93%) hue-rotate(180deg)";
+$theme-filter: "invert(93%) hue-rotate(180deg)";
:export {
isMobileQuery: unquote($is-mobile-query);
- appearanceFilter: unquote($appearance-filter);
+ themeFilter: unquote($theme-filter);
}
diff --git a/src/data/blob.ts b/src/data/blob.ts
index 3e1da476..81e01dde 100644
--- a/src/data/blob.ts
+++ b/src/data/blob.ts
@@ -94,7 +94,7 @@ export const loadFromBlob = async (
{
elements: clearElementsForExport(data.elements || []),
appState: {
- appearance: localAppState?.appearance,
+ theme: localAppState?.theme,
fileHandle:
blob.handle &&
["application/json", MIME_TYPES.excalidraw].includes(
diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx
index 1e748a32..5f0ca55a 100644
--- a/src/element/textWysiwyg.tsx
+++ b/src/element/textWysiwyg.tsx
@@ -93,7 +93,7 @@ export const textWysiwyg = ({
textAlign,
color: updatedElement.strokeColor,
opacity: updatedElement.opacity / 100,
- filter: "var(--appearance-filter)",
+ filter: "var(--theme-filter)",
maxWidth: `${maxWidth}px`,
});
}
diff --git a/src/packages/excalidraw/CHANGELOG.md b/src/packages/excalidraw/CHANGELOG.md
index 4689bf12..b6eba3a6 100644
--- a/src/packages/excalidraw/CHANGELOG.md
+++ b/src/packages/excalidraw/CHANGELOG.md
@@ -20,9 +20,17 @@ Please add the latest change on the top under the correct section.
- Support `libraryReturnUrl` prop to indicate what URL to install libraries to [#3227](https://github.com/excalidraw/excalidraw/pull/3227).
+### Refactor
+
+- Rename appearance to theme [#3237](https://github.com/excalidraw/excalidraw/pull/3237).
+ #### BREAKING CHANGE
+ - Since `appState.appearance` is renamed to `appState.theme` so wherever `appState.appearance` including `initialData.appState.appearance` should be renamed to `appState.theme` and `initialData.appState.theme` respectively. If the `appearance` was persisted earlier, now it needs to passed as `theme`.
+ - The class `Appearance_dark` is renamed to `theme--dark`.
+ - The class `Appearance_dark-background-none` is renamed to `theme--dark-background-none`.
+
---
-## 0.4.3
+## 0.4.3 (2021-03-12)
## Excalidraw API
diff --git a/src/renderer/renderScene.ts b/src/renderer/renderScene.ts
index e0228464..ae6a5433 100644
--- a/src/renderer/renderScene.ts
+++ b/src/renderer/renderScene.ts
@@ -49,7 +49,7 @@ import {
} from "../element/transformHandles";
import { viewportCoordsToSceneCoords, supportsEmoji } from "../utils";
import { UserIdleState } from "../excalidraw-app/collab/types";
-import { APPEARANCE_FILTER } from "../constants";
+import { THEME_FILTER } from "../constants";
const hasEmojiSupport = supportsEmoji();
@@ -213,7 +213,7 @@ export const renderScene = (
const normalizedCanvasHeight = canvas.height / scale;
if (sceneState.exportWithDarkMode) {
- context.filter = APPEARANCE_FILTER;
+ context.filter = THEME_FILTER;
}
// Paint background
diff --git a/src/scene/export.ts b/src/scene/export.ts
index 43a2c5a5..fdf0f85c 100644
--- a/src/scene/export.ts
+++ b/src/scene/export.ts
@@ -10,7 +10,7 @@ import { t } from "../i18n";
import {
DEFAULT_FONT_FAMILY,
DEFAULT_VERTICAL_ALIGN,
- APPEARANCE_FILTER,
+ THEME_FILTER,
} from "../constants";
import { getDefaultAppState } from "../appState";
@@ -122,7 +122,7 @@ export const exportToSvg = (
svgRoot.setAttribute("width", `${width * scale}`);
svgRoot.setAttribute("height", `${height * scale}`);
if (exportWithDarkMode) {
- svgRoot.setAttribute("filter", APPEARANCE_FILTER);
+ svgRoot.setAttribute("filter", THEME_FILTER);
}
svgRoot.innerHTML = `
diff --git a/src/tests/__snapshots__/regressionTests.test.tsx.snap b/src/tests/__snapshots__/regressionTests.test.tsx.snap
index 34883c68..ee0f830c 100644
--- a/src/tests/__snapshots__/regressionTests.test.tsx.snap
+++ b/src/tests/__snapshots__/regressionTests.test.tsx.snap
@@ -2,7 +2,6 @@
exports[`given element A and group of elements B and given both are selected when user clicks on B, on pointer up only elements from B should be selected: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -75,6 +74,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -463,7 +463,6 @@ exports[`given element A and group of elements B and given both are selected whe
exports[`given element A and group of elements B and given both are selected when user shift-clicks on B, on pointer up only element A should be selected: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -543,6 +542,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -930,7 +930,6 @@ exports[`given element A and group of elements B and given both are selected whe
exports[`regression tests Cmd/Ctrl-click exclusively select element under pointer: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -993,6 +992,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -1706,7 +1706,6 @@ exports[`regression tests Cmd/Ctrl-click exclusively select element under pointe
exports[`regression tests Drags selected element when hitting only bounding box and keeps element selected: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -1771,6 +1770,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -1910,7 +1910,6 @@ exports[`regression tests Drags selected element when hitting only bounding box
exports[`regression tests adjusts z order when grouping: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -1980,6 +1979,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -2368,7 +2368,6 @@ exports[`regression tests adjusts z order when grouping: [end of test] number of
exports[`regression tests alt-drag duplicates an element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -2433,6 +2432,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -2621,7 +2621,6 @@ exports[`regression tests alt-drag duplicates an element: [end of test] number o
exports[`regression tests arrow keys: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -2683,6 +2682,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -2785,7 +2785,6 @@ exports[`regression tests arrow keys: [end of test] number of renders 1`] = `19`
exports[`regression tests can drag element that covers another element, while another elem is selected: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -2850,6 +2849,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -3262,7 +3262,6 @@ exports[`regression tests can drag element that covers another element, while an
exports[`regression tests change the properties of a shape: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#fa5252",
@@ -3324,6 +3323,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -3570,7 +3570,6 @@ exports[`regression tests change the properties of a shape: [end of test] number
exports[`regression tests click on an element and drag it: [dragged] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -3635,6 +3634,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -3774,7 +3774,6 @@ exports[`regression tests click on an element and drag it: [dragged] number of r
exports[`regression tests click on an element and drag it: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -3841,6 +3840,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -4018,7 +4018,6 @@ exports[`regression tests click on an element and drag it: [end of test] number
exports[`regression tests click to select a shape: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -4083,6 +4082,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -4270,7 +4270,6 @@ exports[`regression tests click to select a shape: [end of test] number of rende
exports[`regression tests click-drag to select a group: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -4336,6 +4335,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -4631,7 +4631,6 @@ exports[`regression tests click-drag to select a group: [end of test] number of
exports[`regression tests deselects group of selected elements on pointer down when pointer doesn't hit any element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -4739,6 +4738,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -4926,7 +4926,6 @@ exports[`regression tests deselects group of selected elements on pointer down w
exports[`regression tests deselects group of selected elements on pointer up when pointer hits common bounding box without hitting any element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -5012,6 +5011,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -5233,7 +5233,6 @@ exports[`regression tests deselects group of selected elements on pointer up whe
exports[`regression tests deselects selected element on pointer down when pointer doesn't hit any element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -5339,6 +5338,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -5441,7 +5441,6 @@ exports[`regression tests deselects selected element on pointer down when pointe
exports[`regression tests deselects selected element, on pointer up, when click hits element bounding box but doesn't hit the element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -5525,6 +5524,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -5627,7 +5627,6 @@ exports[`regression tests deselects selected element, on pointer up, when click
exports[`regression tests double click to edit a group: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -5689,6 +5688,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -6080,7 +6080,6 @@ exports[`regression tests double click to edit a group: [end of test] number of
exports[`regression tests drags selected elements from point inside common bounding box that doesn't hit any element and keeps elements selected after dragging: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -6149,6 +6148,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -6398,7 +6398,6 @@ exports[`regression tests drags selected elements from point inside common bound
exports[`regression tests draw every type of shape: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -6460,6 +6459,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -8432,7 +8432,6 @@ exports[`regression tests draw every type of shape: [end of test] number of rend
exports[`regression tests given a group of selected elements with an element that is not selected inside the group common bounding box when element that is not selected is clicked should switch selection to not selected element on pointer up: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -8499,6 +8498,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -8794,7 +8794,6 @@ exports[`regression tests given a group of selected elements with an element tha
exports[`regression tests given a selected element A and a not selected element B with higher z-index than A and given B partialy overlaps A when there's a shift-click on the overlapped section B is added to the selection: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#fa5252",
@@ -8862,6 +8861,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -9049,7 +9049,6 @@ exports[`regression tests given a selected element A and a not selected element
exports[`regression tests given selected element A with lower z-index than unselected element B and given B is partially over A when clicking intersection between A and B B should be selected on pointer up: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#fa5252",
@@ -9115,6 +9114,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -9302,7 +9302,6 @@ exports[`regression tests given selected element A with lower z-index than unsel
exports[`regression tests given selected element A with lower z-index than unselected element B and given B is partially over A when dragging on intersection between A and B A should be dragged and keep being selected: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#fa5252",
@@ -9369,6 +9368,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -9617,7 +9617,6 @@ exports[`regression tests given selected element A with lower z-index than unsel
exports[`regression tests key 2 selects rectangle tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -9679,6 +9678,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -9781,7 +9781,6 @@ exports[`regression tests key 2 selects rectangle tool: [end of test] number of
exports[`regression tests key 3 selects diamond tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -9843,6 +9842,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -9945,7 +9945,6 @@ exports[`regression tests key 3 selects diamond tool: [end of test] number of re
exports[`regression tests key 4 selects ellipse tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10007,6 +10006,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -10109,7 +10109,6 @@ exports[`regression tests key 4 selects ellipse tool: [end of test] number of re
exports[`regression tests key 5 selects arrow tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10171,6 +10170,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -10303,7 +10303,6 @@ exports[`regression tests key 5 selects arrow tool: [end of test] number of rend
exports[`regression tests key 6 selects line tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10365,6 +10364,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -10497,7 +10497,6 @@ exports[`regression tests key 6 selects line tool: [end of test] number of rende
exports[`regression tests key 7 selects draw tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10559,6 +10558,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -10691,7 +10691,6 @@ exports[`regression tests key 7 selects draw tool: [end of test] number of rende
exports[`regression tests key a selects arrow tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10753,6 +10752,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -10885,7 +10885,6 @@ exports[`regression tests key a selects arrow tool: [end of test] number of rend
exports[`regression tests key d selects diamond tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -10947,6 +10946,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -11049,7 +11049,6 @@ exports[`regression tests key d selects diamond tool: [end of test] number of re
exports[`regression tests key e selects ellipse tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -11111,6 +11110,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -11213,7 +11213,6 @@ exports[`regression tests key e selects ellipse tool: [end of test] number of re
exports[`regression tests key l selects line tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -11275,6 +11274,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -11407,7 +11407,6 @@ exports[`regression tests key l selects line tool: [end of test] number of rende
exports[`regression tests key r selects rectangle tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -11469,6 +11468,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -11571,7 +11571,6 @@ exports[`regression tests key r selects rectangle tool: [end of test] number of
exports[`regression tests key x selects draw tool: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -11633,6 +11632,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -11765,7 +11765,6 @@ exports[`regression tests key x selects draw tool: [end of test] number of rende
exports[`regression tests make a group and duplicate it: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -11838,6 +11837,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -12481,7 +12481,6 @@ exports[`regression tests make a group and duplicate it: [end of test] number of
exports[`regression tests noop interaction after undo shouldn't create history entry: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -12547,6 +12546,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -12734,7 +12734,6 @@ exports[`regression tests noop interaction after undo shouldn't create history e
exports[`regression tests pinch-to-zoom works: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -12796,6 +12795,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -12836,7 +12836,6 @@ exports[`regression tests pinch-to-zoom works: [end of test] number of renders 1
exports[`regression tests rerenders UI on language change: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -12896,6 +12895,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -12936,7 +12936,6 @@ exports[`regression tests rerenders UI on language change: [end of test] number
exports[`regression tests selecting 'Add to library' in context menu adds element to library: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -12998,6 +12997,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -13100,7 +13100,6 @@ exports[`regression tests selecting 'Add to library' in context menu adds elemen
exports[`regression tests selecting 'Bring forward' in context menu brings element forward: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -13162,6 +13161,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -13408,7 +13408,6 @@ exports[`regression tests selecting 'Bring forward' in context menu brings eleme
exports[`regression tests selecting 'Bring to front' in context menu brings element to front: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -13470,6 +13469,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -13716,7 +13716,6 @@ exports[`regression tests selecting 'Bring to front' in context menu brings elem
exports[`regression tests selecting 'Copy styles' in context menu copies styles: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -13778,6 +13777,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": "Copied styles.",
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -13880,7 +13880,6 @@ exports[`regression tests selecting 'Copy styles' in context menu copies styles:
exports[`regression tests selecting 'Delete' in context menu deletes element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -13940,6 +13939,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -14076,7 +14076,6 @@ exports[`regression tests selecting 'Delete' in context menu deletes element: [e
exports[`regression tests selecting 'Duplicate' in context menu duplicates element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -14138,6 +14137,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -14325,7 +14325,6 @@ exports[`regression tests selecting 'Duplicate' in context menu duplicates eleme
exports[`regression tests selecting 'Group selection' in context menu groups selected elements: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -14393,6 +14392,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -14649,7 +14649,6 @@ exports[`regression tests selecting 'Group selection' in context menu groups sel
exports[`regression tests selecting 'Paste styles' in context menu pastes styles: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#e64980",
@@ -14711,6 +14710,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": "Copied styles.",
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -15488,7 +15488,6 @@ exports[`regression tests selecting 'Paste styles' in context menu pastes styles
exports[`regression tests selecting 'Send backward' in context menu sends element backward: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -15550,6 +15549,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -15796,7 +15796,6 @@ exports[`regression tests selecting 'Send backward' in context menu sends elemen
exports[`regression tests selecting 'Send to back' in context menu sends element to back: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -15858,6 +15857,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -16104,7 +16104,6 @@ exports[`regression tests selecting 'Send to back' in context menu sends element
exports[`regression tests selecting 'Ungroup selection' in context menu ungroups selected group: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -16170,6 +16169,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -16483,7 +16483,6 @@ exports[`regression tests selecting 'Ungroup selection' in context menu ungroups
exports[`regression tests shift click on selected element should deselect it on pointer up: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -16548,6 +16547,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -16650,7 +16650,6 @@ exports[`regression tests shift click on selected element should deselect it on
exports[`regression tests shift-click to multiselect, then drag: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -16721,6 +16720,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -16971,7 +16971,6 @@ exports[`regression tests shift-click to multiselect, then drag: [end of test] n
exports[`regression tests should show fill icons when element has non transparent background: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "#fa5252",
@@ -17036,6 +17035,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -17210,7 +17210,6 @@ exports[`regression tests should show fill icons when element has non transparen
exports[`regression tests shows 'Group selection' in context menu for multiple selected elements: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -17278,6 +17277,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -17465,7 +17465,6 @@ exports[`regression tests shows 'Group selection' in context menu for multiple s
exports[`regression tests shows 'Ungroup selection' in context menu for group inside selected elements: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -17535,6 +17534,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -17792,7 +17792,6 @@ exports[`regression tests shows 'Ungroup selection' in context menu for group in
exports[`regression tests shows context menu for canvas: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -17852,6 +17851,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -17892,7 +17892,6 @@ exports[`regression tests shows context menu for canvas: [end of test] number of
exports[`regression tests shows context menu for element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -17954,6 +17953,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -18056,7 +18056,6 @@ exports[`regression tests shows context menu for element: [end of test] number o
exports[`regression tests single-clicking on a subgroup of a selected group should not alter selection: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -18129,6 +18128,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -18877,7 +18877,6 @@ exports[`regression tests single-clicking on a subgroup of a selected group shou
exports[`regression tests spacebar + drag scrolls the canvas: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -18937,6 +18936,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -18977,7 +18977,6 @@ exports[`regression tests spacebar + drag scrolls the canvas: [end of test] numb
exports[`regression tests supports nested groups: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -19041,6 +19040,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -19709,7 +19709,6 @@ exports[`regression tests supports nested groups: [end of test] number of render
exports[`regression tests switches from group of selected elements to another element on pointer down: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -19819,6 +19818,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -20114,7 +20114,6 @@ exports[`regression tests switches from group of selected elements to another el
exports[`regression tests switches selected element on pointer down: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -20222,6 +20221,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -20409,7 +20409,6 @@ exports[`regression tests switches selected element on pointer down: [end of tes
exports[`regression tests two-finger scroll works: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -20471,6 +20470,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -20511,7 +20511,6 @@ exports[`regression tests two-finger scroll works: [end of test] number of rende
exports[`regression tests undo/redo drawing an element: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -20573,6 +20572,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -21009,7 +21009,6 @@ exports[`regression tests undo/redo drawing an element: [end of test] number of
exports[`regression tests updates fontSize & fontFamily appState: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -21069,6 +21068,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
@@ -21109,7 +21109,6 @@ exports[`regression tests updates fontSize & fontFamily appState: [end of test]
exports[`regression tests zoom hotkeys: [end of test] appState 1`] = `
Object {
- "appearance": "light",
"collaborators": Map {},
"currentChartType": "bar",
"currentItemBackgroundColor": "transparent",
@@ -21169,6 +21168,7 @@ Object {
"showStats": false,
"startBoundElement": null,
"suggestedBindings": Array [],
+ "theme": "light",
"toastMessage": null,
"viewBackgroundColor": "#ffffff",
"viewModeEnabled": false,
diff --git a/src/types.ts b/src/types.ts
index 1813b018..58761343 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -90,7 +90,7 @@ export type AppState = {
showHelpDialog: boolean;
toastMessage: string | null;
zenModeEnabled: boolean;
- appearance: "light" | "dark";
+ theme: "light" | "dark";
gridSize: number | null;
viewModeEnabled: boolean;