更新Company页面的UI为FUI风格
This commit is contained in:
@@ -38,10 +38,10 @@ const MetricCard: React.FC<MetricCardProps> = ({
|
||||
}) => {
|
||||
// 根据数值颜色生成环境光
|
||||
const getAmbientColor = (color: string) => {
|
||||
if (color.includes('red') || color === '#EF4444' || color === darkGoldTheme.priceUp) {
|
||||
if (color.includes('red') || color === '#EF4444' || color === '#FF4444' || color === darkGoldTheme.red) {
|
||||
return 'rgba(239, 68, 68, 0.15)';
|
||||
}
|
||||
if (color.includes('green') || color === '#22C55E' || color === darkGoldTheme.priceDown) {
|
||||
if (color.includes('green') || color === '#22C55E' || color === '#00C851' || color === darkGoldTheme.green) {
|
||||
return 'rgba(34, 197, 94, 0.15)';
|
||||
}
|
||||
return 'rgba(212, 175, 55, 0.1)';
|
||||
|
||||
@@ -39,10 +39,10 @@ const MetricValue: React.FC<MetricValueProps> = ({
|
||||
|
||||
// 生成发光颜色(从传入的颜色中提取或使用默认)
|
||||
const getGlowColor = (c: string) => {
|
||||
if (c.includes('red') || c === '#EF4444' || c === darkGoldTheme.priceUp) {
|
||||
if (c.includes('red') || c === '#EF4444' || c === '#FF4444' || c === darkGoldTheme.red) {
|
||||
return 'rgba(239, 68, 68, 0.5)';
|
||||
}
|
||||
if (c.includes('green') || c === '#22C55E' || c === darkGoldTheme.priceDown) {
|
||||
if (c.includes('green') || c === '#22C55E' || c === '#00C851' || c === darkGoldTheme.green) {
|
||||
return 'rgba(34, 197, 94, 0.5)';
|
||||
}
|
||||
return 'rgba(212, 175, 55, 0.5)';
|
||||
|
||||
Reference in New Issue
Block a user