feat: 安卓端支持沉浸式边到边显示

MainActivity启用Edge-to-Edge,状态栏与导航栏设为透明并强制深色图标,提升沉浸体验。styles.xml同步调整相关颜色为透明。CSS中优化html平滑过渡样式,提升界面切换流畅度。
This commit is contained in:
谦君
2025-12-25 20:00:13 +08:00
parent d95dffcfcd
commit 04ee72a33d
3 changed files with 26 additions and 11 deletions

View File

@@ -120,6 +120,11 @@
@apply border-border outline-ring/50;
}
html {
/* 平滑过渡 */
transition: background-color 0.3s ease, color 0.3s ease;
}
body {
@apply bg-background text-foreground;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
@@ -128,11 +133,6 @@
-moz-osx-font-smoothing: grayscale;
}
/* 平滑过渡 */
html {
transition: background-color 0.3s ease, color 0.3s ease;
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;