From 9469486174cefd9958839ae7ea08271ee2115d8b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A6=E5=90=9B?=
<73606411+setube@users.noreply.github.com>
Date: Sat, 20 Dec 2025 01:55:20 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96Android=E4=B8=BB?=
=?UTF-8?q?=E9=A2=98=E4=B8=8E=E5=AE=89=E5=85=A8=E5=8C=BA=E5=9F=9F=E9=80=82?=
=?UTF-8?q?=E9=85=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
调整styles.xml主题色为自定义深色,并实现状态栏与导航栏透明。CSS新增安全区域适配,提升Android/Capacitor端显示效果。
---
android/app/src/main/res/values/styles.xml | 18 +++++++++++++++---
src/style.css | 5 +++++
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index be874e5..bee05e5 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -4,15 +4,27 @@
diff --git a/src/style.css b/src/style.css
index d1b0bc8..7a4e272 100644
--- a/src/style.css
+++ b/src/style.css
@@ -126,6 +126,11 @@
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
+ /* Android/Capacitor 安全区域适配 */
+ padding-top: env(safe-area-inset-top, 0);
+ padding-bottom: env(safe-area-inset-bottom, 0);
+ padding-left: env(safe-area-inset-left, 0);
+ padding-right: env(safe-area-inset-right, 0);
}
/* 平滑过渡 */