From 97745e7ad15fb3d175f81dfdd2f24269e8fdfefd Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 03 四月 2025 15:04:27 +0800
Subject: [PATCH] fix : 编译报错

---
 app/src/main/res/values/themes.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 74c31b4..37db13c 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -3,8 +3,8 @@
     <!--    <style name="Theme.FirstApp" parent="Theme.MaterialComponents.DayNight.DarkActionBar">-->
     <style name="Theme.FirstApp" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Primary brand color. -->
-        <item name="colorPrimary">@color/light_blue_new</item>
-        <item name="colorPrimaryVariant">@color/light_blue_new</item>
+        <item name="colorPrimary">@color/black</item>
+        <item name="colorPrimaryVariant">@color/light_grey</item>
         <item name="colorOnPrimary">@color/white</item>
         <!-- Secondary brand color. -->
         <item name="colorSecondary">@color/teal_200</item>
@@ -12,6 +12,10 @@
         <item name="colorOnSecondary">@color/black</item>
         <!-- Status bar color. -->
         <item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
+
+        <!-- 关键属性:强制状态栏图标为深色(黑色) -->
+        <item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
+
         <!-- 确保没有ActionBar -->
         <item name="windowActionBar">false</item>
         <item name="windowNoTitle">true</item>

--
Gitblit v1.9.3