Dbrant has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/395544 )
Change subject: Fix color of card footer icons.
......................................................................
Fix color of card footer icons.
Bug: T182099
Change-Id: I684c086ea065f98757cf509290df5aaccc65696b
---
M app/src/main/java/org/wikipedia/feed/featured/FeaturedArticleCardView.java
M app/src/main/res/layout/view_card_action_footer.xml
2 files changed, 7 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia
refs/changes/44/395544/1
diff --git
a/app/src/main/java/org/wikipedia/feed/featured/FeaturedArticleCardView.java
b/app/src/main/java/org/wikipedia/feed/featured/FeaturedArticleCardView.java
index a351bab..c7fbc19 100644
--- a/app/src/main/java/org/wikipedia/feed/featured/FeaturedArticleCardView.java
+++ b/app/src/main/java/org/wikipedia/feed/featured/FeaturedArticleCardView.java
@@ -129,8 +129,10 @@
.onShareListener(new CardShareListener());
if (listContainsTitle) {
-
footerView.actionIconColor(ResourceUtil.getThemedAttributeId(getContext(),
R.attr.colorAccent));
-
footerView.actionTextColor(ResourceUtil.getThemedAttributeId(getContext(),
R.attr.colorAccent));
+
footerView.actionIconColor(ResourceUtil.getThemedAttributeId(getContext(),
+ listContainsTitle ? R.attr.colorAccent :
R.attr.secondary_text_color));
+
footerView.actionTextColor(ResourceUtil.getThemedAttributeId(getContext(),
+ listContainsTitle ? R.attr.colorAccent :
R.attr.secondary_text_color));
}
}
});
diff --git a/app/src/main/res/layout/view_card_action_footer.xml
b/app/src/main/res/layout/view_card_action_footer.xml
index 896d88c..0c93547 100644
--- a/app/src/main/res/layout/view_card_action_footer.xml
+++ b/app/src/main/res/layout/view_card_action_footer.xml
@@ -23,7 +23,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
app:srcCompat="@drawable/ic_bookmark_border_black_24dp"
- android:tint="?attr/colorAccent"
+ android:tint="?attr/secondary_text_color"
android:contentDescription="@null"/>
<TextView
@@ -35,7 +35,7 @@
android:layout_marginLeft="8dp"
android:text="@string/view_featured_article_footer_save_button_label"
android:fontFamily="sans-serif-medium"
- android:textColor="?attr/colorAccent"
+ android:textColor="?attr/secondary_text_color"
android:textAllCaps="true"/>
</LinearLayout>
@@ -51,7 +51,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/ic_share_black_24dp"
android:scaleType="center"
- android:tint="?attr/colorAccent"
+ android:tint="?attr/secondary_text_color"
android:clickable="true"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/share_via"/>
--
To view, visit https://gerrit.wikimedia.org/r/395544
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I684c086ea065f98757cf509290df5aaccc65696b
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Dbrant <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits