Skip to content

Commit

Permalink
Use selector to set rounded button background
Browse files Browse the repository at this point in the history
  • Loading branch information
avazirna committed Dec 11, 2024
1 parent 9e87ddb commit 4ef0149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
<color name="red_900">#B71C1C</color>

<!-- Button colors -->
<color name="button_disabled">#d0e3ff</color>
<color name="button_primary_color"> #3A42C7</color>
<color name="button_disabled">@color/cc_neutral_bg</color>
<color name="button_primary_color">@color/cc_brand_color</color>

<!-- Square button colours -->
<color name="start_home_button">#6AB849</color>
Expand Down
2 changes: 1 addition & 1 deletion app/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
</style>

<style name="CustomButtonStyle" parent="Widget.MaterialComponents.Button">
<item name="backgroundTint">@color/cc_brand_color</item>
<item name="backgroundTint">@color/primary_button_background</item>
<item name="android:textColor">@color/white</item>
<item name="android:textSize">16sp</item>
<item name="android:gravity">center</item>
Expand Down

0 comments on commit 4ef0149

Please sign in to comment.