Make outage banner color less aggressive.
This commit is contained in:
parent
0514950333
commit
fe71d6ac41
3 changed files with 8 additions and 3 deletions
|
@ -14,6 +14,7 @@ import android.widget.TextView;
|
|||
|
||||
import androidx.annotation.IdRes;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
|
@ -78,6 +79,7 @@ public final class ReminderView extends FrameLayout {
|
|||
}
|
||||
|
||||
text.setText(reminder.getText());
|
||||
text.setTextColor(ContextCompat.getColor(getContext(), R.color.signal_button_primary_text));
|
||||
|
||||
switch (reminder.getImportance()) {
|
||||
case NORMAL:
|
||||
|
@ -85,6 +87,7 @@ public final class ReminderView extends FrameLayout {
|
|||
break;
|
||||
case ERROR:
|
||||
container.setBackgroundResource(R.drawable.reminder_background_error);
|
||||
text.setTextColor(ContextCompat.getColor(getContext(), R.color.signal_text_primary));
|
||||
break;
|
||||
case TERMINAL:
|
||||
container.setBackgroundResource(R.drawable.reminder_background_terminal);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" android:drawable="@color/core_red_highlight" />
|
||||
<item android:state_focused="true" android:drawable="@color/core_red_highlight" />
|
||||
<item android:drawable="@color/core_red" />
|
||||
<item android:state_pressed="true" android:drawable="@color/reminder_background" />
|
||||
<item android:state_focused="true" android:drawable="@color/reminder_background" />
|
||||
<item android:drawable="@color/reminder_background" />
|
||||
</selector>
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
<color name="core_white">#ffffff</color>
|
||||
<color name="core_black">#000000</color>
|
||||
|
||||
<color name="reminder_background">#fcf0d9</color>
|
||||
|
||||
<color name="core_grey_02">#f6f6f6</color>
|
||||
<color name="core_grey_05">#e9e9e9</color>
|
||||
<color name="core_grey_10">#e2e2e2</color>
|
||||
|
|
Loading…
Add table
Reference in a new issue