Skip to content

Commit

Permalink
better theming
Browse files Browse the repository at this point in the history
  • Loading branch information
KingsMentor committed Jul 31, 2017
1 parent 798878f commit 36969be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Binary file modified apk/app-debug.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion luhn/src/main/java/xyz/belvi/luhn/Luhn.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private void initStyle(int style) {
retrievePin = ta.getBoolean(R.styleable.luhnStyle_luhn_show_pin, false);
((AppCompatTextView) findViewById(R.id.toolbar_title)).setText(TextUtils.isEmpty(title) ? "Add Card" : title);
findViewById(R.id.btn_proceed).setBackground(ta.getDrawable(R.styleable.luhnStyle_luhn_btn_verify_selector));
findViewById(R.id.toolbar).setBackgroundColor(ta.getColor(R.styleable.luhnStyle_luhn_show_toolbar_color, ContextCompat.getColor(this, R.color.colorPrimary)));
findViewById(R.id.toolbar).setBackgroundColor(ta.getColor(R.styleable.luhnStyle_luhn_show_toolbar_color, ContextCompat.getColor(this, R.color.ln_colorPrimary)));
}

private void initViews() {
Expand Down
6 changes: 3 additions & 3 deletions luhn/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#ff000000</color>
<color name="ln_colorPrimary">#ff000000</color>
<color name="ln_colorPrimaryDark">#303F9F</color>
<color name="ln_colorAccent">#ff000000</color>

<color name="ln_colorControlHighlight">#ff000000</color>
<color name="ln_info_bg">#ff000000</color>
Expand Down
8 changes: 4 additions & 4 deletions luhn/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorAccent</item>
<item name="colorPrimaryDark">@color/colorAccent</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorPrimary">@color/ln_colorPrimary</item>
<item name="colorPrimaryDark">@color/ln_colorPrimaryDark</item>
<item name="colorAccent">@color/ln_colorAccent</item>
<item name="colorControlHighlight">@color/ln_colorControlHighlight</item>
<item name="actionMenuTextColor">@color/ln_actionMenuTextColor</item>
</style>
Expand Down Expand Up @@ -55,7 +55,7 @@
<item name="luhn_title">Add Card</item>
<item name="luhn_typeface">fonts/ClanMedium.ttf</item>
<item name="luhn_btn_verify_selector">@drawable/card_next_btn_selector</item>
<item name="luhn_show_toolbar_color">@color/colorAccent</item>
<item name="luhn_show_toolbar_color">@color/ln_colorAccent</item>
<item name="luhn_show_pin">true</item>
</style>

Expand Down

0 comments on commit 36969be

Please sign in to comment.