100% themed colours
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 May 2020 21:09:00 +0000 (00:09 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 May 2020 21:09:00 +0000 (00:09 +0300)
app/src/main/res/layout/profile_detail.xml
app/src/main/res/values/colors.xml
app/src/main/res/values/styles.xml

index 7cf60be..3c192f6 100644 (file)
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="@dimen/activity_vertical_margin"
-                android:background="@color/error_background"
+                android:background="?colorError"
                 android:padding="@dimen/activity_vertical_margin"
                 android:visibility="gone">
 
                 <TextView
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
+                    android:textColor="?colorOnError"
                     android:text="@string/insecure_scheme_with_auth" />
             </LinearLayout>
 
index 1fb4add..b537aad 100644 (file)
   -->
 
 <resources>
-    <color name="colorPrimary">#935FF2</color>
-    <color name="colorPrimaryDark">#3e148c</color>
-    <color name="colorAccent">#653BD0</color>
-    <color name="table_row_dark_bg">#286c33d4</color>
-    <color name="table_row_light_bg">#28ddcbff</color>
-    <color name="header_border">#804a148c</color>
-    <color name="error_background">#FFE1E2</color>
-    <color name="errorTextColor">#CD1609</color>
-    <color name="backgroundColor">#EEEEEE</color>
-    <color name="backgroundColorTransparent">#00eeeeee</color>
 </resources>
index cf5497a..28486ae 100644 (file)
@@ -28,7 +28,7 @@
     <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <item name="colorPrimary">#935FF2</item>
         <item name="colorPrimaryTransparent">#00935FF2</item>
-        <item name="colorOnPrimary">?android:attr/colorBackground</item>
+        <item name="colorOnPrimary">@android:color/white</item>
         <item name="colorPrimaryDark">#653BD0</item>
         <item name="colorAccent">#653BD0</item>
         <item name="drawer_background">?android:attr/popupBackground</item>
         <item name="table_row_light_bg">#28ddcbff</item>
         <item name="windowActionBar">false</item>
         <item name="windowNoTitle">true</item>
-        <item name="textColor">#757575</item>
-        <item name="errorTextColor">@color/errorTextColor</item>
-        <item name="colorOnSecondary">?android:attr/colorBackground</item>
+        <item name="textColor">#707070</item>
+        <item name="colorOnSecondary">@android:color/white</item>
         <item name="textInputStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense</item>
+        <item name="colorError">#FFE1E2</item>
+        <item name="colorOnError">#CD1609</item>
         <item name="floatingActionButtonStyle">@style/myFabStyle</item>
     </style>