feat: add background color picker and update related functionality in DesignerToolbar

This commit is contained in:
Frank John Begornia
2025-11-18 01:37:09 +08:00
parent 8a9703c24a
commit fce7a0ec72
3 changed files with 44 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ const {
canStyleSelection,
setActiveFillColor,
setActiveStrokeColor,
setBackgroundColor,
zoomLevel,
minZoom,
maxZoom,
@@ -406,8 +407,10 @@ const handleCheckout = async () => {
:on-import-image="addImageFromFile"
:on-fill-change="setActiveFillColor"
:on-stroke-change="setActiveStrokeColor"
:on-background-change="setBackgroundColor"
:active-fill="activeFillColor"
:active-stroke="activeStrokeColor"
:active-background="selectedTemplate.backgroundColor"
:can-style-selection="canStyleSelection"
:zoom="zoomLevel"
:min-zoom="minZoom"