mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
修复深色模式下看不见菜单
This commit is contained in:
19
app/src/main/res/values-night/styles.xml
Normal file
19
app/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
<!-- Base application theme. -->
|
||||||
|
<style name="AppTheme" parent="android:Theme.Material.NoActionBar">
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="android:colorPrimary">@color/black</item>
|
||||||
|
<item name="android:colorPrimaryDark">@color/black</item>
|
||||||
|
<item name="android:colorAccent">@color/colorAccent</item>
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="android:textAllCaps">false</item>
|
||||||
|
<item name="android:textColor">@color/white</item>
|
||||||
|
<item name="android:colorBackground">@color/black</item>
|
||||||
|
<item name="android:statusBarColor">@color/black</item>
|
||||||
|
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
|
||||||
|
<item name="android:forceDarkAllowed" tools:targetApi="Q">true</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 定义dialog的样式-->
|
||||||
|
</resources>
|
||||||
@@ -1,10 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
<!-- Base application theme. -->
|
||||||
<style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
|
<style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="android:colorPrimary">@color/white</item>
|
||||||
|
<item name="android:colorPrimaryDark">@color/foreground</item>
|
||||||
|
<item name="android:colorAccent">@color/colorAccent</item>
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="android:textAllCaps">false</item>
|
||||||
<item name="android:textColor">@color/black</item>
|
<item name="android:textColor">@color/black</item>
|
||||||
<item name="android:statusBarColor">@color/white</item>
|
<item name="android:statusBarColor">@color/white</item>
|
||||||
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
|
<item name="android:windowLightStatusBar" tools:targetApi="m">true</item>
|
||||||
<item name="android:forceDarkAllowed" tools:targetApi="Q">true</item>
|
<item name="android:forceDarkAllowed" tools:targetApi="Q">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 定义dialog的样式-->
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Reference in New Issue
Block a user