Change alarm time text appearance

This commit is contained in:
Phillip Hsu 2016-09-01 01:09:41 -07:00
parent ce9797e8fd
commit 2218114adc
2 changed files with 4 additions and 2 deletions

View File

@ -180,7 +180,9 @@ public abstract class BaseAlarmViewHolder extends BaseViewHolder<Alarm> {
TextView colorsSource = (TextView) itemView.findViewById(R.id.colors_source);
ColorStateList colors = colorsSource.getTextColors();
int def = colors.getDefaultColor();
int disabled = colors.getColorForState(new int[] {-android.R.attr.state_enabled}, def);
// Too light
// int disabled = colors.getColorForState(new int[] {-android.R.attr.state_enabled}, def);
int disabled = colorsSource.getCurrentHintTextColor();
// We only have two states, so we don't care about losing the other state colors.
mTime.setTextColor(alarm.isEnabled() ? def : disabled);
}

View File

@ -12,7 +12,7 @@
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat"
android:textSize="@dimen/text_size_display_3"
android:fontFamily="sans-serif-thin"/>
android:fontFamily="sans-serif-light"/>
<Space
android:layout_width="0dp"