refactor(Center): 迁移毛玻璃效果到统一配置

- FUIEventCard.tsx: 使用 GLASS_BLUR.sm 替代 blur(8px)
- EventFormModal.tsx: 使用 GLASS_BLUR.xs 替代 blur(4px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-26 11:33:11 +08:00
parent 011ddaf96d
commit 2fc1cdf57e
2 changed files with 4 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ import { logger } from '@/utils/logger';
import { getApiBase } from '@/utils/apiConfig';
import { loadWatchlist, loadAllStocks } from '@/store/slices/stockSlice';
import { stockService } from '@/services/stockService';
import { GLASS_BLUR } from '@/constants/glassConfig';
dayjs.locale('zh-cn');
@@ -559,7 +560,7 @@ export const EventFormModal: React.FC<EventFormModalProps> = ({
const modalStyles = {
mask: {
background: 'rgba(0, 0, 0, 0.7)',
backdropFilter: 'blur(4px)',
backdropFilter: GLASS_BLUR.xs,
},
content: {
background: 'linear-gradient(135deg, #1A1A2E 0%, #0F0F1A 100%)',

View File

@@ -35,6 +35,7 @@ import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import type { InvestmentEvent } from '@/types';
import { GLASS_BLUR } from '@/constants/glassConfig';
dayjs.locale('zh-cn');
@@ -126,7 +127,7 @@ export const FUIEventCard = memo<FUIEventCardProps>(({
p={4}
border="1px solid"
borderColor={FUI_THEME.border}
backdropFilter="blur(8px)"
backdropFilter={GLASS_BLUR.sm}
transition="all 0.3s ease"
_hover={{
borderColor: FUI_THEME.borderHover,