feat: dark theme export background

This commit is contained in:
Arnošt Pleskot
2023-08-13 20:00:17 +02:00
parent baa133cbb7
commit 787f5d68cf
11 changed files with 172 additions and 75 deletions
+6 -2
View File
@@ -32,7 +32,11 @@ import { isOverScrollBars } from "./scene";
import { MaybeTransformHandleType } from "./element/transformHandles";
import Library from "./data/library";
import type { FileSystemHandle } from "./data/filesystem";
import type { IMAGE_MIME_TYPES, MIME_TYPES } from "./constants";
import type {
FANCY_BACKGROUND_IMAGES,
IMAGE_MIME_TYPES,
MIME_TYPES,
} from "./constants";
import { ContextMenuItems } from "./components/ContextMenu";
import { Merge, ForwardRef, ValueOf } from "./utility-types";
@@ -287,7 +291,7 @@ export type AppState = {
pendingImageElementId: ExcalidrawImageElement["id"] | null;
showHyperlinkPopup: false | "info" | "editor";
selectedLinearElement: LinearElementEditor | null;
fancyBackgroundImageUrl: DataURL | null;
fancyBackgroundImageKey: keyof typeof FANCY_BACKGROUND_IMAGES;
};
export type UIAppState = Omit<