From 7fb625c71f6e3941a73809ff9da31ad898575053 Mon Sep 17 00:00:00 2001 From: Distopico Vegan Date: Mon, 3 Dec 2018 22:45:44 -0500 Subject: [PATCH] feat: move color picker account outside of advanced --- .../org/dystopia/email/FragmentAccount.java | 6 +- app/src/main/res/layout/fragment_account.xml | 62 ++++++++----------- app/src/main/res/values/dimens.xml | 2 + 3 files changed, 29 insertions(+), 41 deletions(-) diff --git a/app/src/main/java/org/dystopia/email/FragmentAccount.java b/app/src/main/java/org/dystopia/email/FragmentAccount.java index 3daada40..71977f5b 100644 --- a/app/src/main/java/org/dystopia/email/FragmentAccount.java +++ b/app/src/main/java/org/dystopia/email/FragmentAccount.java @@ -107,7 +107,6 @@ public class FragmentAccount extends FragmentEx { private TextView tvName; private EditText etName; - private Button btnColor; private View vwColor; private ImageView ibColorDefault; private EditText etSignature; @@ -183,7 +182,6 @@ public class FragmentAccount extends FragmentEx { etName = view.findViewById(R.id.etName); tvName = view.findViewById(R.id.tvName); - btnColor = view.findViewById(R.id.btnColor); vwColor = view.findViewById(R.id.vwColor); ibColorDefault = view.findViewById(R.id.ibColorDefault); etSignature = view.findViewById(R.id.etSignature); @@ -372,7 +370,7 @@ public class FragmentAccount extends FragmentEx { }); vwColor.setBackgroundColor(color); - btnColor.setOnClickListener( + vwColor.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { @@ -1164,7 +1162,7 @@ public class FragmentAccount extends FragmentEx { GradientDrawable border = new GradientDrawable(); border.setColor(color); - border.setStroke(1, Helper.resolveColor(getContext(), R.attr.colorSeparator)); + border.setStroke(5, Helper.resolveColor(getContext(), R.attr.colorSeparator)); vwColor.setBackground(border); } diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index 4a77eb24..f5c24d1c 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -220,6 +220,27 @@ android:inputType="textPassword" /> + + + +