From 21a817a8d477be48c8bd37cacbb6973d5622f6e0 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 8 Apr 2019 13:04:54 +0200 Subject: [PATCH] change cw icon color on on/off (#1181) --- .../main/java/com/keylesspalace/tusky/ComposeActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index d7520efe..40570e70 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -1482,14 +1482,19 @@ public final class ComposeActivity private void showContentWarning(boolean show) { statusHideText = show; TransitionManager.beginDelayedTransition((ViewGroup)contentWarningBar.getParent()); + int color; if (show) { statusMarkSensitive = true; contentWarningBar.setVisibility(View.VISIBLE); contentWarningEditor.setSelection(contentWarningEditor.getText().length()); contentWarningEditor.requestFocus(); + color = ContextCompat.getColor(this, R.color.tusky_blue); } else { contentWarningBar.setVisibility(View.GONE); + color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary); } + contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN); + updateHideMediaToggle(); }