The open-source CapCut alternative
feat: update text color
Dipanshu Rawat7e4a4e209590
diff --git a/apps/web/src/components/editor/properties-panel/text-properties.tsx b/apps/web/src/components/editor/properties-panel/text-properties.tsxindex c55c3dae..e147ea65 100644--- a/apps/web/src/components/editor/properties-panel/text-properties.tsx+++ b/apps/web/src/components/editor/properties-panel/text-properties.tsx@@ -71,6 +71,20 @@ export function TextProperties({</div></PropertyItemValue></PropertyItem>+ <PropertyItem direction="row">+ <PropertyItemLabel>Color</PropertyItemLabel>+ <PropertyItemValue>+ <Input+ type="color"+ value={element.color || "#ffffff"}+ onChange={(e) => {+ const color = e.target.value;+ updateTextElement(trackId, element.id, { color });+ }}+ className="w-full cursor-pointer rounded-full"+ />+ </PropertyItemValue>+ </PropertyItem></div>);}