mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-07 05:02:50 +08:00
style: use softer blue for AI extraction info in dark mode (#817)
- Use Gmail's #A8C7FA color for AI extraction alert and tag in dark mode - Update CHANGELOG.md and CHANGELOG_EN.md for v1.2.1 Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
|
||||
- fix: |定时任务| 修复定时任务清理报错 `e.get is not a function`,使用可选链安全访问 Context 方法
|
||||
|
||||
### Improvements
|
||||
|
||||
- style: |AI 提取| 暗色模式下 AI 提取信息使用更柔和的蓝色 (#A8C7FA),减少视觉疲劳
|
||||
|
||||
## v1.2.0
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
@@ -6,7 +6,17 @@
|
||||
<a href="CHANGELOG_EN.md">🇺🇸 English</a>
|
||||
</p>
|
||||
|
||||
## v1.2.0(main)
|
||||
## v1.2.1(main)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- fix: |Scheduled Tasks| Fix scheduled task cleanup error `e.get is not a function`, use optional chaining for safe access to Context methods
|
||||
|
||||
### Improvements
|
||||
|
||||
- style: |AI Extraction| Use softer blue color (#A8C7FA) for AI extraction info in dark mode to reduce eye strain
|
||||
|
||||
## v1.2.0
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
|
||||
@@ -3,8 +3,34 @@ import { computed } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { ContentCopyOutlined, LinkRound, CodeRound } from '@vicons/material';
|
||||
import { useMessage } from 'naive-ui';
|
||||
import { useGlobalState } from '../store';
|
||||
|
||||
const message = useMessage();
|
||||
const { isDark } = useGlobalState();
|
||||
|
||||
// Dark mode: use Gmail's softer blue (#A8C7FA) for better readability
|
||||
const alertThemeOverrides = computed(() => {
|
||||
if (isDark.value) {
|
||||
return {
|
||||
colorSuccess: 'rgba(168, 199, 250, 0.15)',
|
||||
borderSuccess: '1px solid rgba(168, 199, 250, 0.3)',
|
||||
iconColorSuccess: '#A8C7FA',
|
||||
titleTextColorSuccess: '#A8C7FA',
|
||||
}
|
||||
}
|
||||
return {}
|
||||
});
|
||||
|
||||
const tagThemeOverrides = computed(() => {
|
||||
if (isDark.value) {
|
||||
return {
|
||||
colorSuccess: 'rgba(168, 199, 250, 0.15)',
|
||||
borderSuccess: '1px solid rgba(168, 199, 250, 0.3)',
|
||||
textColorSuccess: '#A8C7FA',
|
||||
}
|
||||
}
|
||||
return {}
|
||||
});
|
||||
|
||||
const { t } = useI18n({
|
||||
messages: {
|
||||
@@ -108,7 +134,7 @@ const openLink = () => {
|
||||
|
||||
<template>
|
||||
<div v-if="aiExtract && aiExtract.result" class="ai-extract-info">
|
||||
<n-alert v-if="!compact" type="success" closable>
|
||||
<n-alert v-if="!compact" type="success" closable :theme-overrides="alertThemeOverrides">
|
||||
<template #icon>
|
||||
<n-icon :component="typeIcon" />
|
||||
</template>
|
||||
@@ -132,7 +158,7 @@ const openLink = () => {
|
||||
</n-button>
|
||||
</n-space>
|
||||
</n-alert>
|
||||
<n-tag v-else type="success" @click="copyToClipboard" style="cursor: pointer;" size="small">
|
||||
<n-tag v-else type="success" @click="copyToClipboard" style="cursor: pointer;" size="small" :theme-overrides="tagThemeOverrides">
|
||||
<template #icon>
|
||||
<n-icon :component="typeIcon" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user