mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
set text colour for new labels
This commit is contained in:
parent
22e70b2b23
commit
7e0a3f2d12
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
isPointerInBoundingBox,
|
||||
stopDraw,
|
||||
TEXT_BACKGROUND_COLOR,
|
||||
TEXT_COLOR,
|
||||
TEXT_FONT_FAMILY,
|
||||
TEXT_PADDING,
|
||||
} from "./lib";
|
||||
|
|
@ -41,6 +42,7 @@ export const drawText = (canvas: fabric.Canvas, onActivated: Callback): void =>
|
|||
selectable: true,
|
||||
strokeWidth: 1,
|
||||
noScaleCache: false,
|
||||
fill: TEXT_COLOR,
|
||||
fontFamily: TEXT_FONT_FAMILY,
|
||||
backgroundColor: TEXT_BACKGROUND_COLOR,
|
||||
padding: TEXT_PADDING,
|
||||
|
|
|
|||
Loading…
Reference in a new issue