diff options
| author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-03-06 22:11:33 +0530 | 
|---|---|---|
| committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-03-06 22:11:33 +0530 | 
| commit | f12f6b540d2b29ceeb0c81317a181e39eb8dad33 (patch) | |
| tree | ad39ed84ee6f06bdcfaa39b8ccc85dd04d831dd0 /OpenKeychain/src/main/java/org | |
| parent | fee891fc0647ef0bd709b7bf37fb85a444a6b2ea (diff) | |
| download | open-keychain-f12f6b540d2b29ceeb0c81317a181e39eb8dad33.tar.gz open-keychain-f12f6b540d2b29ceeb0c81317a181e39eb8dad33.tar.bz2 open-keychain-f12f6b540d2b29ceeb0c81317a181e39eb8dad33.zip | |
changed default colors for PasswordStrengthView
Diffstat (limited to 'OpenKeychain/src/main/java/org')
| -rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/passwordstrengthindicator/PasswordStrengthView.java | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/passwordstrengthindicator/PasswordStrengthView.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/passwordstrengthindicator/PasswordStrengthView.java index d7270ff58..bc5018497 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/passwordstrengthindicator/PasswordStrengthView.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/passwordstrengthindicator/PasswordStrengthView.java @@ -56,9 +56,6 @@ import org.sufficientlysecure.keychain.R;   */  public class PasswordStrengthView extends View { -    protected static final int COLOR_FAIL = Color.parseColor("#e74c3c"); -    protected static final int COLOR_WEAK = Color.parseColor("#e67e22"); -    protected static final int COLOR_STRONG = Color.parseColor("#2ecc71");      protected int mMinWidth;      protected int mMinHeight; @@ -100,6 +97,11 @@ public class PasswordStrengthView extends View {      public PasswordStrengthView(Context context, AttributeSet attrs) {          super(context, attrs); + +        int COLOR_FAIL = context.getResources().getColor(R.color.android_red_light); +        int COLOR_WEAK = context.getResources().getColor(R.color.android_orange_light); +        int COLOR_STRONG = context.getResources().getColor(R.color.android_green_light); +          TypedArray style = context.getTheme().obtainStyledAttributes(                  attrs,                  R.styleable.PasswordStrengthView, | 
