Skip to content

Commit b6b6d62

Browse files
committed
linear colors border, not bg
1 parent 9d95d91 commit b6b6d62

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

src/internal/components/QrCode/QrCodeSvg.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function QRCodeSVG({
4343
logoMargin = 5,
4444
logoBorderRadius = 0,
4545
quietZone = 12,
46-
quietZoneBorderRadius = 8,
46+
quietZoneBorderRadius = 10,
4747
ecl = 'Q',
4848
gradientType = 'radial',
4949
}: QRCodeSVGProps) {
@@ -156,7 +156,9 @@ export function QRCodeSVG({
156156
y={-quietZone}
157157
width={size + quietZone * 2}
158158
height={size + quietZone * 2}
159-
fill={bgColor}
159+
fill={backgroundColor}
160+
stroke={bgColor}
161+
strokeWidth={2}
160162
/>
161163
</g>
162164
<g>

src/internal/components/QrCode/gradientConstants.ts

+13-8
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ockThemeToRadiamGradientColorMap = {
1919
default: 'default',
2020
base: 'blue',
2121
cyberpunk: 'magenta',
22-
hacker: 'red',
22+
hacker: 'black',
2323
};
2424

2525
export const linearGradientStops: Record<string, LinearGradient> = {
@@ -32,8 +32,8 @@ export const linearGradientStops: Record<string, LinearGradient> = {
3232
endColor: '#CE46BD',
3333
},
3434
black: {
35-
startColor: '#52525b',
36-
endColor: '#ffffff',
35+
startColor: '#a1a1aa',
36+
endColor: '#27272a',
3737
},
3838
baseBlue: {
3939
startColor: '#0052ff',
@@ -68,16 +68,21 @@ export const presetGradients = {
6868
['#0F27FF', '76.56%'],
6969
['#201F1D', '100%'],
7070
],
71-
red: [
72-
['#EE2634', '39.06%'],
73-
['#6100FF', '76.56%'],
74-
['#201F1D', '100%'],
75-
],
7671
magenta: [
7772
['#CF00F1', '36.46%'],
7873
['#7900F1', '68.58%'],
7974
['#201F1D', '100%'],
8075
],
76+
black: [
77+
['#d4d4d8', '36.46%'],
78+
['#201F1D', '68.58%'],
79+
['#201F1D', '100%'],
80+
],
81+
// red: [
82+
// ['#EE2634', '39.06%'],
83+
// ['#6100FF', '76.56%'],
84+
// ['#201F1D', '100%'],
85+
// ],
8186
// cyan: [
8287
// ['#007cd6', '39.06%'],
8388
// ['#6100FF', '76.56%'],

0 commit comments

Comments
 (0)