diff options
| author | Maze <167211895+mazeincoding@users.noreply.github.com> | 2025-07-26 11:25:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 11:25:04 +0200 |
| commit | 87a8ac90e5615b451b1bfe79bd7df9ffeb657431 (patch) | |
| tree | 43700f87a431892d0c186992d78e54165a3e6d68 /apps/web | |
| parent | 4f60c0d3541c22a77488ba45d8dcb4129c9df7ae (diff) | |
| parent | 7e4a4e2095907e7dd2dfdb5c317c1900dd36c89a (diff) | |
| download | opencut-87a8ac90e5615b451b1bfe79bd7df9ffeb657431.tar.gz | |
Merge pull request #454 from dipanshurdev/text-feat
feat: update text color
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/src/components/editor/properties-panel/text-properties.tsx | 14 |
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> ); } |
