@@ -27,6 +27,7 @@ import ZoomControls from "./ZoomControls";
|
||||
import EditorCanvasToolbar from "./EditorCanvasToolbar";
|
||||
import { createScopedId } from "../store/editorStore.helpers";
|
||||
import { getKonvaGradientProps } from "../utils/gradient";
|
||||
import { getColorWithOpacity } from "../utils/colorOpacity";
|
||||
import { STICKER_DRAG_MIME } from "../types/IconTypes";
|
||||
import { GALLERY_DRAG_MIME } from "../types/GalleryTypes";
|
||||
import {
|
||||
@@ -72,7 +73,12 @@ const EditorCanvas = ({ catalogSize }: EditorCanvasProps) => {
|
||||
const currentPage = pages.find((page) => page.id === currentPageId);
|
||||
|
||||
const bgColor =
|
||||
currentPage?.backgroundType === 'color' || currentPage?.backgroundType === 'gradient'
|
||||
currentPage?.backgroundType === 'color'
|
||||
? getColorWithOpacity(
|
||||
currentPage.backgroundColor,
|
||||
currentPage.backgroundOpacity ?? 100,
|
||||
)
|
||||
: currentPage?.backgroundType === 'gradient'
|
||||
? currentPage.backgroundColor
|
||||
: '#ffffff';
|
||||
const bgGradient = currentPage?.backgroundGradient;
|
||||
|
||||
Reference in New Issue
Block a user