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 e147ea65..3dccc226 100644 --- a/apps/web/src/components/editor/properties-panel/text-properties.tsx +++ b/apps/web/src/components/editor/properties-panel/text-properties.tsx @@ -5,6 +5,7 @@ import { TextElement } from "@/types/timeline"; import { useTimelineStore } from "@/stores/timeline-store"; import { Slider } from "@/components/ui/slider"; import { Input } from "@/components/ui/input"; +import { Button } from "@/components/ui/button"; import { PropertyItem, PropertyItemLabel, @@ -42,6 +43,61 @@ export function TextProperties({ + + Style + +
+ + + + +
+
+
Font size
@@ -85,6 +141,50 @@ export function TextProperties({ /> + + Background + + { + const backgroundColor = e.target.value; + updateTextElement(trackId, element.id, { backgroundColor }); + }} + className="w-full cursor-pointer rounded-full" + /> + + + + Opacity + +
+ + updateTextElement(trackId, element.id, { opacity: value / 100 }) + } + className="w-full" + /> + + updateTextElement(trackId, element.id, { + opacity: parseInt(e.target.value) / 100, + }) + } + className="w-12 !text-xs h-7 rounded-sm text-center + [appearance:textfield] + [&::-webkit-outer-spin-button]:appearance-none + [&::-webkit-inner-spin-button]:appearance-none" + /> +
+
+
); -} +} \ No newline at end of file