Merge "Bring up the QS state colors to increase contrast" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
214a8bdaee
@@ -340,12 +340,12 @@ public abstract class QSTileImpl<TState extends State> implements QSTile {
|
|||||||
switch (state) {
|
switch (state) {
|
||||||
case Tile.STATE_UNAVAILABLE:
|
case Tile.STATE_UNAVAILABLE:
|
||||||
return Utils.getDisabled(context,
|
return Utils.getDisabled(context,
|
||||||
Utils.getColorAttr(context, android.R.attr.textColorTertiary));
|
Utils.getColorAttr(context, android.R.attr.textColorPrimary));
|
||||||
case Tile.STATE_INACTIVE:
|
case Tile.STATE_INACTIVE:
|
||||||
return Utils.getDisabled(context,
|
return Utils.getDisabled(context,
|
||||||
Utils.getColorAttr(context, android.R.attr.textColorSecondary));
|
Utils.getColorAttr(context, android.R.attr.colorForeground));
|
||||||
case Tile.STATE_ACTIVE:
|
case Tile.STATE_ACTIVE:
|
||||||
return Utils.getColorAttr(context, attr.textColorSecondary);
|
return Utils.getColorAttr(context, android.R.attr.textColorPrimary);
|
||||||
default:
|
default:
|
||||||
Log.e("QSTile", "Invalid state " + state);
|
Log.e("QSTile", "Invalid state " + state);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user