Change alarm time text appearance
This commit is contained in:
parent
ce9797e8fd
commit
2218114adc
@ -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);
|
||||
}
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user