Commit 26a78790 authored by Mygod's avatar Mygod

Fix night mode text colors

Fix #2037, #2038.
parent d30705ea
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_primary_text" android:state_checked="true"/>
<item android:color="?android:attr/textColorPrimary"/>
</selector>
...@@ -124,6 +124,8 @@ ...@@ -124,6 +124,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="start" android:layout_gravity="start"
app:itemIconTint="@color/nav_item_tint"
app:itemTextColor="@color/nav_item_tint"
app:headerLayout="@layout/navigation_header" app:headerLayout="@layout/navigation_header"
app:menu="@menu/navigation_main" /> app:menu="@menu/navigation_main" />
</androidx.drawerlayout.widget.DrawerLayout> </androidx.drawerlayout.widget.DrawerLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--
Source: https://github.com/material-components/material-components-android/blob/79239aab18b85cc3a6a9de98d797b97a96d59bbc/lib/java/com/google/android/material/button/res/color/mtrl_text_btn_text_color_selector.xml
Copyright 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_primary_text" android:state_enabled="true"/>
<item android:alpha="0.38" android:color="?attr/colorOnSurface"/>
</selector>
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
<color name="color_primary">@color/material_primary_800</color> <color name="color_primary">@color/material_primary_800</color>
<color name="color_primary_dark">@color/material_primary_900</color> <color name="color_primary_dark">@color/material_primary_900</color>
<color name="color_primary_text">@color/material_primary_300</color>
</resources> </resources>
\ No newline at end of file
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
<color name="material_primary_900">@color/material_blue_grey_900</color> <color name="material_primary_900">@color/material_blue_grey_900</color>
<color name="material_accent_200">@color/material_green_a700</color> <color name="material_accent_200">@color/material_green_a700</color>
<color name="color_primary">@color/material_blue_grey_500</color> <color name="color_primary">@color/material_primary_500</color>
<color name="color_primary_dark">@color/material_blue_grey_700</color> <color name="color_primary_dark">@color/material_primary_700</color>
<color name="color_primary_text">@color/material_primary_500</color>
</resources> </resources>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment