forked from organicmaps/organicmaps
[android] Change color for disabled texts
Signed-off-by: Gonzalo Pesquero <gpesquero@yahoo.es>
This commit is contained in:
parent
7ee4a76cf2
commit
aa95d9c5d8
5 changed files with 24 additions and 4 deletions
5
android/app/src/main/res/color/text_color_primary.xml
Normal file
5
android/app/src/main/res/color/text_color_primary.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@color/text_dark_subtitle" />
|
||||
<item android:color="@color/text_dark" />
|
||||
</selector>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@color/text_light_subtitle" />
|
||||
<item android:color="@color/text_light" />
|
||||
</selector>
|
5
android/app/src/main/res/color/text_color_secondary.xml
Normal file
5
android/app/src/main/res/color/text_color_secondary.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@color/text_dark_hint" />
|
||||
<item android:color="@color/text_dark_subtitle" />
|
||||
</selector>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:color="@color/text_light_hint" />
|
||||
<item android:color="@color/text_light_subtitle" />
|
||||
</selector>
|
|
@ -9,9 +9,9 @@
|
|||
<item name="android:textViewStyle">@style/MwmWidget.TextView</item>
|
||||
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
|
||||
|
||||
<item name="android:textColorPrimary">@color/text_dark</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary</item>
|
||||
<item name="android:textColorPrimaryInverse">@color/text_light</item>
|
||||
<item name="android:textColorSecondary">@color/text_dark_subtitle</item>
|
||||
<item name="android:textColorSecondary">@color/text_color_secondary</item>
|
||||
<item name="android:windowBackground">?windowBackgroundForced</item>
|
||||
<item name="android:colorPrimaryDark">@color/bg_primary_dark</item>
|
||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
||||
|
@ -142,9 +142,9 @@
|
|||
<item name="android:textViewStyle">@style/MwmWidget.TextView</item>
|
||||
<item name="android:forceDarkAllowed" tools:targetApi="Q">false</item>
|
||||
|
||||
<item name="android:textColorPrimary">@color/text_light</item>
|
||||
<item name="android:textColorPrimary">@color/text_color_primary_dark</item>
|
||||
<item name="android:textColorPrimaryInverse">@color/text_dark</item>
|
||||
<item name="android:textColorSecondary">@color/text_light_subtitle</item>
|
||||
<item name="android:textColorSecondary">@color/text_color_secondary_dark</item>
|
||||
<item name="android:windowBackground">?windowBackgroundForced</item>
|
||||
<item name="android:colorPrimaryDark">@color/bg_primary_dark_night</item>
|
||||
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
|
||||
|
|
Loading…
Add table
Reference in a new issue