summaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authorDipanshu Rawat <dv451197@gmail.com>2025-07-25 14:39:42 +0530
committerDipanshu Rawat <dv451197@gmail.com>2025-07-25 14:39:42 +0530
commit7e4a4e2095907e7dd2dfdb5c317c1900dd36c89a (patch)
tree88a8ba39d5b40b512a30fe3d66f06044aa1d4f30 /apps/web/src
parent65c3f9f7f78f787262a88c75b96a118ca5bee15c (diff)
downloadopencut-7e4a4e2095907e7dd2dfdb5c317c1900dd36c89a.tar.gz
feat: update text color
Diffstat (limited to 'apps/web/src')
-rw-r--r--apps/web/src/components/editor/properties-panel/text-properties.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/properties-panel/text-properties.tsx b/apps/web/src/components/editor/properties-panel/text-properties.tsx
index 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>
);
}