浏览代码

add button tinting

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 年之前
父节点
当前提交
f55e711801
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/owncloud/android/ui/dialog/SetupEncryptionDialogFragment.java

+ 4 - 0
src/main/java/com/owncloud/android/ui/dialog/SetupEncryptionDialogFragment.java

@@ -402,6 +402,7 @@ public class SetupEncryptionDialogFragment extends DialogFragment {
 
     @VisibleForTesting
     public void showMnemonicInfo() {
+        int color = ThemeUtils.primaryAccentColor(getContext());
         requireDialog().setTitle(R.string.end_to_end_encryption_passphrase_title);
 
         textView.setText(R.string.end_to_end_encryption_keywords_description);
@@ -413,6 +414,8 @@ public class SetupEncryptionDialogFragment extends DialogFragment {
         positiveButton.setVisibility(View.VISIBLE);
 
         negativeButton.setVisibility(View.VISIBLE);
+        positiveButton.setTextColor(color);
+        negativeButton.setTextColor(color);
 
         keyResult = KEY_GENERATE;
     }
@@ -425,6 +428,7 @@ public class SetupEncryptionDialogFragment extends DialogFragment {
         textView.setText(R.string.end_to_end_encryption_unsuccessful);
         positiveButton.setText(R.string.end_to_end_encryption_dialog_close);
         positiveButton.setVisibility(View.VISIBLE);
+        positiveButton.setTextColor(ThemeUtils.primaryAccentColor(getContext()));
     }
 
     @VisibleForTesting