Skip to content

Commit

Permalink
For mozilla-mobile#27307 - Use the correct fx_mobile_text_color_warni…
Browse files Browse the repository at this point in the history
…ng_button text color for DestructiveButton
  • Loading branch information
gabrielluong committed Oct 7, 2022
1 parent 3f7391a commit 5b35c8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<!-- Warning text -->
<color name="fx_mobile_text_color_warning">@color/photonRed20</color>
<!-- Warning text on Secondary button -->
<color name="fx_mobile_text_color_warning_button" tools:ignore="UnusedResources">@color/photonRed70</color>
<color name="fx_mobile_text_color_warning_button">@color/photonRed70</color>
<!-- Small heading, Text link -->
<color name="fx_mobile_text_color_accent">@color/photonViolet20</color>
<!-- Small heading, Text link -->
Expand Down Expand Up @@ -97,7 +97,7 @@
<color name="fx_mobile_icon_color_button" tools:ignore="UnusedResources">@color/photonLightGrey05</color>
<color name="fx_mobile_icon_color_warning" tools:ignore="UnusedResources">@color/photonRed20</color>
<!-- Warning icon on Secondary button -->
<color name="fx_mobile_icon_color_warning_button" tools:ignore="UnusedResources">@color/photonRed70</color>
<color name="fx_mobile_icon_color_warning_button">@color/photonRed70</color>
<color name="fx_mobile_icon_color_accent_violet">@color/photonViolet20</color>
<color name="fx_mobile_icon_color_accent_blue">@color/photonBlue20</color>
<color name="fx_mobile_icon_color_accent_pink">@color/photonPink20</color>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<!-- Warning text -->
<color name="fx_mobile_text_color_warning">@color/photonRed70</color>
<!-- Warning text on Secondary button -->
<color name="fx_mobile_text_color_warning_button" tools:ignore="UnusedResources">@color/photonRed70</color>
<color name="fx_mobile_text_color_warning_button">@color/photonRed70</color>
<!-- Small heading, Text link -->
<color name="fx_mobile_text_color_accent">@color/photonViolet70</color>
<!-- Small heading, Text link -->
Expand Down Expand Up @@ -97,7 +97,7 @@
<color name="fx_mobile_icon_color_button" tools:ignore="UnusedResources">@color/photonInk20</color>
<color name="fx_mobile_icon_color_warning" tools:ignore="UnusedResources">@color/photonRed70</color>
<!-- Warning icon on Secondary button -->
<color name="fx_mobile_icon_color_warning_button" tools:ignore="UnusedResources">@color/photonRed70</color>
<color name="fx_mobile_icon_color_warning_button">@color/photonRed70</color>
<color name="fx_mobile_icon_color_accent_violet">@color/photonViolet60</color>
<color name="fx_mobile_icon_color_accent_blue">@color/photonBlue60</color>
<color name="fx_mobile_icon_color_accent_pink">@color/photonPink60</color>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@
</style>

<style name="DestructiveButton" parent="NeutralButton">
<item name="iconTint">@color/fx_mobile_text_color_warning</item>
<item name="android:textColor">@color/fx_mobile_text_color_warning</item>
<item name="iconTint">@color/fx_mobile_icon_color_warning_button</item>
<item name="android:textColor">@color/fx_mobile_text_color_warning_button</item>
</style>

<style name="PositiveButton" parent="NeutralButton">
Expand Down

0 comments on commit 5b35c8a

Please sign in to comment.