diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-25 01:37:56 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-25 01:37:56 +0100 |
| commit | f75b5d3fd28349ee69f03be34c1316122992c283 (patch) | |
| tree | 45e233d9b4c83b02be2a7bfe13ea943a676bd9be /apps/web/src/constants/text-constants.ts | |
| parent | 4d77e3f2bb9884ad9e43761eaf0ede8c1a9cfccc (diff) | |
| download | opencut-f75b5d3fd28349ee69f03be34c1316122992c283.tar.gz | |
fix a ton of issues + improvement
Diffstat (limited to 'apps/web/src/constants/text-constants.ts')
| -rw-r--r-- | apps/web/src/constants/text-constants.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/web/src/constants/text-constants.ts b/apps/web/src/constants/text-constants.ts index f0b2143d..6b688ed1 100644 --- a/apps/web/src/constants/text-constants.ts +++ b/apps/web/src/constants/text-constants.ts @@ -17,6 +17,15 @@ export const FONT_SIZE_SCALE_REFERENCE = 90; export const DEFAULT_LETTER_SPACING = 0; export const DEFAULT_LINE_HEIGHT = 1.2; +export const DEFAULT_TEXT_BACKGROUND = { + color: "#000000", + cornerRadius: 0, + paddingX: 30, + paddingY: 42, + offsetX: 0, + offsetY: 0, +}; + export const DEFAULT_TEXT_ELEMENT: Omit<TextElement, "id"> = { type: "text", name: "Text", @@ -24,7 +33,7 @@ export const DEFAULT_TEXT_ELEMENT: Omit<TextElement, "id"> = { fontSize: 15, fontFamily: "Arial", color: "#ffffff", - backgroundColor: "#000000", + background: DEFAULT_TEXT_BACKGROUND, textAlign: "center", fontWeight: "normal", fontStyle: "normal", |
