mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
Merge pull request #454 from dipanshurdev/text-feat
feat: update text color
This commit is contained in:
@@ -71,6 +71,20 @@ export function TextProperties({
|
|||||||
</div>
|
</div>
|
||||||
</PropertyItemValue>
|
</PropertyItemValue>
|
||||||
</PropertyItem>
|
</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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user