diff --git a/app/src/main/java/eu/faircode/email/ToastEx.java b/app/src/main/java/eu/faircode/email/ToastEx.java index 00dcd80122..45bfd25934 100644 --- a/app/src/main/java/eu/faircode/email/ToastEx.java +++ b/app/src/main/java/eu/faircode/email/ToastEx.java @@ -24,7 +24,7 @@ public class ToastEx extends Toast { view.setBackground(context.getResources().getDrawable(R.drawable.toast_background, context.getTheme())); TextView tv = view.findViewById(android.R.id.message); - tv.setTextColor(Helper.resolveColor(context, R.attr.colorToastForeground)); + tv.setTextColor(Helper.resolveColor(context, R.attr.colorInfoForeground)); tv.setText(text); toast.setView(view); toast.setDuration(duration); diff --git a/app/src/main/res/drawable/toast_background.xml b/app/src/main/res/drawable/toast_background.xml index 0550e2714d..e62fcec14d 100644 --- a/app/src/main/res/drawable/toast_background.xml +++ b/app/src/main/res/drawable/toast_background.xml @@ -2,5 +2,5 @@ - + diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index 68b60df1eb..e44298dab7 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -843,9 +843,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/title_setup_help" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/cbTrust" /> @@ -855,9 +855,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/menu_faq" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/cbTrust" /> diff --git a/app/src/main/res/layout/fragment_gmail.xml b/app/src/main/res/layout/fragment_gmail.xml index 05f2835f13..ed48e4c1c6 100644 --- a/app/src/main/res/layout/fragment_gmail.xml +++ b/app/src/main/res/layout/fragment_gmail.xml @@ -133,9 +133,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/menu_faq" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/tvDraftsHint" /> diff --git a/app/src/main/res/layout/fragment_identity.xml b/app/src/main/res/layout/fragment_identity.xml index 487d17c9bc..964e4085d8 100644 --- a/app/src/main/res/layout/fragment_identity.xml +++ b/app/src/main/res/layout/fragment_identity.xml @@ -646,9 +646,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/title_setup_help" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/cbTrust" /> @@ -658,9 +658,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/menu_faq" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/cbTrust" /> diff --git a/app/src/main/res/layout/fragment_oauth.xml b/app/src/main/res/layout/fragment_oauth.xml index d0da94db2d..c6dd9efd53 100644 --- a/app/src/main/res/layout/fragment_oauth.xml +++ b/app/src/main/res/layout/fragment_oauth.xml @@ -108,9 +108,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/menu_faq" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/tvGmailDraftsHint" /> diff --git a/app/src/main/res/layout/fragment_quick_setup.xml b/app/src/main/res/layout/fragment_quick_setup.xml index eac7f0bd0e..3acc4c4e76 100644 --- a/app/src/main/res/layout/fragment_quick_setup.xml +++ b/app/src/main/res/layout/fragment_quick_setup.xml @@ -121,9 +121,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/title_setup_help" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" /> @@ -133,9 +133,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:text="@string/menu_faq" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" /> diff --git a/app/src/main/res/layout/fragment_setup.xml b/app/src/main/res/layout/fragment_setup.xml index e0b290fc3c..4adf59e39c 100644 --- a/app/src/main/res/layout/fragment_setup.xml +++ b/app/src/main/res/layout/fragment_setup.xml @@ -85,11 +85,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:backgroundTint="?attr/colorPrimary" + android:backgroundTint="?attr/colorInfoBackground" android:minWidth="0dp" android:minHeight="0dp" android:text="@string/title_setup_help" - android:textColor="@android:color/white" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvQuick" /> diff --git a/app/src/main/res/layout/item_account.xml b/app/src/main/res/layout/item_account.xml index 260b7c1ab8..5e14d109a0 100644 --- a/app/src/main/res/layout/item_account.xml +++ b/app/src/main/res/layout/item_account.xml @@ -207,11 +207,11 @@ style="?android:attr/buttonStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:minWidth="0dp" android:minHeight="0dp" android:text="@string/title_setup_help" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" /> diff --git a/app/src/main/res/layout/item_folder.xml b/app/src/main/res/layout/item_folder.xml index dbcf7d48c7..b9b62f0429 100644 --- a/app/src/main/res/layout/item_folder.xml +++ b/app/src/main/res/layout/item_folder.xml @@ -245,11 +245,11 @@ style="?android:attr/buttonStyleSmall" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:backgroundTint="?attr/colorAccent" + android:backgroundTint="?attr/colorInfoBackground" android:minWidth="0dp" android:minHeight="0dp" android:text="@string/title_setup_help" - android:textColor="@android:color/black" + android:textColor="?attr/colorInfoForeground" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e4e62dc965..7b6e22d8b8 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -15,8 +15,8 @@ - - + + @@ -123,8 +123,8 @@ @color/lightPurpleAccent - @color/white - @color/lightPurpleAccent + @color/white + @color/lightPurpleAccent @color/lightPurpleAccent @@ -138,8 +138,8 @@ @color/lightGreenAccent - @color/white - @color/lightGreenAccent + @color/white + @color/lightGreenAccent @color/lightGreenAccent @@ -155,8 +155,8 @@ @color/colorAccent - @color/white - @color/darkColorPrimary + @color/black + @color/colorAccent @@ -183,8 +183,8 @@ @color/darkGreenAccent - @color/white - @color/darkGreenAccent + @color/black + @color/darkGreenAccent @color/darkGreenAccent @@ -209,8 +209,8 @@ @color/greyAccent - @color/white - @color/greyAccent + @color/white + @color/greyAccent