diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposePollViewController.java b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposePollViewController.java index 701cee34..fb0ca493 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposePollViewController.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/viewcontrollers/ComposePollViewController.java @@ -9,12 +9,10 @@ import android.graphics.RectF; import android.os.Build; import android.os.Bundle; import android.os.VibrationEffect; -import android.os.Vibrator; import android.view.HapticFeedbackConstants; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.Checkable; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/views/CheckIconSelectableTextView.java b/mastodon/src/main/java/org/joinmastodon/android/ui/views/CheckIconSelectableTextView.java index 7eff03bc..bd40ea53 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/views/CheckIconSelectableTextView.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/views/CheckIconSelectableTextView.java @@ -36,7 +36,7 @@ public class CheckIconSelectableTextView extends TextView{ currentlySelected=isSelected(); Drawable start=currentlySelected ? getResources().getDrawable(R.drawable.ic_baseline_check_18, getContext().getTheme()).mutate() : null; if(start!=null) - start.setTint(UiUtils.getThemeColor(getContext(), getCheckmarkColorAttribute())); + start.setTintList(getTextColors()); Drawable end=getCompoundDrawablesRelative()[2]; setCompoundDrawablesRelativeWithIntrinsicBounds(start, null, end, null); } diff --git a/mastodon/src/main/res/color/bg_compose_poll_style_inactive.xml b/mastodon/src/main/res/color/bg_compose_poll_style_inactive.xml new file mode 100644 index 00000000..3b4301e7 --- /dev/null +++ b/mastodon/src/main/res/color/bg_compose_poll_style_inactive.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/mastodon/src/main/res/drawable/poll_multiple.xml b/mastodon/src/main/res/drawable/poll_multiple.xml index f7eb513d..339d1702 100644 --- a/mastodon/src/main/res/drawable/poll_multiple.xml +++ b/mastodon/src/main/res/drawable/poll_multiple.xml @@ -33,7 +33,7 @@ - + diff --git a/mastodon/src/main/res/drawable/poll_single.xml b/mastodon/src/main/res/drawable/poll_single.xml index 1037aa70..4c566010 100644 --- a/mastodon/src/main/res/drawable/poll_single.xml +++ b/mastodon/src/main/res/drawable/poll_single.xml @@ -40,7 +40,7 @@ - + diff --git a/mastodon/src/main/res/values/attrs.xml b/mastodon/src/main/res/values/attrs.xml index 7b644883..2df5c1a8 100644 --- a/mastodon/src/main/res/values/attrs.xml +++ b/mastodon/src/main/res/values/attrs.xml @@ -47,6 +47,8 @@ + + diff --git a/mastodon/src/main/res/values/styles.xml b/mastodon/src/main/res/values/styles.xml index a2dafdfc..b27183f0 100644 --- a/mastodon/src/main/res/values/styles.xml +++ b/mastodon/src/main/res/values/styles.xml @@ -82,6 +82,7 @@ ?colorM3OnSurface ?colorM3OnSurfaceVariant @style/popup_menu_item_text + 1