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

[tor-commits] [snowflake-mobile/master] Changed background and button colors of dialog



commit 32dd2a451aa52d0176f0982510a5398788bd42ab
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Fri Oct 16 22:02:00 2020 +0530

    Changed background and button colors of dialog
---
 app/src/main/res/values/colors.xml |  3 +++
 app/src/main/res/values/styles.xml | 14 ++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 9837b71..b7d63fd 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -8,4 +8,7 @@
     <color name="snowflakeOff">#AAAAAA</color>
     <color name="snowflakeOn">#8000D7</color>
     <color name="snowflakeConnected">#00FFB0</color>
+
+    <color name="positiveButton">#8000D7</color>
+    <color name="negativeButton">#757575</color>
 </resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 655fdd0..96fe912 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -8,6 +8,20 @@
         <item name="colorAccent">@color/colorAccent</item>
         <item name="android:textColor">@color/preference_textview_color</item>
         <item name="android:textColorSecondary">@color/colorTextSecondary</item>
+        <item name="alertDialogTheme">@style/AlertDialogTheme</item>
     </style>
 
+    <style name="AlertDialogTheme" parent="ThemeOverlay.AppCompat.Dialog.Alert">
+        <item name="buttonBarNegativeButtonStyle">@style/NegativeButtonStyle</item>
+        <item name="buttonBarPositiveButtonStyle">@style/PositiveButtonStyle</item>
+        <item name="android:background">@color/colorPrimary</item>
+    </style>
+
+    <style name="NegativeButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
+        <item name="android:textColor">@color/negativeButton</item>
+    </style>
+
+    <style name="PositiveButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
+        <item name="android:textColor">@color/positiveButton</item>
+    </style>
 </resources>



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