feat: 添加客户端主题切换并优化导出状态
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<header class="topbar">
|
||||
<img class="topbar-icon" :src="appIconUrl" alt="" />
|
||||
<span class="topbar-name text-ellipsis">{{ topbarTitle }}</span>
|
||||
<theme-switch />
|
||||
<div class="lang-wrap">
|
||||
<button class="lang" :aria-label="t('lang.switch')" :title="t('lang.switch')" @click.stop="langOpen = !langOpen">
|
||||
<svg viewBox="0 0 512 512" width="22" height="22" aria-hidden="true">
|
||||
@@ -376,6 +377,7 @@ import { fetchTrace, fetchAppInfo } from '@/api';
|
||||
import { setLocale, SUPPORTED_LOCALES } from '@/locales';
|
||||
import { openMediaViewer } from '@/composables/openMediaViewer';
|
||||
import { resolveAppIcon, setFavicon } from '@/utils/appIcon';
|
||||
import ThemeSwitch from '@/components/ThemeSwitch.vue';
|
||||
|
||||
const route = useRoute();
|
||||
const { t, locale } = useI18n();
|
||||
@@ -1437,4 +1439,30 @@ watch(
|
||||
background: rgba(148, 163, 184, 0.14);
|
||||
}
|
||||
}
|
||||
:global(html[data-theme='light']) .topbar {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 252, 0.96));
|
||||
color: #17324d;
|
||||
border-bottom-color: rgba(46, 84, 150, 0.12);
|
||||
box-shadow: 0 6px 18px rgba(31, 56, 100, 0.06);
|
||||
}
|
||||
:global(html[data-theme='light']) .lang {
|
||||
color: #17324d;
|
||||
}
|
||||
:global(html[data-theme='light']) .lang:active,
|
||||
:global(html[data-theme='light']) .lang:hover {
|
||||
background: rgba(46, 84, 150, 0.08);
|
||||
}
|
||||
:global(html[data-theme='dark']) .topbar {
|
||||
background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
|
||||
color: var(--text);
|
||||
border-bottom-color: rgba(148, 163, 184, 0.18);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
:global(html[data-theme='dark']) .lang {
|
||||
color: var(--text);
|
||||
}
|
||||
:global(html[data-theme='dark']) .lang:active,
|
||||
:global(html[data-theme='dark']) .lang:hover {
|
||||
background: rgba(148, 163, 184, 0.14);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user