@@ -6,15 +6,15 @@ const Container = styled.div`
66 display: flex;
77 flex-direction: column;
88 height: 100%;
9- background-color: rgba(250, 250, 252, 0.7 );
9+ background-color: var(--color-surfaceLight );
1010 border-radius: 6px;
1111 padding: 5px;
1212` ;
1313
1414const Label = styled . h3 `
1515 font-size: 14px;
1616 font-weight: 600;
17- color: #3a4a5b ;
17+ color: var(--color-text) ;
1818 margin: 0 0 10px 0;
1919 display: flex;
2020 align-items: center;
@@ -24,12 +24,9 @@ const Label = styled.h3`
2424
2525const ImageContainer = styled . div < { isDragActive : boolean } > `
2626 flex: 1;
27- border: 1px dashed ${ props => props . isDragActive ? '#4375b9 ' : '#dce1e8 ' } ;
27+ border: 1px dashed ${ props => props . isDragActive ? 'var(--color-primary) ' : 'var(--color-border) ' } ;
2828 border-radius: 8px;
29- background: ${ props => props . isDragActive
30- ? 'linear-gradient(135deg, rgba(67, 117, 185, 0.08) 0%, rgba(67, 117, 185, 0.04) 100%)'
31- : 'linear-gradient(135deg, #fefefe 0%, #f7f9fc 100%)'
32- } ;
29+ background: var(--color-surface);
3330 display: flex;
3431 align-items: center;
3532 justify-content: center;
@@ -43,23 +40,23 @@ const ImageContainer = styled.div<{ isDragActive: boolean }>`
4340
4441 /* 添加淡色网格背景,类似于科学论文中的图表网格 */
4542 background-image:
46- linear-gradient(rgba(220, 225, 232, 0.3 ) 1px, transparent 1px),
47- linear-gradient(90deg, rgba(220, 225, 232, 0.3 ) 1px, transparent 1px);
43+ linear-gradient(var(--color-borderLight ) 1px, transparent 1px),
44+ linear-gradient(90deg, var(--color-borderLight ) 1px, transparent 1px);
4845 background-size: 20px 20px;
4946
5047 &:hover {
51- border-color: #4375b9 ;
52- background: linear-gradient(135deg, rgba(67, 117, 185, 0.05) 0%, rgba(67, 117, 185, 0.02) 100%) ;
48+ border-color: var(--color-primary) ;
49+ opacity: 0.95 ;
5350 }
5451` ;
5552
5653const PlaceholderText = styled . div `
5754 text-align: center;
58- color: #4a6583 ;
55+ color: var(--color-text) ;
5956 font-size: 15px;
6057 font-weight: 500;
6158 line-height: 1.4;
62- background-color: rgba(255, 255, 255, 0.7 );
59+ background-color: var(--color-surfaceLight );
6360 padding: 15px;
6461 border-radius: 8px;
6562` ;
@@ -78,7 +75,8 @@ const DragOverlay = styled.div<{ show: boolean }>`
7875 left: 0;
7976 right: 0;
8077 bottom: 0;
81- background: rgba(67, 117, 185, 0.1);
78+ background: var(--color-primaryLight);
79+ opacity: 0.1;
8280 display: ${ props => props . show ? 'flex' : 'none' } ;
8381 align-items: center;
8482 justify-content: center;
@@ -87,14 +85,15 @@ const DragOverlay = styled.div<{ show: boolean }>`
8785` ;
8886
8987const DragText = styled . div `
90- color: #4375b9 ;
88+ color: var(--color-primary) ;
9189 font-size: 16px;
9290 font-weight: 500;
9391 text-align: center;
9492 padding: 16px;
95- border: 1px solid #4375b9 ;
93+ border: 1px solid var(--color-primary) ;
9694 border-radius: 6px;
97- background: rgba(255, 255, 255, 0.9);
95+ background: var(--color-surface);
96+ opacity: 0.95;
9897` ;
9998
10099const ManualRecognizeButton = styled . button `
@@ -200,7 +199,7 @@ const ImageDisplay: React.FC<ImageDisplayProps> = ({
200199 < PlaceholderText >
201200 < MaterialIcon name = "photo_camera" /> 将在此处显示识别的图片
202201 < br />
203- < small style = { { color : '#95a5a6 ' , fontSize : '14px' , marginTop : '8px' , display : 'block' } } >
202+ < small style = { { color : 'var(--color-textSecondary) ' , fontSize : '14px' , marginTop : '8px' , display : 'block' } } >
204203 点击此区域选择图片或拖拽图片文件到此处(最大10MB)
205204 </ small >
206205 </ PlaceholderText >
0 commit comments