Browse Source

Settings: fix dark style issues

Change-Id: I69d179d941554538238d1f3f74c723b708a73836
Signed-off-by: Joey <joey@lineageos.org>
Joey 1 year ago
parent
commit
c920163a35

+ 26
- 0
res/drawable-anydpi-v21/ic_arrow_down_24dp.xml View File

@@ -0,0 +1,26 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!-- Copyright (C) 2018 The Android Open Source Project
3
+
4
+     Licensed under the Apache License, Version 2.0 (the "License");
5
+     you may not use this file except in compliance with the License.
6
+     You may obtain a copy of the License at
7
+
8
+          http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+     Unless required by applicable law or agreed to in writing, software
11
+     distributed under the License is distributed on an "AS IS" BASIS,
12
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+     See the License for the specific language governing permissions and
14
+     limitations under the License.
15
+-->
16
+
17
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
18
+        android:width="24dp"
19
+        android:height="24dp"
20
+        android:viewportWidth="24.0"
21
+        android:viewportHeight="24.0"
22
+        android:tint="?android:attr/colorControlNormal">
23
+    <path
24
+        android:fillColor="#FF000000"
25
+        android:pathData="M7.41,7.84L12,12.42l4.59,-4.58L18,9.25l-6,6 -6,-6z"/>
26
+</vector>

+ 4
- 0
res/layout/vpn_dialog.xml View File

@@ -49,6 +49,7 @@
49 49
 
50 50
             <CheckBox style="@style/vpn_value" android:id="@+id/mppe"
51 51
                     android:text="@string/vpn_mppe"
52
+                    android:textColor="?android:attr/textColorSecondary"
52 53
                     android:singleLine="false"
53 54
                     android:visibility="gone"/>
54 55
 
@@ -115,6 +116,7 @@
115 116
 
116 117
             <CheckBox style="@style/vpn_value" android:id="@+id/show_options"
117 118
                     android:singleLine="false"
119
+                    android:textColor="?android:attr/textColorSecondary"
118 120
                     android:text="@string/vpn_show_options"/>
119 121
         </LinearLayout>
120 122
 
@@ -161,9 +163,11 @@
161 163
 
162 164
             <CheckBox style="@style/vpn_value" android:id="@+id/save_login"
163 165
                     android:singleLine="false"
166
+                    android:textColor="?android:attr/textColorSecondary"
164 167
                     android:text="@string/vpn_save_login"/>
165 168
             <CheckBox style="@style/vpn_value" android:id="@+id/always_on_vpn"
166 169
                 android:singleLine="false"
170
+                android:textColor="?android:attr/textColorSecondary"
167 171
                 android:text="@string/vpn_menu_lockdown"/>
168 172
             <TextView style="@style/vpn_warning" android:id="@+id/always_on_invalid_reason"
169 173
                 android:singleLine="false"

+ 3
- 3
res/values/colors.xml View File

@@ -103,14 +103,14 @@
103 103
     <color name="shortcut_background">#fff5f5f5</color>
104 104
 
105 105
     <!-- Color for preference icons on the Wifi Network Details page -->
106
-    <color name="wifi_details_icon_color">#8A000000</color>
106
+    <color name="wifi_details_icon_color">@*android:color/accent_device_default_dark</color>
107 107
 
108 108
     <!-- The fallback color for tinting icons. Only used when colorControlNormal is unavailable -->
109 109
     <color name="fallback_tintColor">#89000000</color>
110 110
 
111 111
     <!-- Suggestion/condition colors -->
112
-    <color name="suggestion_condition_background">#f2f2f2</color>
113
-    <color name="condition_card_background">#f8f8f8</color>
112
+    <color name="suggestion_condition_background">#10000000</color>
113
+    <color name="condition_card_background">#05000000</color>
114 114
 
115 115
     <!-- Dashboard/homepage icon background colors -->
116 116
     <color name="homepage_network_background">#2196F3</color>

+ 2
- 0
src/com/android/settings/deviceinfo/StorageSummaryPreference.java View File

@@ -54,7 +54,9 @@ public class StorageSummaryPreference extends Preference {
54 54
         }
55 55
 
56 56
         final TextView summary = (TextView) view.findViewById(android.R.id.summary);
57
+/*
57 58
         summary.setTextColor(Color.parseColor("#8a000000"));
59
+*/
58 60
 
59 61
         super.onBindViewHolder(view);
60 62
     }

+ 2
- 0
src/com/android/settings/deviceinfo/StorageVolumePreference.java View File

@@ -130,7 +130,9 @@ public class StorageVolumePreference extends Preference {
130 130
     public void onBindViewHolder(PreferenceViewHolder view) {
131 131
         final ImageView unmount = (ImageView) view.findViewById(R.id.unmount);
132 132
         if (unmount != null) {
133
+/*
133 134
             unmount.setImageTintList(ColorStateList.valueOf(Color.parseColor("#8a000000")));
135
+*/
134 136
             unmount.setOnClickListener(mUnmountListener);
135 137
         }
136 138