[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake-mobile/master] Changed preference text color



commit f87ffd6953572e606ab88671b85602d2f36db33a
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Fri Jul 24 13:23:21 2020 +0530

    Changed preference text color
---
 app/src/main/res/color/preference_textview_color.xml | 5 +++++
 app/src/main/res/layout/activity_main.xml            | 2 +-
 app/src/main/res/values/colors.xml                   | 2 ++
 app/src/main/res/values/styles.xml                   | 2 ++
 4 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/app/src/main/res/color/preference_textview_color.xml b/app/src/main/res/color/preference_textview_color.xml
new file mode 100644
index 0000000..134857f
--- /dev/null
+++ b/app/src/main/res/color/preference_textview_color.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android";>
+    <item android:color="@color/colorTextSecondary" android:state_enabled="false" />
+    <item android:color="@color/colorText" />
+</selector>
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index f41f9c8..600e57b 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -26,7 +26,7 @@
                 android:layout_centerInParent="true"
                 android:text="@string/app_name"
                 android:textAppearance="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
-                android:textColor="@android:color/white"
+                android:textColor="@color/colorText"
                 android:textSize="16sp" />
 
             <androidx.appcompat.widget.AppCompatButton
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 2713191..9d618aa 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -3,4 +3,6 @@
     <color name="colorPrimary">#1C1C1C</color>
     <color name="colorPrimaryDark">#1C1C1C</color>
     <color name="colorAccent">#5A0782</color>
+    <color name="colorText">#FFFF</color>
+    <color name="colorTextSecondary">#757575</color>
 </resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 0eb88fe..655fdd0 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -6,6 +6,8 @@
         <item name="colorPrimary">@color/colorPrimary</item>
         <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
         <item name="colorAccent">@color/colorAccent</item>
+        <item name="android:textColor">@color/preference_textview_color</item>
+        <item name="android:textColorSecondary">@color/colorTextSecondary</item>
     </style>
 
 </resources>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits