fix: adjust arrow and pencil colors

pull/7453/head
Konstantinos Kaloutas 2022-11-24 10:21:29 +02:00 committed by Tienson Qin
parent fddaa84597
commit b1d763e7f5
3 changed files with 4 additions and 4 deletions

View File

@ -161,7 +161,7 @@ export class LineShape extends TLLineShape<LineShapeProps> {
<>
<Arrow
style={{
stroke: getComputedColor(stroke, 'stroke'),
stroke: getComputedColor(stroke, 'text'),
fill,
strokeWidth,
strokeType,

View File

@ -131,8 +131,8 @@ export class PencilShape extends TLDrawShape<PencilShapeProps> {
strokeWidth={strokeWidth / 2}
strokeLinejoin="round"
strokeLinecap="round"
stroke={getComputedColor(stroke, 'stroke')}
fill={getComputedColor(stroke, 'stroke')}
stroke={getComputedColor(stroke, 'text')}
fill={getComputedColor(stroke, 'text')}
strokeDasharray={strokeType === 'dashed' ? '12 4' : undefined}
/>
)

View File

@ -7,7 +7,7 @@
--ls-wb-stroke-color-purple: var(--color-purple-500, purple);
--ls-wb-stroke-color-pink: var(--color-pink-500, pink);
--ls-wb-stroke-color-default: var(--ls-secondary-border-color);
--ls-wb-text-color-default: var(--ls-secondary-text-color);
--ls-wb-text-color-default: var(--ls-primary-text-color);
--ls-wb-background-color-default: var(--ls-tertiary-background-color);
}