Skip to content

Commit

Permalink
fix(nord): use nord colors for like (heart) and favorite (star)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Oct 13, 2023
1 parent 8f80668 commit 045668d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mastodon/src/main/res/color/like_icon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/like_selected" android:state_selected="true"/>
<item android:color="?colorLike" android:state_selected="true"/>
<item android:color="?android:textColorSecondary"/>
</selector>
1 change: 1 addition & 0 deletions mastodon/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@

<color name="nord_favorite">#ebcb8b</color>
<color name="nord_bookmark_selected">#a3be8c</color>
<color name="nord_like">#BF616A</color>

<!-- <color name="nord_gray_400t">#4d8C96B4</color>-->
<color name="nord_gray_400">#8C96B4</color>
Expand Down
8 changes: 6 additions & 2 deletions mastodon/src/main/res/values/palettes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<item name="colorPrimary900">@color/primary_900</item>
<item name="colorFavorite">@color/warning_500</item>
<item name="colorBookmark">@color/bookmark_selected</item>
<item name="colorLike">@color/like_selected</item>

<item name="colorGray900">@color/gray_900</item>
<item name="colorGray800">@color/gray_800</item>
Expand Down Expand Up @@ -68,8 +69,10 @@
<item name="colorM3DarkOnSurface">?colorGray100</item>
<item name="colorM3PrimaryInverse">?colorPrimary200</item>

<item name="colorFavorite">@color/warning_500</item>
<item name="colorLike">@color/like_selected</item>
<!-- We comment these lines out to allow custom themes, like nord, to get control over them-->
<!-- <item name="colorFavorite">@color/warning_500</item>-->
<!-- <item name="colorLike">@color/like_selected</item>-->

<item name="colorBoost">?colorM3Primary</item>
<item name="colorPoll">@color/bookmark_selected</item>
<item name="colorTabBarAlpha">#14000000</item>
Expand Down Expand Up @@ -538,6 +541,7 @@

<item name="colorBookmark">@color/nord_bookmark_selected</item>
<item name="colorFavorite">@color/nord_favorite</item>
<item name="colorLike">@color/nord_like</item>

<item name="colorGray900">@color/nord_gray_900</item>
<!-- <item name="colorGray800t">@color/nord_gray_800t</item>-->
Expand Down

0 comments on commit 045668d

Please sign in to comment.