diff --git a/res/layout/conversation_item_received_document.xml b/res/layout/conversation_item_received_document.xml index 5153484a85..ae72a23f0a 100644 --- a/res/layout/conversation_item_received_document.xml +++ b/res/layout/conversation_item_received_document.xml @@ -9,4 +9,5 @@ android:visibility="gone" app:doc_titleColor="?conversation_item_received_text_primary_color" app:doc_captionColor="?conversation_item_received_text_secondary_color" + app:doc_downloadButtonTint="@color/core_white" tools:visibility="visible"/> diff --git a/res/layout/conversation_item_sent_document.xml b/res/layout/conversation_item_sent_document.xml index e176f063c3..ce627e27a6 100644 --- a/res/layout/conversation_item_sent_document.xml +++ b/res/layout/conversation_item_sent_document.xml @@ -9,4 +9,5 @@ android:visibility="gone" app:doc_titleColor="?conversation_item_sent_text_primary_color" app:doc_captionColor="?conversation_item_sent_text_secondary_color" + app:doc_downloadButtonTint="?conversation_item_sent_download_icon_color" tools:visibility="visible"/> diff --git a/res/layout/document_view.xml b/res/layout/document_view.xml index a619f03853..fda0411886 100644 --- a/res/layout/document_view.xml +++ b/res/layout/document_view.xml @@ -77,7 +77,6 @@ android:visibility="gone" android:background="@drawable/circle_touch_highlight_background" android:src="@drawable/ic_download_circle_fill_white_48dp" - android:tint="@color/core_grey_60" android:contentDescription="@string/audio_view__download_accessibility_description"/> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 87d9f9879a..5a2aad97d9 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -76,6 +76,7 @@ + @@ -278,6 +279,7 @@ + diff --git a/res/values/themes.xml b/res/values/themes.xml index 9d96ef3bd3..5a4f4a792d 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -191,6 +191,7 @@ @color/core_grey_90 @color/core_grey_60 @color/core_grey_60 + @color/core_grey_60 #99000000 @color/core_white @color/core_white @@ -295,6 +296,7 @@ @color/core_grey_05 @color/core_grey_25 @color/core_grey_25 + @color/core_white #99ffffff @color/core_grey_05 @color/core_grey_25 diff --git a/src/org/thoughtcrime/securesms/components/DocumentView.java b/src/org/thoughtcrime/securesms/components/DocumentView.java index c83f74225c..50f11cd141 100644 --- a/src/org/thoughtcrime/securesms/components/DocumentView.java +++ b/src/org/thoughtcrime/securesms/components/DocumentView.java @@ -67,13 +67,16 @@ public class DocumentView extends FrameLayout { this.document = findViewById(R.id.document); if (attrs != null) { - TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.DocumentView, 0, 0); + TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.DocumentView, 0, 0); int titleColor = typedArray.getInt(R.styleable.DocumentView_doc_titleColor, Color.BLACK); int captionColor = typedArray.getInt(R.styleable.DocumentView_doc_captionColor, Color.BLACK); + int downloadTint = typedArray.getInt(R.styleable.DocumentView_doc_downloadButtonTint, Color.WHITE); typedArray.recycle(); fileName.setTextColor(titleColor); fileSize.setTextColor(captionColor); + downloadButton.setColorFilter(downloadTint, PorterDuff.Mode.MULTIPLY); + downloadProgress.setBarColor(downloadTint); } }